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
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
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
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 mailto:sip%3A4144@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 mailto:sip%3A4144@wistle.myvoip.com From: sip:4144@wistle.myvoip.com mailto:sip%3A4144@wistle.myvoip.com;tag=533cb9e91f4b999cf76861cbb9ed54ed-b82e CSeq: 10 PUBLISH Call-ID: 7debd904-8753@127.0.0.1 mailto: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 <mailto:sip%3A4144@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 <http://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 <http://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 <http://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 <http://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 mailto: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 <mailto: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 <mailto: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 <mailto: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
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
Hi again,
So I've conducted test with Yealink IP Phone and the results are the same, please see the attached trace and suggest what should I do to have a working presence model.
The same phenomenon with PUBLISH originated from Kamailio destined to Kamailio is observed again.
Thanks for the support, Sammy
Hello,
On 6/11/13 7:33 AM, SamyGo wrote:
Hi again,
So I've conducted test with Yealink IP Phone and the results are the same, please see the attached trace and suggest what should I do to have a working presence model.
if your phone does not implement SIMPLE presence, you should just relay the subscribe to the other phone.
Blinking lamps can be done using dialog and pua/presence_dialoginfo info modules if the phones do not support this event.
The same phenomenon with PUBLISH originated from Kamailio destined to Kamailio is observed again.
They are from a module you loaded but you don't need, see previous email.
Cheers, Daniel
My 0.2 cents.
Very odd that you have so many REGISTER > 401's and also SUBSCRIBE > 407's on that single device. Like the initial 200 OK is actually in accidental response . Maybe like ... pike would do, if you had it that way.
What does your kamailio.cfg look like? (offlist is fine if you don't want to post it).
Skyler
On 6/10/2013 10:33 PM, SamyGo wrote:
Hi again,
So I've conducted test with Yealink IP Phone and the results are the same, please see the attached trace and suggest what should I do to have a working presence model.
The same phenomenon with PUBLISH originated from Kamailio destined to Kamailio is observed again.
Thanks for the support, Sammy
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
Dear Daniel,
I'm trying to send the Subscribes to end points directly after lookup("location") but I think it isn't giving me the same behavior as that of MESSAGE. These messages reach successfully from one end to another but SUBSCRIBE don't work like that.
Thank you Skyler for your concern and I am open to improve anything that might not be looking good.
At the moment I'm paying more attention to getting the Presence work and what I've found out is that in another Kamailio deployment where presence was known to work the behaviour of NOTIFY for event: presence is exactly the same as in mine.
I am going to test it against an OpenSIPS based setup today as well and see how that behaves.
I believe that by following on Daniels advice on routing subscribe to the correct destination might work for me.
I'll try get back with relevant traces from the Asterisk server as well to figure out the working.
Thanks for continuous support. Sammy On Jun 12, 2013 7:36 AM, "Skyler" skchopperguy@gmail.com wrote:
My 0.2 cents.
Very odd that you have so many REGISTER > 401's and also SUBSCRIBE > 407's on that single device. Like the initial 200 OK is actually in accidental response . Maybe like ... pike would do, if you had it that way.
What does your kamailio.cfg look like? (offlist is fine if you don't want to post it).
Skyler
On 6/10/2013 10:33 PM, SamyGo wrote:
Hi again,
So I've conducted test with Yealink IP Phone and the results are the same, please see the attached trace and suggest what should I do to have a working presence model.
The same phenomenon with PUBLISH originated from Kamailio destined to Kamailio is observed again.
Thanks for the support, Sammy
______________________________**_________________ 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-**usershttp://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-**usershttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hi,
On 6/11/2013 11:09 PM, SamyGo wrote:
Dear Daniel,
I'm trying to send the Subscribes to end points directly after lookup("location") but I think it isn't giving me the same behavior as that of MESSAGE. These messages reach successfully from one end to another but SUBSCRIBE don't work like that.
Thank you Skyler for your concern and I am open to improve anything that might not be looking good.
Seemed like your last trace was pretty obvious, maybe the last hurdle. Almost there! ;)
At the moment I'm paying more attention to getting the Presence work and what I've found out is that in another Kamailio deployment where presence was known to work the behaviour of NOTIFY for event: presence is exactly the same as in mine.
I am going to test it against an OpenSIPS based setup today as well and see how that behaves.
I believe that by following on Daniels advice on routing subscribe to the correct destination might work for me.
I'll try get back with relevant traces from the Asterisk server as well to figure out the working.
Thanks for continuous support. Sammy
On Jun 12, 2013 7:36 AM, "Skyler" <skchopperguy@gmail.com mailto:skchopperguy@gmail.com> wrote:
My 0.2 cents. Very odd that you have so many REGISTER > 401's and also SUBSCRIBE > 407's on that single device. Like the initial 200 OK is actually in accidental response . Maybe like ... pike would do, if you had it that way. What does your kamailio.cfg look like? (offlist is fine if you don't want to post it). Skyler On 6/10/2013 10:33 PM, SamyGo wrote: Hi again, So I've conducted test with Yealink IP Phone and the results are the same, please see the attached trace and suggest what should I do to have a working presence model. The same phenomenon with PUBLISH originated from Kamailio destined to Kamailio is observed again. Thanks for the support, Sammy _________________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org <mailto:sr-users@lists.sip-router.org> http://lists.sip-router.org/__cgi-bin/mailman/listinfo/sr-__users <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 <mailto:sr-users@lists.sip-router.org> http://lists.sip-router.org/__cgi-bin/mailman/listinfo/sr-__users <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
Hello,
afaik xlite provides only end-to-end presence support. Meaning it does not work with a presence server, but subscribes have to be routed to the other UA.
Try with Jitsi and see if you get user status.
Cheers, Daniel
On 6/10/13 12:05 PM, SamyGo 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
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