Hi Group, I have one more problem regarding a SIP subscribe packet. When my phone registers first time, it gets OK for SUBSCRIBE sent from phone. But after couple of hours it(phone) keeps on sending subsequent SUBSCRIBE requests but the response from Kamailio is 481 Subscription does not exist.
Here are my packets,
=======================> For first SUBSCRIBE SUBSCRIBE sip:ABC.com SIP/2.0 Via: SIP/2.0/UDP 172.18.100.89:5060;branch=z9hG4bK-4082dbb From: DEF sip:307@ABC.com;tag=802bf23e23f4741 To: DEF sip:307@ABC.com Call-ID: 9f465e4b-2207f239@172.18.100.89 CSeq: 30004 SUBSCRIBE Max-Forwards: 70 Contact: DEF sip:307@172.18.100.89:5060 Accept: application/simple-message-summary Expires: 2147483647 Event: message-summary User-Agent: Linksys/PAP2T-3.1.15(LS) Content-Length: 0
------------------------------------------------------- SIP/2.0 202 OK Via: SIP/2.0/UDP 172.18.100.89:5060;branch=z9hG4bK-4082dbb;rport=5060;received=220.224.237.54 From: DEF sip:307@ABC.com;tag=802bf23e23f4741 To: DEF sip:307@ABC.com;tag=0cca86077d334bd53b00d2c8eab3d5fb.dfeb Call-ID: 9f465e4b-2207f239@172.18.100.89 CSeq: 30004 SUBSCRIBE Expires: 3600 Contact: sip:192.168.94.30:5060 Server: Kamailio (1.5.0-notls (i386/linux)) Content-Length: 0
=======================> For subsequent SUBSCRIBEs
SUBSCRIBE sip:ABC.com SIP/2.0 Via: SIP/2.0/UDP 172.18.100.89:5060;branch=z9hG4bK-69712d2e From: DEF sip:307@ABC.com;tag=5d3bd6c2989f0839 To: DEF sip:307@ABC.com;tag=0cca86077d334bd53b00d2c8eab3d5fb.dfeb Call-ID: 7f6d2c36-97569155@172.18.100.89 CSeq: 55947 SUBSCRIBE Max-Forwards: 70 Contact: DEF sip:307@172.18.100.89:5060 Accept: application/simple-message-summary Expires: 2147483647 Event: message-summary User-Agent: Linksys/PAP2T-3.1.15(LS) Content-Length: 0
-------------------------------------------------------
SIP/2.0 481 Subscription does not exist Via: SIP/2.0/UDP 172.18.100.89:5060;branch=z9hG4bK-69712d2e;rport=5060;received=220.224.237.54 From: DEF sip:307@ABC.com;tag=5d3bd6c2989f0839 To: DEF sip:307@ABC.com;tag=0cca86077d334bd53b00d2c8eab3d5fb.dfeb Call-ID: 7f6d2c36-97569155@172.18.100.89 CSeq: 55947 SUBSCRIBE Server: Kamailio (1.5.0-notls (i386/linux)) Content-Length: 0
----------------------------------------------------------------------------------------------------------------------------------------------
===>The error which I get on kamailio is, ERROR:presence:get_database_info: No matching subscription dialog found in database
===>Have already loaded the module presence.so
modparam("presence", "db_url", "mysql://XYZ:XYZ@192.168.90.12/openser") modparam("presence", "max_expires", 3600) modparam("presence", "presentity_table", "presentity") modparam("presence", "active_watchers_table", "active_watchers") modparam("presence", "watchers_table", "watchers") modparam("presence", "clean_period", 100) modparam("presence", "db_update_period", 100) modparam("presence", "to_tag_pref", 'pres') modparam("presence", "expires_offset", 10) modparam("presence", "server_address", "sip:192.168.94.30:5060") modparam("presence", "fallback2db", 1) modparam("presence", "subs_htable_size", 11) modparam("presence", "pres_htable_size", 11)
loadmodule "presence_mwi.so" loadmodule "presence_xml.so" modparam("presence_xml", "force_active", 1) modparam("presence_xml", "db_url", "mysql://XYZ:XYZ@192.168.90.12/openser")
---------------------------------------------------------------------------------------------------------------------------------------------
Please help me on this.
--SM