[SR-Users] Need help in setting up Presence

SamyGo govoiper at gmail.com
Mon Jun 10 12:55:36 CEST 2013


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 at wistle.myvoip.com SIP/2.0
Via: SIP/2.0/UDP 1.1.1.1;branch=z9hG4bK1155.b09d7f4.0
To: sip:4144 at wistle.myvoip.com
From: sip:4144 at wistle.myvoip.com;tag=533cb9e91f4b999cf76861cbb9ed54ed-b82e
CSeq: 10 PUBLISH
Call-ID: 7debd904-8753 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20130610/7ab8b95c/attachment.html>


More information about the sr-users mailing list