<div>Hi all for a new debug day ;)</div>
<div> </div>
<div> </div>
<div>You&#39;re right Klaus, from my understanding :</div>
<div>- the expires value is taken from the dialog struct, or from override_lifetime if it&#39;s set.</div>
<div>==&gt; at this point, dialog-&gt;lifetime = 0, so if override_lifetime isn&#39;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&#39;t exist</div>
<div>- the dialog module calls run_create_callbacks which then calls registered callbacks like pua_dialoginfo&#39;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">&lt;<a href="mailto:klaus.mailinglists@pernau.at">klaus.mailinglists@pernau.at</a>&gt;</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&#39;ve changed override_lifetime pua_dialoginfo&#39;s parameter and it&#39;s now working !<br> Eric.<br><br></div>2009/3/4 Klaus Darilion &lt;<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a> &lt;mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a>&gt;&gt; 
<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 &quot;domain&quot; 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&#39;m trying to use *_dialoginfo modules but I&#39;m facing to a<br>
       missunderstanding, or a bug.<br>       In fact, the presence server is working and I&#39;m also able to<br>       subscribe to dialog event.<br>       But when pua_dialoginfo uses pua to send the Publish, I don&#39;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: &lt;?xml<br>       version=&quot;1.0&quot;?&gt; &lt;dialog-info<br>       xmlns=&quot;urn:ietf:params:xml:ns:dialog-info&quot; version=&quot;0&quot;<br>       state=&quot;full&quot; entity=&quot;sip:alice@domain&quot;&gt;   &lt;dialog<br>
       id=&quot;MzQ3N2FiMzhiZGIwNzhhNDhhNjcxN2Y5OGJhY2M0N2Q.&quot;<br>       call-id=&quot;MzQ3N2FiMzhiZGIwNzhhNDhhNjcxN2Y5OGJhY2M0N2Q.&quot;<br>       direction=&quot;initiator&quot;&gt;     &lt;state&gt;Trying&lt;/state&gt;     &lt;remote&gt;              &lt;identity&gt;sip:bob@domain&lt;/identity&gt;       &lt;target<br>
       uri=&quot;sip:bob@domain&quot;/&gt;     &lt;/remote&gt;     &lt;local&gt;              &lt;identity&gt;sip:alice@domain&lt;/identity&gt;       &lt;target<br>       uri=&quot;sip:alice@domain&quot;/&gt;     &lt;/local&gt;   &lt;/dialog&gt; &lt;/dialog-info&gt;<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> &lt;mailto:<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>&gt; 
<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>