<meta http-equiv="CONTENT-TYPE" content="text/html; charset=utf-8"><title></title><meta name="GENERATOR" content="OpenOffice.org 2.3  (Unix)">
        
        
        <style type="text/css">
        <!--
                @page { size: 8.5in 11in; margin: 0.79in }
                P { margin-bottom: 0.08in }
        -->
        </style>

<p style="margin-bottom: 0in;">Hello,</p>
<p style="margin-bottom: 0in;">
</p>


<p style="margin-bottom: 0in;">I am using OpenSIPs-1.5.1 version. And
I want to use DIALOG module functionality.<br>I have gone through the module
documentations, and did the configuration.<br>
</p>


<p style="margin-bottom: 0in;">When I make a call, the dialog should
be created and the dialog entry should be inserted into the database.
My call is <b>working</b> fine. I have tested with SIPp as well as with
Grandsteam phones.<br>But the <b>dialog details is not inserted
in my database</b>. Here in log I can see, that the dialog is created and
then <b>destroyed</b> as well. Again its created and destroyed.<br>
</p>

<p style="margin-bottom: 0in;">At the time of making a call, I have
started the wireshark, to see whether there is any error msg  or not
!! (something  400 ...) But there also, no error.<br>
</p>

<p style="margin-bottom: 0in;">Can you please suggest me the solution
of this ?<br>
</p>
<p style="margin-bottom: 0in;">Below is  my opensips.cfg file and
opensips Log details.</p>
<p style="margin-bottom: 0in;">
</p>



<p style="margin-bottom: 0in;">Opensips.cfg<br>****************</p>
<p style="margin-bottom: 0in;">
</p>




<p style="margin-bottom: 0in;">loadmodule &quot;dialog.so&quot;<br>modparam(&quot;dialog&quot;,
&quot;dlg_flag&quot;,1 )<br>modparam(&quot;dialog&quot;,
&quot;enable_stats&quot;, 1)<br>modparam(&quot;dialog&quot;,
&quot;bye_on_timeout_flag&quot;, 6 )<br>modparam(&quot;dialog&quot;,
&quot;dlg_match_mode&quot;, 1)<br>
</p>









<p style="margin-bottom: 0in;">modparam(&quot;dialog&quot;, &quot;db_url&quot;,
&quot;mysql://<a href="http://opensips:opensipsrw@127.0.0.1/opensips">opensips:opensipsrw@127.0.0.1/opensips</a>&quot;)<br>modparam(&quot;dialog&quot;,
&quot;db_mode&quot;,1)<br>modparam(&quot;dialog&quot;,
&quot;table_name&quot;, &quot;dialog&quot;)<br>modparam(&quot;dialog&quot;,
&quot;from_uri_column&quot;, &quot;from_uri&quot;)<br>modparam(&quot;dialog&quot;,
&quot;from_tag_column&quot;, &quot;from_tag&quot;)<br>modparam(&quot;dialog&quot;,
&quot;to_uri_column&quot;, &quot;to_uri&quot;)<br>modparam(&quot;dialog&quot;,
&quot;to_tag_column&quot;, &quot;to_tag&quot;)<br>modparam(&quot;dialog&quot;,
&quot;h_id_column&quot;, &quot;hash_id&quot;)<br>modparam(&quot;dialog&quot;,
&quot;state_column&quot;, &quot;state&quot;)<br>
</p>







<p style="margin-bottom: 0in;">
</p>





<p style="margin-bottom: 0in;">route<br>{<br>if (is_method(&quot;INVITE&quot;))<br>{<br>xdbg(&quot;\n\n----
Invite  ----\n\n&quot;);<br>setflag(4);<br>if( (create_dialog()))<br>{<br>#                      
set_dlg_profile(&quot;caller&quot;);<br>xlog(&quot;L_INFO&quot;,
&quot; ------------------------------------------\n&quot;);<br>xlog(&quot;L_INFO&quot;,
&quot;\n        Dialog status ::    $DLG_status \n&quot;);<br>xlog(&quot;L_INFO&quot;,
&quot;\n        Dialog count ::     $DLG_count  \n&quot;);<br>xlog(&quot;L_INFO&quot;,
&quot;\n---- successfully created the dialog  ----\n\n&quot;);<br>xlog(&quot;L_INFO&quot;,
&quot;\n------------------------------------------\n\n&quot;);<br>}
</p>
<br><p style="margin-bottom: 0in;"><br></p><p style="margin-bottom: 0in;">
</p>
<p style="margin-bottom: 0in;">
</p>








<p style="margin-bottom: 0in;">Opensips LOG<br>******************<br>Aug 24 12:58:57 [3590]
DBG:dialog:build_new_dlg: new dialog 0x2aaaad54d240
(c=<a href="mailto:f66285722c9082d6dda627f748f1d7c3@192.168.1.23">f66285722c9082d6dda627f748f1d7c3@192.168.1.23</a>,f=<a href="http://sip:10000@192.168.1.30:3300">sip:10000@192.168.1.30:3300</a>,t=<a href="http://sip:2222@192.168.1.30:3300">sip:2222@192.168.1.30:3300</a>,ft=66d7b491a6e6a760)
on hash 2315<br>Aug 24 12:58:57 [3590]
DBG:core:parse_headers: flags=400<br>Aug 24 12:58:57 [3590]
DBG:dialog:populate_leg_info: route_set , contact
<a href="http://sip:10000@192.168.1.23:5062">sip:10000@192.168.1.23:5062</a>, cseq 4182 andbind_addr
udp:<a href="http://192.168.1.30:3300">192.168.1.30:3300</a><br>Aug 24 12:58:57 [3590]
DBG:dialog:dlg_set_leg_info: set leg 0 for 0x2aaaad54d240:
tag=&lt;66d7b491a6e6a760&gt; rr=&lt;&gt; ct=&lt;<a href="http://sip:10000@192.168.1.23:5062">sip:10000@192.168.1.23:5062</a>&gt; cseq=&lt;4182&gt;<br>Aug 24 12:58:57 [3590]
DBG:dialog:link_dlg: ref dlg 0x2aaaad54d240 with 3 -&gt; 3<br>Aug 24 12:58:57 [3590]
DBG:rr:add_rr_param: adding (;did=b09.97872922) 0x7817f8<br>------------------------------------------ 
</p>



<p style="margin-bottom: 0in;">       Dialog status ::    1<br>Dialog count ::     0<br>---- successfully created the dialog 
----<br>------------------------------------------
</p>
<p style="margin-bottom: 0in;">
</p>
<p style="margin-bottom: 0in;">
</p>
<p style="margin-bottom: 0in;">. 
</p>








<p style="margin-bottom: 0in;">Aug 24 12:58:57 [3590]
DBG:core:forward_request: orig. len=1294, new_len=1442, proto=1<br>Aug 24 12:58:57 [3590]
DBG:dialog:unref_dlg: unref dlg 0x2aaaad54d240 with 1 -&gt; 2<br>Aug 24 12:58:57 [3590]
DBG:dialog:next_state_dlg: unref dlg 0x2aaaad54d240 with 1 -&gt; 1<br>Aug 24 12:58:57 [3590]
DBG:dialog:next_state_dlg: dialog 0x2aaaad54d240 changed from state 1
to state 5, due event 1<br>Aug 24 12:58:57 [3590]
DBG:dialog:dlg_onreply: dialog 0x2aaaad54d240 failed (negative reply)<br>Aug 24 12:58:57 [3590]
DBG:dialog:unref_dlg: unref dlg 0x2aaaad54d240 with 1 -&gt; 0<br>Aug 24 12:58:57 [3590]
DBG:dialog:unref_dlg: ref &lt;=0 for dialog 0x2aaaad54d240<br>Aug 24 12:58:57 [3590]
DBG:dialog:destroy_dlg: destroing dialog 0x2aaaad54d240<br>Aug 24 12:58:57 [3590]
DBG:dialog:destroy_dlg: dlg expired or not in list - dlg
0x2aaaad54d240 [2315:580024441] with clid
&#39;<a href="mailto:f66285722c9082d6dda627f748f1d7c3@192.168.1.23">f66285722c9082d6dda627f748f1d7c3@192.168.1.23</a>&#39; and tags
&#39;66d7b491a6e6a760&#39; &#39;&#39; 
</p>
<p style="margin-bottom: 0in;">Thank you for your attention.</p><p style="margin-bottom: 0in;">-Urmi<br>
</p>
<p style="margin-bottom: 0in;"><br>
</p>