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 <govoi...@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

Reply via email to