Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] handling jabber status


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
mattgibson.ca at gmail...
Guest





PostPosted: Tue Jun 03, 2008 6:05 pm    Post subject: [asterisk-users] handling jabber status Reply with quote

I'd be interested to know more about the status abilities as well, we've
tried to test jabberstatus application, but it doesn't seem to function as
we expect, it should be returning 0,1,2,3,4,5 based on users current status,
but switching to away doesn't seem to change it from 0 to 2 .. .

this could be an interesting thread Smile
2008/6/3 Benoit Plessis <benoit at plessis.info>:

Quote:

We have both an asterisk server and a jabber server (ejabberd),
Since we use mostly softphones, using call notification by jabber wouldn't
be very useful, but beeing able to notify *others* that we are on the phone
should be more usefull.

Anyone already did that (changing jabber status/ status message of many
accounts)
or know if it's even remotly possible ??

--
Benoit


_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users




--
Thanks,

Matt Gibson
http://www.voipphreak.ca
http://www.mattgibson.ca
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080603/4c9f1d12/attachment.htm
Back to top
jsneerin at gmail.com
Guest





PostPosted: Tue Jun 03, 2008 6:10 pm    Post subject: [asterisk-users] handling jabber status Reply with quote

2008/6/3 Benoit Plessis <benoit at plessis.info>:
Quote:
We have both an asterisk server and a jabber server (ejabberd),
Since we use mostly softphones, using call notification by jabber wouldn't
be very useful, but beeing able to notify *others* that we are on the phone
should be more usefull.

Anyone already did that (changing jabber status/ status message of many
accounts)
or know if it's even remotly possible ??

I don't know about ejabberd, but this is possible with OpenFire using
the Asterisk-IM plugin. It connects to the AMI and watches for
call/hangup type events, so other than adding an entry to manager.conf
there is nothing special required of Asterisk to make it work. We're
using it here and so far it's working fine.

-James
Back to top
matt at mattgwatson.ca
Guest





PostPosted: Tue Jun 03, 2008 7:33 pm    Post subject: [asterisk-users] handling jabber status Reply with quote

On June 3, 2008 07:10:19 pm James Sneeringer wrote:
Quote:
2008/6/3 Benoit Plessis <benoit at plessis.info>:
Quote:
We have both an asterisk server and a jabber server (ejabberd),
Since we use mostly softphones, using call notification by jabber
wouldn't be very useful, but beeing able to notify *others* that we are
on the phone should be more usefull.

Anyone already did that (changing jabber status/ status message of many
accounts)
or know if it's even remotly possible ??

I don't know about ejabberd, but this is possible with OpenFire using
the Asterisk-IM plugin. It connects to the AMI and watches for
call/hangup type events, so other than adding an entry to manager.conf
there is nothing special required of Asterisk to make it work. We're
using it here and so far it's working fine.

-James


That kind of seems like its cheating if it needs to use AMI instead of
res_jabber working as people would expect!

--
Matt Watson
http://www.mattgwatson.ca
Back to top
philippe.sultan at gma...
Guest





PostPosted: Wed Jun 04, 2008 6:12 am    Post subject: [asterisk-users] handling jabber status Reply with quote

Hi Benoit,

Quote:
Anyone already did that (changing jabber status/ status message of many
accounts)
or know if it's even remotly possible ??

We discussed that during the last XSF devcon in Brussels. Actually
Asterisk (or any other XMPP client) cannot change the Jabber status on
behalf of another Jabber user, even if you connect it as a component
to your XMPP server. This behaviour is forbidden by the XMPP specs.

To be able to do this, you can use OpenFire along with its Asterisk
plugin, or patch your own XMPP server. I had written a patch for
Jabberd2 some time ago, but I'm not aware of anything that would be
applicable to Ejabberd (written in Erlang).

I'm in the process of extending Asterisk's "Hints" dialplan to XMPP
notifications for authorized users. Those notifications would be
carried over XMPP as message stanza of type 'headline'. That will be a
first step toward implementing PEP (Personal Eventing via Pubsub).
Although I understand that this won't answer your specific need, I
thought you might be interested in knowing this.

I can build a private branch to make this code available if you're
interested in testing it.

Philippe
Back to top
philippe.sultan at gma...
Guest





PostPosted: Wed Jun 04, 2008 6:36 am    Post subject: [asterisk-users] handling jabber status Reply with quote

Hi Matt,

On Wed, Jun 4, 2008 at 1:05 AM, Matthew Gibson <mattgibson.ca at gmail.com> wrote:
Quote:
I'd be interested to know more about the status abilities as well, we've
tried to test jabberstatus application, but it doesn't seem to function as
we expect, it should be returning 0,1,2,3,4,5 based on users current status,
but switching to away doesn't seem to change it from 0 to 2 .. .

this could be an interesting thread Smile

JabberStatus is supposed to retrieve the XMPP status of a buddy, and
store it in a diaplan variable. I just tested it on my Asterisk (1.6)
server.

Here is an example of how to use it :

1234 => {
JabberStatus(asterisk-gmail,buddy at gmail.com,STATUS);
if (${STATUS}=1) {
NoOp(User is online and active, ring his Gtalk client.);
Dial(Gtalk/asterisk-gmail/buddy at gmail.com);
} else {
NoOp(Prefer the SIP phone);
Dial(SIP/1234);
}
}

Matt, if you're experiencing some problems with this application, for
example on a 1.4 system, do not hesitate to file a bug report.

Cheers,

Philippe
Back to top
mattgibson.ca at gmail...
Guest





PostPosted: Mon Jun 09, 2008 1:36 pm    Post subject: [asterisk-users] handling jabber status Reply with quote

Hi Philippe,

On Wed, Jun 4, 2008 at 7:36 AM, Philippe Sultan <philippe.sultan at gmail.com>
wrote:

Quote:
Hi Matt,

On Wed, Jun 4, 2008 at 1:05 AM, Matthew Gibson <mattgibson.ca at gmail.com>
wrote:
Quote:
I'd be interested to know more about the status abilities as well, we've
tried to test jabberstatus application, but it doesn't seem to function
as
Quote:
we expect, it should be returning 0,1,2,3,4,5 based on users current
status,
Quote:
but switching to away doesn't seem to change it from 0 to 2 .. .

this could be an interesting thread Smile

JabberStatus is supposed to retrieve the XMPP status of a buddy, and
store it in a diaplan variable. I just tested it on my Asterisk (1.6)
server.

Here is an example of how to use it :

1234 => {
JabberStatus(asterisk-gmail,buddy at gmail.com,STATUS);
if (${STATUS}=1) {
NoOp(User is online and active, ring his Gtalk client.);
Dial(Gtalk/asterisk-gmail/buddy at gmail.com);
} else {
NoOp(Prefer the SIP phone);
Dial(SIP/1234);
}
}

Matt, if you're experiencing some problems with this application, for
example on a 1.4 system, do not hesitate to file a bug report.

Thanks for the snippet, I re-wrote it (badly) for regular extensions.conf
usage, and verified it's also working here on 1.6, though I do get a warning
about JabberStatus being depreciated.

--
Thanks,

Matt Gibson
http://www.voipphreak.ca
http://www.mattgibson.ca
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080609/982fa508/attachment.htm
Back to top
philippe.sultan at gma...
Guest





PostPosted: Tue Jun 10, 2008 1:35 pm    Post subject: [asterisk-users] handling jabber status Reply with quote

Quote:
Thanks for the snippet, I re-wrote it (badly) for regular extensions.conf
usage, and verified it's also working here on 1.6, though I do get a warning
about JabberStatus being depreciated.

Yes, JabberStatus is being moved from an dialplan application to a
function (JABBER_STATUS), because it's just retrieving a variable.

Philippe
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services