<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,<br>
</p>



<p style="margin-bottom: 0in;">I am using OpenSIPs-1.5.1 version. I am
 trying to implement the dialog module of it.<br>When I am firing the call, its dialog
should be created, and it should be stored in the database.  Right !!<br>But my problem is that calls are
working fine. The dialog is created successfully but its not strong
the dialog informations into the database.  I have done the following
configuration in opensips.cfg file. Here I have also attached
opensips log.</p>
<p style="margin-bottom: 0in;">
</p>

























<p style="margin-bottom: 0in;">
</p>
<p style="margin-bottom: 0in;"><u>Opensips.cfg file</u><br>#-----------------dialog module urmi
------------<br>modparam(&quot;dialog&quot;,
&quot;dlg_flag&quot;,4 )<br>modparam(&quot;dialog&quot;,
&quot;enable_stats&quot;, 0)<br>#modparam(&quot;dialog&quot;,
&quot;hash_size&quot;, 4096)<br>modparam(&quot;dialog&quot;,
&quot;rr_param&quot;, &quot;did&quot;)<br>modparam(&quot;dialog&quot;,
&quot;bye_on_timeout_flag&quot;, 0 )<br><br>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;db_update_period&quot;, 60)<br>modparam(&quot;dialog&quot;,
&quot;table_name&quot;, &quot;dialog&quot;)<br>modparam(&quot;dialog&quot;,
&quot;dlg_match_mode&quot;, 0)<br>modparam(&quot;dialog&quot;,
&quot;default_timeout&quot;, 10800)<br>#modparam(&quot;dialog&quot;,
&quot;callid_column&quot;,&quot;callid&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>modparam(&quot;dialog&quot;,
&quot;start_time_column&quot;, &quot;start_time&quot;)<br>modparam(&quot;dialog&quot;,
&quot;timeout_column&quot;, &quot;timeout&quot;)</p>




<p style="margin-bottom: 0in;"># -------------------------  request
routing logic -------------------<br>if (is_method(&quot;INVITE&quot;))<br>{<br>setflag(4);<br>xdbg(&quot;\n\n----
Invite  ----\n\n&quot;);<br><br>
</p>



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








<p style="margin-bottom: 0in;">                if(create_dialog() )<br>{<br>xlog(&quot;L_INFO&quot;,
&quot; ------------------------------------------\n&quot;);<br>xlog(&quot;L_INFO&quot;,
&quot;\n---- successfully created the dialog  ----\n&quot;);<br>xlog(&quot;L_INFO&quot;,
&quot;\n------------------------------------------\n\n&quot;);<br>}<br>else<br>{<br>xlog(&quot;L_INFO&quot;,
&quot; ------------------------------------------\n\n&quot;);<br>xlog(&quot;L_INFO&quot;,
&quot;\n\n---- not created the dialog  ----\n\n&quot;);<br>xlog(&quot;L_INFO&quot;,
&quot;\n\n------------------------------------------\n\n&quot;);<br>}<br>........</p>
<p style="margin-bottom: 0in;">}</p>

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






<p style="margin-bottom: 0in;">Aug 19 18:41:16 [7286]
DBG:dialog:build_new_dlg: new dialog 0x2aaaad5672f8
(c=<a href="mailto:1-2520@192.168.1.212">1-2520@192.168.1.212</a>,f=<a href="http://sip:10000@192.168.1.212:5060">sip:10000@192.168.1.212:5060</a>,t=<a href="http://sip:60000@192.168.1.30:3300">sip:60000@192.168.1.30:3300</a>,ft=2520SIPpTag001)
on hash 2021<br>Aug 19 18:41:16 [7286]
DBG:core:parse_headers: flags=400<br>Aug 19 18:41:16 [7286]
DBG:dialog:populate_leg_info: route_set , contact
<a href="http://sip:10000@192.168.1.212:5060">sip:10000@192.168.1.212:5060</a>, cseq 1 and bind_addrudp:<a href="http://192.168.1.30:3300">192.168.1.30:3300</a><br>Aug 19 18:41:16 [7286]
DBG:dialog:dlg_set_leg_info: set leg 0 for 0x2aaaad5672f8:
tag=&lt;2520SIPpTag001&gt; rr=&lt;&gt;
ct=&lt;<a href="http://sip:10000@192.168.1.212:5060">sip:10000@192.168.1.212:5060</a>&gt; cseq=&lt;1&gt;<br>Aug 19 18:41:16 [7286]
DBG:dialog:link_dlg: ref dlg 0x2aaaad5672f8 with 3 -&gt; 3<br>Aug 19 18:41:16 [7286]
DBG:rr:add_rr_param: adding (;did=5e7.707c22d1) 0x77fb48<br>------------------------------------------
</p>
<p style="margin-bottom: 0in;">
</p>
<p style="margin-bottom: 0in;">---- successfully created the dialog 
----
</p>
<p style="margin-bottom: 0in;">
</p>
<p style="margin-bottom: 0in;">------------------------------------------
</p>
<p style="margin-bottom: 0in;"><br>
</p>
<p style="margin-bottom: 0in;">
</p>
<p style="margin-bottom: 0in;">Aug 19 17:46:27 [6060]
DBG:core:forward_request: orig. len=758, new_len=881, proto=1<br>Aug
19 17:46:27 [6060] DBG:dialog:unref_dlg: unref dlg 0x2aaaad55af90
with 1 -&gt; 2<br>Aug 19 17:46:27 [6060] DBG:dialog:next_state_dlg:
unref dlg 0x2aaaad55af90 with 1 -&gt; 1<br>Aug 19 17:46:27 [6060]
DBG:dialog:next_state_dlg: dialog 0x2aaaad55af90 changed from state 1
to state 5, due event 1<br>Aug 19 17:46:27 [6060]
DBG:dialog:dlg_onreply: dialog 0x2aaaad55af90 failed (negative
reply)<br>Aug 19 17:46:27 [6060] DBG:dialog:unref_dlg: unref dlg
0x2aaaad55af90 with 1 -&gt; 0<br>Aug 19 17:46:27 [6060]
DBG:dialog:unref_dlg: ref &lt;=0 for dialog 0x2aaaad55af90<br>Aug 19
17:46:27 [6060] DBG:dialog:destroy_dlg: destroing dialog
0x2aaaad55af90<br>Aug 19 17:46:27 [6060] DBG:dialog:destroy_dlg: dlg
expired or not in list - dlg 0x2aaaad55af90 [3007:97477440] with clid
&#39;<a href="mailto:1-2472@192.168.1.212">1-2472@192.168.1.212</a>&#39; and tags &#39;2472SIPpTag001&#39; &#39;&#39;<br>Aug 19
17:46:27 [6060] DBG:core:destroy_avp_list: destroying list
0x2aaaad54cfe8<br>Aug 19 17:46:27 [6060] DBG:core:receive_msg:
cleaning up</p>
<p style="margin-bottom: 0in;">
</p>
<p style="margin-bottom: 0in;"><br>
</p>
<p style="margin-bottom: 0in;">Aug 19 17:46:27 [6060]
DBG:core:forward_request: orig. len=758, new_len=881, proto=1<br>Aug
19 17:46:27 [6060] DBG:dialog:unref_dlg: unref dlg 0x2aaaad55af90
with 1 -&gt; 2<br>Aug 19 17:46:27 [6060] DBG:dialog:next_state_dlg:
unref dlg 0x2aaaad55af90 with 1 -&gt; 1<br>Aug 19 17:46:27 [6060]
DBG:dialog:next_state_dlg: dialog 0x2aaaad55af90 changed from state 1
to state 5, due event 1<br>Aug 19 17:46:27 [6060]
DBG:dialog:dlg_onreply: dialog 0x2aaaad55af90 failed (negative
reply)<br>Aug 19 17:46:27 [6060] DBG:dialog:unref_dlg: unref dlg
0x2aaaad55af90 with 1 -&gt; 0<br>Aug 19 17:46:27 [6060]
DBG:dialog:unref_dlg: ref &lt;=0 for dialog 0x2aaaad55af90<br>Aug 19
17:46:27 [6060] DBG:dialog:destroy_dlg: destroing dialog
0x2aaaad55af90<br>Aug 19 17:46:27 [6060] DBG:dialog:destroy_dlg: dlg
expired or not in list - dlg 0x2aaaad55af90 [3007:97477440] with clid
&#39;<a href="mailto:1-2472@192.168.1.212">1-2472@192.168.1.212</a>&#39; and
tags &#39;2472SIPpTag001&#39; &#39;&#39;<br>Aug 19 17:46:27 [6060]
DBG:core:destroy_avp_list: destroying list 0x2aaaad54cfe8<br>Aug 19
17:46:27 [6060] DBG:core:receive_msg: cleaning up</p>

<p style="margin-bottom: 0in;">-------------------------------------------------
</p>
<p style="margin-bottom: 0in;">
</p>
<p style="margin-bottom: 0in;">
</p>
<p style="margin-bottom: 0in;">Thanks for your attention.</p><br><p style="margin-bottom: 0in;"><br></p>-Regards,<br>Urmi<br>
<p style="margin-bottom: 0in;"><br>
</p>