Hello Timo,
I have installed the patch to the kamailio source and compiled it. Thing is it does work
fine to create a presentity with the obtaining the dialog-expires from the session
created.
It drops down to the one last problem.
The presentity information is not deleted when the user hangs-up even before the
"dialog-expires". This presence is maintained until the "Exipres"
timer, for my x-lite client that's 7200secs.
I have attached the log about this scenario.
Regards
Gnani
-----Original Message-----
From: Timo Reimann [mailto:sr@foo-lounge.de]
Sent: Saturday, October 22, 2011 2:12 AM
To: SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List
Cc: Cody Herzog; Gnaneshwar Gatla
Subject: Re: [SR-Users] Presence Dialog not being created
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