Respected Daniel,
I will test with Asterisk and see if x-lite generates a PUBLISH or not, but as far as my requirements are concerned, I've multidomain setup working where users from different domain are calling. Now they used to have their status lights working on their old asterisk servers but now they have no lights turning green to show the status of their monitored extensions.
These green lights turn red when the subscribed extensions gets busy. This helps others and operator know the user is busy or not.
I want the same to be working on kamailio and hence I'm here.
I don't have IP Phone in my reach now so I'll send different traces once available.
Please advise further about this.
Thanks, Sammy
On Mon, Jun 10, 2013 at 4:03 PM, Daniel-Constantin Mierla <miconda@gmail.com
wrote:
Asterisk is an end point, like another phone. You can look to see if when used with asterisk, xlite generates PUBLISH. If it does not do it, then it is the same end to end presence.
The PUBLISH you see is from pua_reginfo that should be used for replication of location records to another sip server. It doesn't look you need it from what I understood you want to achieve.
Cheers, Daniel
On 6/10/13 12:55 PM, SamyGo wrote:
Thank you for the prompt responses, sure I'll try some other client as I've a yealink IP phone accessible but this x-lite worked perfectly when connected with Asterisk and gave me Presence info with reginfo+xml and dialog+xml body types. This is new x-lite 4.5 version and gives perfect BLF and presence lights.
Anyways I won't rule out everything and change my User phone.
I've observed that this PUBLISH is generated from Kamailio and sent to Kamailio but never is relayed to the end user. Also I'd like to mention that I'm using the MULTIDOMAIN mode.
PUBLISH sip:4144@wistle.myvoip.com SIP/2.0 Via: SIP/2.0/UDP 1.1.1.1;branch=z9hG4bK1155.b09d7f4.0 To: sip:4144@wistle.myvoip.com From: sip:4144@wistle.myvoip.com;tag=533cb9e91f4b999cf76861cbb9ed54ed-b82e CSeq: 10 PUBLISH Call-ID: 7debd904-8753@127.0.0.1 Content-Length: 1486 User-Agent: kamailio (4.0.1 (i386/linux)) Max-Forwards: 70 Event: reg Expires: 3601 Content-Type: application/reginfo+xml
<?xml version="1.0"?>
<reginfo xmlns="urn:ietf:params:xml:ns:reginfo" version="0" state="full"> <registration aor="sip:4144@wistle.myvoip.com" id="0xb36a5f28" state="active"> <contact id="0xb36a5f88" state="active" event="registered" expires="1579" callid="Zjc3MTE2NTY1MDQ5NjA3NDVmNTdhOGU4NDVjNDI1NTU" cseq="4" received="sip:182.189.2.135:36810" path="" user_agent="X-Lite release 4.5.2 stamp 70142"> <uri>sip:4144@182.189.2.135:36810;rinstance=93ea3ac79b5c8181</uri> </contact> <contact id="0xb36a6198" state="active" event="registered" expires="2775" callid="YzIyNDA1NzJkOWI4ZDA2YjdkYTk5NmU5MDA3YmEzMWE" cseq="2" received="sip:199.255.209.166:49182" path="" user_agent="X-Lite release 4.5.2 stamp 70142"> <uri>sip:4144@10.254.168.28:49182;rinstance=f0f3b6fe4979841b</uri> </contact> <contact id="0xb36a64d8" state="active" event="registered" expires="2788" callid="ZDk3MmEzMmI3OGRmODUxODFlNzE4ODVkNTAxNDE3MjQ" cseq="4" received="sip:199.255.209.166:49182" path="" user_agent="X-Lite release 4.5.2 stamp 70142"> <uri>sip:4144@199.255.209.166:49182;rinstance=9263a0c33eddcd04</uri> </contact> <contact id="0xb36b1168" state="active" event="created" expires="3600" callid="ZmQyNTA1Njg5NDExMzIwOTBmZmZhZDNjNTBjODUxNzk" cseq="4" received="sip: 199.255.209.166:17482" path="" user_agent="X-Lite release 4.5.2 stamp 70142"> <uri>sip:4144@199.255.209.166:17482;rinstance=5ccf1f2256f17489</uri> </contact> </registration> </reginfo>
If only this could reach my user agent then I think the presence will work fine.
On Mon, Jun 10, 2013 at 3:20 PM, Peter Dunkley < peter.dunkley@crocodilertc.net> wrote:
X-Lite does not support server presence (or didn't last time I looked)
- at least not for 'social' presence, MWI may work.
It works by having the clients exchange SUBSCRIBEs and NOTIFYs with each other and not doing any PUBLISHes. As such, server presence isn't going to work.
Regards,
Peter
-- Peter Dunkley Technical Director Crocodile RCS Ltd
On 10 Jun 2013, at 11:05, SamyGo govoiper@gmail.com wrote:
Hi List,
I've been trying to make the Presence thing work with kamailio but the very basic presence doesn't seem to work. I've tried multiple modules and different how-tos for running successful presence aware configuration but seems something is missing. The ultimate goal is to give user online/busy/offline status updaes to Subscribers.
My Kamailio version is: kamailio 4.0.1 (i386/linux) 55f7de
I've loaded the following modules.
loadmodule "presence.so" loadmodule "presence_xml.so" loadmodule "presence_dialoginfo.so" loadmodule "presence_reginfo" loadmodule "pua.so" #loadmodule "sca.so" loadmodule "pua_dialoginfo.so" loadmodule "pua_usrloc.so" loadmodule "pua_reginfo"
The Presence route contains this:
route[PRESENCE] { if(!is_method("PUBLISH|SUBSCRIBE")) return;
xlog("L_INFO", "[$fU@$si:$sp]{$rm} In Presence Route \n");
#!ifdef WITH_PRESENCE if (!t_newtran()) { sl_reply_error(); exit; };
if(is_method("PUBLISH")) { handle_publish(); t_release(); } else if( is_method("SUBSCRIBE")) { handle_subscribe(); t_release(); } exit;
#!endif
# if presence enabled, this part will not be executed if (is_method("PUBLISH") || $rU==$null) { sl_send_reply("404", "Not here"); exit; } return;
}
Then I've my x-lite phone (which is known to work with Presence in Asterisk) tries to register and subscribe to its own extensions. Nothing happens. The trace from sipgrep is attached.
Please help me in making presence work.
Thanks, Sammy
<presence_trace.txt>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla - http://www.asipto.comhttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio Advanced Training, San Francisco, USA - June 24-27, 2013
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users