Hello,
Kamailio version: 3.1.5
I have been trying to use presence for Event:Dialog. I have used PUA_Dialoginfo module to
accomplish this task.
The PUA_dialoginfo module states that if "override_lifetime" is not used, the
value of the expires is taken from dialog module.
I have tried the module without the "override_lifetime" which did not create the
dialog in the presentity.
When used debug, I did see the xml being generated but finds the dialog
"expires=0" and deletes the xml(please find the log below).
But when "override_lifetime" is set, the dialog in the presentity table is set
until. But this has a problem,
modparam("pua_dialoginfo", "override_lifetime", 300)
1. if a call is still going on more than the override_lifetime the presentity is
deleted.
2. the presentity information is available until the "override_lifetime"
even after the call is hung-up.
How do I get this module working without the "override_lifetime" being used.
The Log:
Oct 21 12:12:46 SIPTest /usr/local/sbin/kamailio[3289]: DEBUG: pua_dialoginfo
[dialog_publish.c:242]: new_body:#012<?xml
version="1.0"?>#012<dialog-info
xmlns="urn:ietf:params:xml:ns:dialog-info" version="0"
state="full" entity="sip:user@mydemo.com">#012 <dialog
id="112014dff048e71e" call-id="112014dff048e71e"
direction="initiator">#012 <state>Trying</state>#012
<remote>#012 <identity>sip:user01@mydemo.com</identity>#012
<target uri="sip:user01@mydemo.com"/>#012 </remote>#012
<local>#012 <identity>sip:user@mydemo.com</identity>#012
<target uri="sip:user@mydemo.com"/>#012 </local>#012
</dialog>#012</dialog-info>#012
Oct 21 12:12:46 SIPTest /usr/local/sbin/kamailio[3288]: DEBUG: <core> [db_res.c:81]:
freeing 1 columns
Oct 21 12:12:46 SIPTest /usr/local/sbin/kamailio[3289]: DEBUG: pua_dialoginfo
[dialog_publish.c:290]: publish uri= sip:user@mydemo.com
Oct 21 12:12:46 SIPTest /usr/local/sbin/kamailio[3288]: DEBUG: <core> [db_res.c:85]:
freeing RES_NAMES[0] at 0x8314aa4
Oct 21 12:12:46 SIPTest /usr/local/sbin/kamailio[3289]: <core> [mem/q_malloc.c:366]:
qm_malloc(0x829bee0, 756) called from pua_dialoginfo: dialog_publish.c:
dialog_publish(302)
Oct 21 12:12:46 SIPTest /usr/local/sbin/kamailio[3288]: <core> [mem/q_malloc.c:428]:
qm_free(0x829bee0, 0x8314aa4), called from <core>: db_res.c: db_free_columns(86)
Oct 21 12:12:46 SIPTest /usr/local/sbin/kamailio[3289]: <core> [mem/q_malloc.c:406]:
qm_malloc(0x829bee0, 756) returns address 0x82e84bc frag. 0x82e84a4 (size=900) on 1 -th
hit
Oct 21 12:12:46 SIPTest /usr/local/sbin/kamailio[3288]: <core> [mem/q_malloc.c:450]:
qm_free: freeing frag. 0x8314a8c alloc'ed from db_mysql: km_res.c:
db_mysql_get_columns(78)
Oct 21 12:12:46 SIPTest /usr/local/sbin/kamailio[3289]: DEBUG: pua_dialoginfo
[dialog_publish.c:51]: publ:
Oct 21 12:12:46 SIPTest /usr/local/sbin/kamailio[3288]: DEBUG: <core> [db_res.c:94]:
freeing result names at 0x8318650
Oct 21 12:12:46 SIPTest /usr/local/sbin/kamailio[3289]: DEBUG: pua_dialoginfo
[dialog_publish.c:52]: uri= sip:user@mydemo.com
Oct 21 12:12:46 SIPTest /usr/local/sbin/kamailio[3288]: <core> [mem/q_malloc.c:428]:
qm_free(0x829bee0, 0x8318650), called from <core>: db_res.c: db_free_columns(95)
Oct 21 12:12:46 SIPTest /usr/local/sbin/kamailio[3289]: DEBUG: pua_dialoginfo
[dialog_publish.c:53]: id= DIALOG_PUBLISH.112014dff048e71e
Oct 21 12:12:46 SIPTest /usr/local/sbin/kamailio[3288]: <core> [mem/q_malloc.c:450]:
qm_free: freeing frag. 0x8318638 alloc'ed from <core>: db_res.c:
db_allocate_columns(148)
Oct 21 12:12:46 SIPTest /usr/local/sbin/kamailio[3289]: DEBUG: pua_dialoginfo
[dialog_publish.c:54]: expires= 0
Oct 21 12:12:46 SIPTest /usr/local/sbin/kamailio[3288]: DEBUG: <core> [db_res.c:99]:
freeing result types at 0x8318684
Oct 21 12:12:46 SIPTest /usr/local/sbin/kamailio[3289]: DEBUG: pua [send_publish.c:403]:
pres_uri=sip:user@mydemo.com
Oct 21 12:12:46 SIPTest /usr/local/sbin/kamailio[3288]: <core> [mem/q_malloc.c:428]:
qm_free(0x829bee0, 0x8318684), called from <core>: db_res.c: db_free_columns(100)
Oct 21 12:12:46 SIPTest /usr/local/sbin/kamailio[3289]: DEBUG: pua [hash.c:121]:
core_hash= 504
Oct 21 12:12:46 SIPTest /usr/local/sbin/kamailio[3288]: <core> [mem/q_malloc.c:450]:
qm_free: freeing frag. 0x831866c alloc'ed from <core>: db_res.c:
db_allocate_columns(157)
Oct 21 12:12:46 SIPTest /usr/local/sbin/kamailio[3289]: DEBUG: pua [hash.c:171]: record
not found
Oct 21 12:12:46 SIPTest /usr/local/sbin/kamailio[3288]: DEBUG: <core> [db_res.c:54]:
freeing 1 rows
Oct 21 12:12:46 SIPTest /usr/local/sbin/kamailio[3289]: DEBUG: pua [send_publish.c:444]:
insert type
Oct 21 12:12:46 SIPTest /usr/local/sbin/kamailio[3288]: DEBUG: <core> [db_row.c:97]:
freeing row values at 0x8314b14
Oct 21 12:12:46 SIPTest /usr/local/sbin/kamailio[3289]: DEBUG: pua [send_publish.c:448]:
UPDATE_TYPE and no record found
Oct 21 12:12:46 SIPTest /usr/local/sbin/kamailio[3288]: <core> [mem/q_malloc.c:428]:
qm_free(0x829bee0, 0x8314b14), called from <core>: db_row.c: db_free_row(98)
Oct 21 12:12:46 SIPTest /usr/local/sbin/kamailio[3289]: DEBUG: pua [send_publish.c:454]:
request for a publish with expires 0 and no record found
Oct 21 12:12:46 SIPTest /usr/local/sbin/kamailio[3288]: <core> [mem/q_malloc.c:450]:
qm_free: freeing frag. 0x8314afc alloc'ed from <core>: db_row.c:
db_allocate_row(114)
Oct 21 12:12:46 SIPTest /usr/local/sbin/kamailio[3289]: <core> [mem/q_malloc.c:428]:
qm_free(0x829bee0, 0x82e84bc), called from pua_dialoginfo: dialog_publish.c:
dialog_publish(357)
Oct 21 12:12:46 SIPTest /usr/local/sbin/kamailio[3288]: DEBUG: <core> [db_res.c:62]:
freeing rows at 0x8314adc
Regards
Gnaneshwar