<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("dialog",
"dlg_flag",4 )<br>modparam("dialog",
"enable_stats", 0)<br>#modparam("dialog",
"hash_size", 4096)<br>modparam("dialog",
"rr_param", "did")<br>modparam("dialog",
"bye_on_timeout_flag", 0 )<br><br>modparam("dialog", "db_url",
"mysql://<a href="http://opensips:opensipsrw@127.0.0.1/opensips">opensips:opensipsrw@127.0.0.1/opensips</a>")<br>modparam("dialog",
"db_mode",1)<br>modparam("dialog",
"db_update_period", 60)<br>modparam("dialog",
"table_name", "dialog")<br>modparam("dialog",
"dlg_match_mode", 0)<br>modparam("dialog",
"default_timeout", 10800)<br>#modparam("dialog",
"callid_column","callid")<br>modparam("dialog",
"from_uri_column", "from_uri")<br>modparam("dialog",
"from_tag_column", "from_tag")<br>modparam("dialog",
"to_uri_column", "to_uri")<br>modparam("dialog",
"to_tag_column", "to_tag")<br>modparam("dialog",
"h_id_column", "hash_id")<br>modparam("dialog",
"state_column", "state")<br>modparam("dialog",
"start_time_column", "start_time")<br>modparam("dialog",
"timeout_column", "timeout")</p>
<p style="margin-bottom: 0in;"># ------------------------- request
routing logic -------------------<br>if (is_method("INVITE"))<br>{<br>setflag(4);<br>xdbg("\n\n----
Invite ----\n\n");<br><br>
</p>
<p style="margin-bottom: 0in;">
</p>
<p style="margin-bottom: 0in;"> if(create_dialog() )<br>{<br>xlog("L_INFO",
" ------------------------------------------\n");<br>xlog("L_INFO",
"\n---- successfully created the dialog ----\n");<br>xlog("L_INFO",
"\n------------------------------------------\n\n");<br>}<br>else<br>{<br>xlog("L_INFO",
" ------------------------------------------\n\n");<br>xlog("L_INFO",
"\n\n---- not created the dialog ----\n\n");<br>xlog("L_INFO",
"\n\n------------------------------------------\n\n");<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=<2520SIPpTag001> rr=<>
ct=<<a href="http://sip:10000@192.168.1.212:5060">sip:10000@192.168.1.212:5060</a>> cseq=<1><br>Aug 19 18:41:16 [7286]
DBG:dialog:link_dlg: ref dlg 0x2aaaad5672f8 with 3 -> 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 -> 2<br>Aug 19 17:46:27 [6060] DBG:dialog:next_state_dlg:
unref dlg 0x2aaaad55af90 with 1 -> 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 -> 0<br>Aug 19 17:46:27 [6060]
DBG:dialog:unref_dlg: ref <=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
'<a href="mailto:1-2472@192.168.1.212">1-2472@192.168.1.212</a>' and tags '2472SIPpTag001' ''<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 -> 2<br>Aug 19 17:46:27 [6060] DBG:dialog:next_state_dlg:
unref dlg 0x2aaaad55af90 with 1 -> 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 -> 0<br>Aug 19 17:46:27 [6060]
DBG:dialog:unref_dlg: ref <=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
'<a href="mailto:1-2472@192.168.1.212">1-2472@192.168.1.212</a>' and
tags '2472SIPpTag001' ''<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>