<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hello,</p>
<p>during the early state of a dialog (like trying, ringing, ...),
there can be many outgoing branches of the initial INVITE (think
about a call going to a user which has two sip phones registered
for same account). It's the reason dialog waits to see which
branch is responding from callee side.</p>
<p>Also, it's not mandatory that all 1xx responses have a Contact
header.</p>
<p>Anyhow, you can implement your own logic of storing dialog
attributes in a custom database table using sqlops module, doing
insert/update/delete at various events: initial invite, receiving
a 1xx response as well as for 2xx and 3xx+, cancel, bye ...</p>
<p>Cheers,<br>
Daniel<br>
</p>
<br>
<div class="moz-cite-prefix">On 09/11/16 05:51, Aqs Younas wrote:<br>
</div>
<blockquote
cite="mid:CAGVOjVXEHW0n7V-Hux4TYrjiNLJqTNeB_WvrGSmNmHJ7odGWvQ@mail.gmail.com"
type="cite">
<p dir="ltr">Greetings list,<br>
I am using dialog aur dispatcher modules for calls distribution
across multiple gateways. I am able to get number of active
dialogs against a gateway but could not get early dialogs going
on particular gateway.</p>
<p dir="ltr">Dialog information is inserted in database only for
state 4. Also, I tried to use dlg_list command to get early
dialogs. I see call statistics but "callee_contact::" is empty
untill call is answered. </p>
<p dir="ltr">for ringing I am getting this. </p>
<p dir="ltr">root@debian:/usr/local/kamailio/sbin# ./kamctl fifo
dlg_list<br>
dialog:: hash=3443:9422<br>
state:: 2<br>
ref_count:: 1<br>
timestart:: 0<br>
timeout:: 0<br>
callid:: GGjl58SQ32LXQB1dV2-CBA..<br>
from_uri:: <a class="moz-txt-link-freetext" href="sip:1015@192.168.10.39:5060;transport=UDP">sip:1015@192.168.10.39:5060;transport=UDP</a><br>
from_tag:: 652ee907<br>
caller_contact::
<a class="moz-txt-link-freetext" href="sip:1015@192.168.10.41:55842;transport=UDP">sip:1015@192.168.10.41:55842;transport=UDP</a><br>
caller_cseq:: 1<br>
caller_route_set::<br>
caller_bind_addr:: udp:<a moz-do-not-send="true"
href="http://192.168.10.39:5060">192.168.10.39:5060</a><br>
callee_bind_addr::<br>
to_uri:: <a class="moz-txt-link-freetext" href="sip:1010@192.168.10.39:5060;transport=UDP">sip:1010@192.168.10.39:5060;transport=UDP</a><br>
to_tag::<br>
callee_contact::<br>
callee_cseq::<br>
callee_route_set::</p>
<p dir="ltr">callee_contact:: is empty. </p>
<p dir="ltr">Is there any way to get early dialog info againts a
gateway.? Or any way to insert early dialog into database with
callee_contact not empty?</p>
<p dir="ltr">Best Regards, <br>
Aqs Younas</p>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio Advanced Training, Berlin, Nov 28-30, 2016 - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a></pre>
</body>
</html>