<div dir="ltr">Hi, <div>I'm experiencing a strange behavior with the Kamailio presence module. I've a Polycom phone which takes the the XML tag "version" very seriously and so as soon it SUBSCRIBEs to a parking lot a NOTIFY is sent from server with "version=1" - When the Parking lot/extension gets busy it receives the second NOTIFY with "version=1" whereas it should've been 2. So it fails to light up the BLF icons.<br><br>Now, any further notify correctly increments the version tag and Polycom blf works fine until its SUBSCRIBE expires and the first cycle of NOTIFY is exchanged. </div><div><br></div><div>I can tell its a bug because for each NOTIFY the <i>event_route[tm:local-request]</i> prints the attribute $subs(version) and it correctly shows the sequence 1,2,3...onwards, However the sngrep/network trace tells it differently, the version shows up as 1,1,2,3...onwards </div><div><font face="monospace"><br></font></div><div></div><div><font face="monospace"><b><u>version:</u></b> kamailio 5.2.3 (x86_64/linux) c36229<br>flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES<br>ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144 MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB<br>poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.<br>id: c36229<br>compiled on 22:20:40 Jan 18 2020 with gcc 4.9.2</font><br></div><div><font face="monospace"><br></font></div><div><font face="monospace"></font></div><div><font face="monospace"><b><u>MODULES:<br><br></u></b>#!ifdef WITH_PRESENCE<br>loadmodule "presence.so"<br>loadmodule "presence_mwi.so"<br>loadmodule "presence_xml.so"<br>loadmodule "presence_dialoginfo.so"<br>loadmodule "presence_reginfo.so"<br>loadmodule "pua.so"<br>loadmodule "pua_rpc.so"<br>loadmodule "pua_dialoginfo.so"<br>modparam("pua", "db_url", DBURL)<br>modparam("pua", "db_mode", 2) <br>modparam("pua", "update_period", 60)<br>modparam("pua", "dlginfo_increase_version", 0)<br>modparam("pua", "reginfo_increase_version", 0)<br>modparam("pua", "check_remote_contact", 1)<br>modparam("pua", "fetch_rows", 1000)<br>modparam("pua", "outbound_proxy", "sip:MY_HOST_IP:MY_HOST_PORT")<br><br>modparam("pua_dialoginfo", "include_callid", 1)<br>modparam("pua_dialoginfo", "send_publish_flag", FLT_DLGINFO)<br>modparam("pua_dialoginfo", "caller_confirmed", 1)<br>modparam("pua_dialoginfo", "include_tags", 1)<br>modparam("pua_dialoginfo", "override_lifetime", 124)<br><br>modparam("presence", "presentity_table", "presentity")<br>modparam("presence", "active_watchers_table", "active_watchers")<br>modparam("presence", "watchers_table", "watchers")<br>modparam("presence", "db_update_period", 60)<br>modparam("presence", "db_table_lock_type", 0)<br>modparam("presence", "local_log_level", 3)<br>modparam("presence", "notifier_processes", 10)<br>modparam("presence", "force_delete", 0)<br>modparam("presence", "subs_db_mode", 2)<br>modparam("presence", "db_table_lock_type", 0)<br>modparam("presence", "expires_offset", 60)<br>modparam("presence", "send_fast_notify", 1) <br>modparam("presence", "clean_period", 30)<br>modparam("presence", "publ_cache", 0) <br>modparam("presence", "min_expires_action", PRESENCE_MIN_EXPIRES_ACTION)<br>modparam("presence", "min_expires", PRESENCE_MIN_EXPIRES)<br>modparam("presence", "max_expires", PRESENCE_MAX_EXPIRES)<br>modparam("presence", "sip_uri_match", 1)<br>modparam("presence", "waitn_time", 1)<br>modparam("presence", "db_url", DBURL)<br>modparam("presence", "server_address", "sip:MY_HOST_IP:MY_HOST_PORT")<br><br>modparam("presence_xml", "force_dummy_presence", 1)<br>modparam("presence_xml", "force_active", 1)<br>modparam("presence_xml", "db_url", DBURL)<br><br>modparam("presence_dialoginfo", "force_single_dialog", 1)<br>modparam("presence_dialoginfo", "force_dummy_dialog", 1)<br>#!endif</font><br><font face="monospace"><b><u><br></u></b></font></div><div><font face="monospace"><b><u><br></u></b></font></div><div><span style="font-family:arial,sans-serif">Looking to find some answers,</span><br></div><div><font face="arial, sans-serif">Thanks,<br>Sammy</font></div><div><font face="monospace"><b><u><br></u></b></font></div><div><font face="monospace"></font></div></div>