<div>Hi all for a new debug day ;)</div>
<div> </div>
<div> </div>
<div>You're right Klaus, from my understanding :</div>
<div>- the expires value is taken from the dialog struct, or from override_lifetime if it's set.</div>
<div>==> at this point, dialog->lifetime = 0, so if override_lifetime isn't set the expires will equal 0 too. so we need to go more deeply.</div>
<div> </div>
<div>(not in call order)</div>
<div>- the dialog struct is given via the callback and filled by the dialog module</div>
<div>- the dialog module calls get_dlg_timeout function which return the avp lifetime or default_timeout if the avp doesn't exist</div>
<div>- the dialog module calls run_create_callbacks which then calls registered callbacks like pua_dialoginfo's one</div>
<div> </div>
<div>the weird thing, from dialog/dlg_handlers.c line 470 to 510, the dialog struct is built but the lifetime field is filled after the run_create_callbacks call...</div>
<div><br>Regards,</div>
<div>Eric.<br></div>
<div class="gmail_quote">2009/3/5 Klaus Darilion <span dir="ltr"><<a href="mailto:klaus.mailinglists@pernau.at">klaus.mailinglists@pernau.at</a>></span><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">I wonder why the lifetime was 0 at all?<br><br>The lifetime should be the lifetime from the dialog module, and a liftime of 0 makes also in dialog module no sense.
<div class="im"><br><br>regards<br>klaus<br><br>Eric PTAK schrieb:<br></div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Daniel was right !
<div class="im"><br>I've changed override_lifetime pua_dialoginfo's parameter and it's now working !<br> Eric.<br><br></div>2009/3/4 Klaus Darilion <<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a> <mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a>>>
<div>
<div></div>
<div class="h5"><br><br> Actually we still do not know if you use Kamailio or Opensips (which<br> have slightly different implementations)<br><br> The PUBLISh should be sent to: publish uri= sip:alice@domain<br><br>
If "domain" is yourself, it should be looped to the proxy via<br> loopback interface (ngrep -d lo port 5060)<br><br> regards<br> klaus<br><br> Eric PTAK schrieb:<br><br> Hi,<br> I'm trying to use *_dialoginfo modules but I'm facing to a<br>
missunderstanding, or a bug.<br> In fact, the presence server is working and I'm also able to<br> subscribe to dialog event.<br> But when pua_dialoginfo uses pua to send the Publish, I don't<br>
know where it going...<br> I even not sure publishes are really sent.<br> This the log :<br> DBG:dialog:run_create_callbacks: dialog=0xb59d30b0<br> DBG:pua_dialoginfo:__dialog_created: new INVITE dialog created:<br>
from=sip:alice@domain<br> DBG:core:grep_aliases: comparing host [0:domain:0] with us<br> [0:domain:0]<br> DBG:core:grep_aliases: match found for: [0:domain:0]<br> DBG:core:check_self: host == me<br>
DBG:pua_dialoginfo:build_dialoginfo: new_body: <?xml<br> version="1.0"?> <dialog-info<br> xmlns="urn:ietf:params:xml:ns:dialog-info" version="0"<br> state="full" entity="sip:alice@domain"> <dialog<br>
id="MzQ3N2FiMzhiZGIwNzhhNDhhNjcxN2Y5OGJhY2M0N2Q."<br> call-id="MzQ3N2FiMzhiZGIwNzhhNDhhNjcxN2Y5OGJhY2M0N2Q."<br> direction="initiator"> <state>Trying</state> <remote> <identity>sip:bob@domain</identity> <target<br>
uri="sip:bob@domain"/> </remote> <local> <identity>sip:alice@domain</identity> <target<br> uri="sip:alice@domain"/> </local> </dialog> </dialog-info><br>
DBG:pua_dialoginfo:dialog_publish: publish uri= sip:alice@domain<br> DBG:pua_dialoginfo:print_publ: publ:<br> DBG:pua_dialoginfo:print_publ: uri= sip:alice@domain<br> DBG:pua_dialoginfo:print_publ: id=<br>
DIALOG_PUBLISH.MzQ3N2FiMzhiZGIwNzhhNDhhNjcxN2Y5OGJhY2M0N2Q.<br> DBG:pua_dialoginfo:print_publ: expires= 0<br> DBG:pua:send_publish: pres_uri=sip:alice@domain<br> DBG:pua:search_htable: core_hash= 118<br>
DBG:pua:search_htable: record not found<br> DBG:pua:send_publish: insert type<br> DBG:pua:send_publish: UPDATE_TYPE and no record found<br> DBG:pua:send_publish: request for a publish with expires 0 and<br>
no record found<br> DBG:dialog:get_dlg_timeout: invalid AVP value, use default timeout<br> DBG:tm:run_reqin_callbacks: trans=0xb59d3270, callback type 1,<br> id 0 entered<br> Regards,<br> Eric.<br>
<br><br> ------------------------------------------------------------------------<br><br> _______________________________________________<br> Users mailing list<br></div></div> <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a> <mailto:<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>>
<div class="im"><br> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br><br><br></div></blockquote></blockquote></div>
<br>