Hello,
I upgrade last night to 1.5.1 ( from 1.4.4 ) and want to take advantage of the presence_dialoginfo and pua_dialoginfo modules.
What I want :
On my SPA 962 lights flash to indicate another phone ringing, green for online, orange for offline and red for on the phone.
General Setup information :
Asterisk is behind Kamailio. Kamailio manages my devices and Asterisk manages the media stuff. I have media proxy for NAT Trav
What I have done so far :
I have read :
http://kamailio.org/docs/modules/1.5.x/ ... ginfo.html
I have read :
http://kamailio.org/docs/modules/1.5.x/ ... ginfo.html
I have compiled and loaded both modules :
loadmodule "pua_dialoginfo.so"
loadmodule "presence_dialoginfo.so"
I have set this parameter because I have linksys:
modparam("presence_dialoginfo", "force_single_dialog", 1)
Publish and subscribe stuff was found here :
http://www.kamailio.org/dokuwiki/doku.p ... ation-file
I capture subscribe and publish :
if( is_method("PUBLISH") || is_method("SUBSCRIBE") )
{
route(5);
}
And process them ( route 5 ) :
if (! t_newtran())
{
sl_reply_error();
exit;
};
append_to_reply("Contact: \r\n");
if(is_method("PUBLISH"))
{
handle_publish();
t_release();
} else if( is_method("SUBSCRIBE")) {
handle_subscribe();
t_release();
}
else
{
# This can't happen
}
exit;
I do nothing with NOTIFY, so I guess it ends up being routed to my asterisk server.
mysql> select presentity_uri, watcher_username from active_watchers where event = 'dialog' and watcher_username = 'lublink.107' limit 1;
+---------------------------------+------------------+
| presentity_uri | watcher_username |
+---------------------------------+------------------+
| sip:lublink.106@myserver.tld | lublink.107 |
+---------------------------------+------------------+
1 row in set (0.00 sec)
But nothing is in presentity :
mysql> select * from presentity where event = 'dialog';
Empty set (0.01 sec)
My thoughts :
Why is there nothing in presentity ?
Have I misunderstood some obvious concept?
What have I done wrong?
Thanks,
David