[OpenSIPS-Users] sip-xmpp gateway - presence notification does not work

mani sivaraman mani.opensips at gmail.com
Tue Jun 23 15:50:10 CEST 2009


Hi Anca
I get some "ERROR:presence:get_stored_info: record not found in hash_table"
error below. I also get this t_release() warning, but I'm calling
t_release() after notify processing and Subscribe process etc in config
file.


Jun 23 08:42:24 [4088] INFO:core:probe_max_receive_buffer: using a UDP
receive buffer of 255 kb
Jun 23 08:42:27 [4091] INFO:presence:send_notify_request: NOTIFY
sip:msivaraman at 172.16.0.141 <sip%3Amsivaraman at 172.16.0.141> via
sip:msivaraman at 172.16.1.125:7489;transport=udp on behalf of
sip:msivaraman at 172.16.0.141 <sip%3Amsivaraman at 172.16.0.141> for event
presence
Jun 23 08:42:27 [4092] INFO:presence:send_notify_request: NOTIFY
sip:msivaraman at 172.16.0.141 <sip%3Amsivaraman at 172.16.0.141> via
sip:msivaraman at 172.16.1.125:7226;transport=udp on behalf of
sip:msivaraman at 172.16.0.141 <sip%3Amsivaraman at 172.16.0.141> for event
presence.winfo
Jun 23 08:42:27 [4090] INFO:presence:send_notify_request: NOTIFY
sip:msivaraman at 172.16.0.141 <sip%3Amsivaraman at 172.16.0.141> via
sip:msivaraman at 172.16.1.125:7489;transport=udp on behalf of
sip:msivaraman at 172.16.0.141 <sip%3Amsivaraman at 172.16.0.141> for event
presence.winfo
Jun 23 08:42:27 [4090] INFO:presence:send_notify_request: NOTIFY
sip:msivaraman at 172.16.0.141 <sip%3Amsivaraman at 172.16.0.141> via
sip:msivaraman at 172.16.1.125:7226;transport=udp on behalf of
sip:msivaraman at 172.16.0.141 <sip%3Amsivaraman at 172.16.0.141> for event
presence.winfo
Jun 23 08:42:27 [4090] INFO:presence:send_notify_request: NOTIFY
sip:msivaraman at 172.16.0.141 <sip%3Amsivaraman at 172.16.0.141> via
sip:msivaraman at 172.16.1.125:7226;transport=udp on behalf of
sip:msivaraman at 172.16.0.141 <sip%3Amsivaraman at 172.16.0.141> for event
presence
Jun 23 08:42:28 [4092] INFO:presence:send_notify_request: NOTIFY
sip:msivaraman at 172.16.0.141 <sip%3Amsivaraman at 172.16.0.141> via
sip:msivaraman at 172.16.1.125:7226;transport=udp on behalf of
sip:rboxall at 172.16.0.141 <sip%3Arboxall at 172.16.0.141> for event presence
Jun 23 08:42:28 [4092] INFO:presence:send_notify_request: NOTIFY
sip:msivaraman at 172.16.0.141 <sip%3Amsivaraman at 172.16.0.141> via
sip:msivaraman at 172.16.1.125:7226;transport=udp on behalf of sip:jabb2*
xmpp1.smithmicro.com at sip-xmpp1.smithmicro.com for event presence
Jun 23 08:42:28 [4091] INFO:presence:send_notify_request: NOTIFY sip:jabb2*
xmpp1.smithmicro.com at sip-xmpp1.smithmicro.com via sip:172.16.0.141:5060 on
behalf of sip:jabb2*xmpp1.smithmicro.com at sip-xmpp1.smithmicro.com for event
presence.winfo
Jun 23 08:42:28 [4090] WARNING:tm:t_unref: script writer didn't release
transaction
Jun 23 08:42:28 [4093] INFO:presence:send_notify_request: NOTIFY
sip:msivaraman at 172.16.0.141 <sip%3Amsivaraman at 172.16.0.141> via
sip:msivaraman at 172.16.1.125:7226;transport=udp on behalf of sip:jabb1*
xmpp1.smithmicro.com at sip-xmpp1.smithmicro.com for event presence
Jun 23 08:42:28 [4091] INFO:presence:send_notify_request: NOTIFY sip:jabb1*
xmpp1.smithmicro.com at sip-xmpp1.smithmicro.com via sip:172.16.0.141:5060 on
behalf of sip:jabb1*xmpp1.smithmicro.com at sip-xmpp1.smithmicro.com for event
presence.winfo
Jun 23 08:42:28 [4090] WARNING:tm:t_unref: script writer didn't release
transaction
Jun 23 08:42:28 [4092] INFO:presence:send_notify_request: NOTIFY
sip:msivaraman at 172.16.0.141 <sip%3Amsivaraman at 172.16.0.141> via
sip:msivaraman at 172.16.1.125:7226;transport=udp on behalf of
sip:smvasagam2000*gmail.com at sip-xmpp1.smithmicro.com for event presence
Jun 23 08:42:28 [4093] INFO:presence:send_notify_request: NOTIFY
sip:smvasagam2000*gmail.com at sip-xmpp1.smithmicro.com via sip:
172.16.0.141:5060 on behalf of sip:smvasagam2000*gmail.com@
sip-xmpp1.smithmicro.com for event presence.winfo
Jun 23 08:42:28 [4090] WARNING:tm:t_unref: script writer didn't release
transaction
Jun 23 08:42:31 [4091] INFO:presence:send_notify_request: NOTIFY
sip:msivaraman at 172.16.0.141 <sip%3Amsivaraman at 172.16.0.141> via
sip:msivaraman at 172.16.1.125:7489;transport=udp on behalf of
sip:msivaraman at 172.16.0.141 <sip%3Amsivaraman at 172.16.0.141> for event
presence
Jun 23 08:42:31 [4091] INFO:presence:send_notify_request: NOTIFY
sip:msivaraman at 172.16.0.141 <sip%3Amsivaraman at 172.16.0.141> via
sip:msivaraman at 172.16.1.125:7226;transport=udp on behalf of
sip:msivaraman at 172.16.0.141 <sip%3Amsivaraman at 172.16.0.141> for event
presence
Jun 23 08:42:35 [4092] WARNING:tm:t_unref: script writer didn't release
transaction
Jun 23 08:42:36 [4091] WARNING:tm:t_unref: script writer didn't release
transaction
Jun 23 08:42:36 [4092] WARNING:tm:t_unref: script writer didn't release
transaction
Jun 23 08:42:43 [4093] WARNING:tm:t_unref: script writer didn't release
transaction
Jun 23 08:42:44 [4091] WARNING:tm:t_unref: script writer didn't release
transaction
Jun 23 08:42:44 [4093] WARNING:tm:t_unref: script writer didn't release
transaction
Jun 23 08:42:51 [4093] WARNING:tm:t_unref: script writer didn't release
transaction
Jun 23 08:42:52 [4090] WARNING:tm:t_unref: script writer didn't release
transaction
Jun 23 08:42:52 [4093] WARNING:tm:t_unref: script writer didn't release
transaction
Jun 23 08:44:00 [4091] ERROR:presence:get_stored_info: record not found in
hash_table
Jun 23 08:44:00 [4091] ERROR:presence:handle_subscribe: getting stored info
Jun 23 08:44:00 [4091] ERROR:presence:get_stored_info: record not found in
hash_table
Jun 23 08:44:00 [4091] ERROR:presence:handle_subscribe: getting stored info
Jun 23 08:44:00 [4090] ERROR:presence:get_stored_info: record not found in
hash_table
Jun 23 08:44:00 [4092] ERROR:presence:get_stored_info: record not found in
hash_table
Jun 23 08:44:00 [4090] ERROR:presence:handle_subscribe: getting stored info
Jun 23 08:44:00 [4092] ERROR:presence:handle_subscribe: getting stored info

config File:

route[2]
{
        if ( !t_newtran() ){
        sl_reply_error();
        exit;
     };

        if( is_method("NOTIFY") &&
uri=~"sip:.+ at sip-xmpp1.smithmicro.com<sip%3A.%2B at sip-xmpp1.smithmicro.com>
"){
                        log("*** calling pua_xmpp_notify() NOTIFY
message.\n");
                pua_xmpp_notify();
                t_reply("200", "OK");
                t_release();
                exit;
        }

        if(is_method("PUBLISH")){
                handle_publish();
                t_release();
                /* the call to t_release is no longer needed in 1.5 */
        }
        else
        if( is_method("SUBSCRIBE")){
                handle_subscribe();
                if(
uri=~"sip:.+ at sip-xmpp1.smithmicro.com<sip%3A.%2B at sip-xmpp1.smithmicro.com>"
&& $hdr(Event)== "presence"){
                        log("*** calling  pua_xmpp_req_winfo SUBSCRIBE
message.\n");
                        pua_xmpp_req_winfo("$ruri", "$hdr(Expires)");
                }
                t_release();
                /* the call to t_release is no longer needed in 1.5 */
        }

        exit;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20090623/e431b821/attachment-0001.htm 


More information about the Users mailing list