duane.larson | 26 Jul 2012 05:51
Picon

Change jabber users Presence externally from another application

I was wondering if there is any feature with ejabberd where a users presence can be updated by some external means. What I am getting at is the following scenario

A company uses ejabberd for IM and Presence. They use SIP for VoIP. I would like the presence of my clients to also show when a user is "On the Phone". It seems like this would be something pretty simple to do with an added feature but I am not a XMPP expert so I am not sure if this is really more complicated then I think it might be.

So is there any way to update a users Presence to so that he is being called on the phone or is actually on a call? Any XMLRPC, MI commands or ejabberd commands that could accomplish this?????

_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Gavin Henry | 26 Jul 2012 09:04
Picon
Gravatar

Re: Change jabber users Presence externally from another application

> I was wondering if there is any feature with ejabberd where a users presence
> can be updated by some external means. What I am getting at is the following
> scenario
>
> A company uses ejabberd for IM and Presence. They use SIP for VoIP. I would
> like the presence of my clients to also show when a user is "On the Phone".
> It seems like this would be something pretty simple to do with an added
> feature but I am not a XMPP expert so I am not sure if this is really more
> complicated then I think it might be.
>
> So is there any way to update a users Presence to so that he is being called
> on the phone or is actually on a call? Any XMLRPC, MI commands or ejabberd
> commands that could accomplish this?????

Hi Duane,

Is the requirement to be part of the SIP software? Do you use
Asterisk, FreeSWITCH, OpenSIPS
or something else? Or do you mean by not using a XMPP language
library, i.e. via some RESTful
style API? Is this mutli-domain or one domain?

Thanks.

-- 
Kind Regards,

Gavin Henry.
Managing Director.

T +44 (0) 1224 900123
M +44 (0) 7930 323266
F +44 (0) 1224 824887
E ghenry <at> surevoip.co.uk

http://www.surevoip.co.uk/

Suretec Systems T/A SureVoIP is a limited company registered in
Scotland. Registered
number: SC258005. Registered office: 24 Cormack Park, Rothienorman, Inverurie,
Aberdeenshire, AB51 8GL.

Subject to disclaimer at http://www.suretecgroup.com/disclaimer.html

Did you see the SureVoIP API news? -
http://www.surevoip.co.uk/news-events/surevoip-launches-innovative-api
and http://www.surevoip.co.uk/api
Duane Larson | 26 Jul 2012 14:40
Picon

Re: Change jabber users Presence externally from another application

Hey Gavin,

Thanks for the reply.  I use OpenSIPs and have different options when it comes to executing a script from within OpenSIPS when a user is on a call.  It will be a multidomain installation.

I'm not familiar with any RESTful api.  Do you have more details?  I came across a java api called smack last night and also a perl module called anyevent::xmpp.  I will look into those more but if you have any hints or experience in doing this I would love to hear.

Thanks

On Jul 26, 2012 2:04 AM, "Gavin Henry" <ghenry <at> surevoip.co.uk> wrote:
> I was wondering if there is any feature with ejabberd where a users presence
> can be updated by some external means. What I am getting at is the following
> scenario
>
> A company uses ejabberd for IM and Presence. They use SIP for VoIP. I would
> like the presence of my clients to also show when a user is "On the Phone".
> It seems like this would be something pretty simple to do with an added
> feature but I am not a XMPP expert so I am not sure if this is really more
> complicated then I think it might be.
>
> So is there any way to update a users Presence to so that he is being called
> on the phone or is actually on a call? Any XMLRPC, MI commands or ejabberd
> commands that could accomplish this?????

Hi Duane,

Is the requirement to be part of the SIP software? Do you use
Asterisk, FreeSWITCH, OpenSIPS
or something else? Or do you mean by not using a XMPP language
library, i.e. via some RESTful
style API? Is this mutli-domain or one domain?

Thanks.

--
Kind Regards,

Gavin Henry.
Managing Director.

T +44 (0) 1224 900123
M +44 (0) 7930 323266
F +44 (0) 1224 824887
E ghenry <at> surevoip.co.uk

http://www.surevoip.co.uk/

Suretec Systems T/A SureVoIP is a limited company registered in
Scotland. Registered
number: SC258005. Registered office: 24 Cormack Park, Rothienorman, Inverurie,
Aberdeenshire, AB51 8GL.

Subject to disclaimer at http://www.suretecgroup.com/disclaimer.html

Did you see the SureVoIP API news? -
http://www.surevoip.co.uk/news-events/surevoip-launches-innovative-api
and http://www.surevoip.co.uk/api
_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Gavin Henry | 26 Jul 2012 17:02
Picon
Gravatar

Re: Change jabber users Presence externally from another application

> Hey Gavin,

Hi Duane,

> Thanks for the reply.  I use OpenSIPs and have different options when it
> comes to executing a script from within OpenSIPS when a user is on a call.
> It will be a multidomain installation.

That's good. You just need to tie their number to a JID.

> I'm not familiar with any RESTful api.  Do you have more details?  I came
> across a java api called smack last night and also a perl module called
> anyevent::xmpp.  I will look into those more but if you have any hints or
> experience in doing this I would love to hear.

You can add OpenSIPS as a component to ejabberd but it's only one
domain I think.

Check the OpenSIPS XMPP module and http://www.ejabberd.im/mod_restful

Thanks.

-- 
Kind Regards,

Gavin Henry.
Managing Director.

T +44 (0) 1224 900123
M +44 (0) 7930 323266
F +44 (0) 1224 824887
E ghenry <at> surevoip.co.uk

http://www.surevoip.co.uk/

Suretec Systems T/A SureVoIP is a limited company registered in
Scotland. Registered
number: SC258005. Registered office: 24 Cormack Park, Rothienorman, Inverurie,
Aberdeenshire, AB51 8GL.

Subject to disclaimer at http://www.suretecgroup.com/disclaimer.html

Did you see the SureVoIP API news? -
http://www.surevoip.co.uk/news-events/surevoip-launches-innovative-api
and http://www.surevoip.co.uk/api

Gmane