Hello Gnaneshwar,
Am 21.10.2011 um 22:57 schrieb Gnaneshwar Gatla:
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).
How do I get this module working without the “override_lifetime” being used.
The problem seems to stem from the dialog module: Apparently, all dialog parameters
(including lifetime) are set during the creation of a dialog only after create callbacks
have been executed. This is why a lifetime of zero is always available to callback
functions, including the one from pua_dialoginfo, no matter what the configured lifetime
is.
I have created a little patch for 3.1 that changes the dialog module such that dialog
variables are set prior to calling creation callbacks. It's attached in this email --
would you mind giving it a try and see if it helps? In order to apply the patch, all you
need to do is check out the 3.1 branch (unless you already did so) doing
git clone --depth 1 -b 3.1
git://git.sip-router.org/sip-router sip-router
and apply the patch inside that directory like this:
cd sip-router
patch -p 1 < /patch/to/patch
Now recompile and run as usual. Please let me know if things work now.
Thanks a lot and
cheers,
--Timo