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.0Via: SIP/2.0/UDP 1.1.1.1;branch=z9hG4bK1155.b09d7f4.0From: sip:4144@wistle.myvoip.com;tag=533cb9e91f4b999cf76861cbb9ed54ed-b82eCSeq: 10 PUBLISHCall-ID: 7debd904-8753@127.0.0.1Content-Length: 1486User-Agent: kamailio (4.0.1 (i386/linux))Max-Forwards: 70Event: regExpires: 3601Content-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"></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"></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"></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"></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 DunkleyTechnical DirectorCrocodile RCS LtdHi 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_PRESENCEif (!t_newtran()){sl_reply_error();exit;};
if(is_method("PUBLISH")){handle_publish();t_release();
}elseif( is_method("SUBSCRIBE")){handle_subscribe();t_release();}exit;#!endif
# if presence enabled, this part will not be executedif (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 list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla - http://www.asipto.com http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio Advanced Training, San Francisco, USA - June 24-27, 2013 * http://asipto.com/u/katu *
_______________________________________________
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