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