<br><br><div class="gmail_quote">On Mon, Aug 24, 2009 at 3:51 PM, Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Urmi,<br>
<br>
I see you are using the DB_MODE 1 (REALTIME), so once the call is<br>
established, you should have the record into the DB.<br>
<br>
So, the question is - were your dialog established (via 200 OK) -<br>
because otherwise you will not get any record in DB.<br>
</blockquote><div>
        <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;">My dialog is established jst after
INVITE msg. U can see, when I am printing the Dialog status it gives me 1 (i.e after INVITE ).<br></p>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
BTW, to eliminate any confusion: the dialog module does not log CDR for<br>
the dialogs, but keeps in DB records only about on going call - once the<br>
call was ended, the record is removed from DB.<br>
<br>
Regards,<br>
Bogdan<br>
<div class="im"><br>
urmi lakkad wrote:<br>
><br>
> Hello,<br>
><br>
> I am using OpenSIPs-1.5.1 version. And I want to use DIALOG module<br>
> functionality.<br>
> I have gone through the module documentations, and did the configuration.<br>
><br>
> When I make a call, the dialog should be created and the dialog entry<br>
> should be inserted into the database. My call is *working* fine. I<br>
> have tested with SIPp as well as with Grandsteam phones.<br>
> But the *dialog details is not inserted in my database*. Here in log I<br>
> can see, that the dialog is created and then *destroyed* as well.<br>
> Again its created and destroyed.<br>
><br>
> At the time of making a call, I have started the wireshark, to see<br>
> whether there is any error msg or not !! (something 400 ...) But there<br>
> also, no error.<br>
><br>
> Can you please suggest me the solution of this ?<br>
><br>
> Below is my opensips.cfg file and opensips Log details.<br>
><br>
> Opensips.cfg<br>
> ****************<br>
><br>
> loadmodule "dialog.so"<br>
> modparam("dialog", "dlg_flag",1 )<br>
> modparam("dialog", "enable_stats", 1)<br>
> modparam("dialog", "bye_on_timeout_flag", 6 )<br>
> modparam("dialog", "dlg_match_mode", 1)<br>
><br>
> modparam("dialog", "db_url",<br>
> "mysql://<a href="http://opensips:opensipsrw@127.0.0.1/opensips" target="_blank">opensips:opensipsrw@127.0.0.1/opensips</a><br>
</div>> <<a href="http://opensips:opensipsrw@127.0.0.1/opensips" target="_blank">http://opensips:opensipsrw@127.0.0.1/opensips</a>>")<br>
<div class="im">> modparam("dialog", "db_mode",1)<br>
> modparam("dialog", "table_name", "dialog")<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>
><br>
> route<br>
> {<br>
> if (is_method("INVITE"))<br>
> {<br>
> xdbg("\n\n---- Invite ----\n\n");<br>
> setflag(4);<br>
> if( (create_dialog()))<br>
> {<br>
> # set_dlg_profile("caller");<br>
> xlog("L_INFO", " ------------------------------------------\n");<br>
> xlog("L_INFO", "\n Dialog status :: $DLG_status \n");<br>
> xlog("L_INFO", "\n Dialog count :: $DLG_count \n");<br>
> xlog("L_INFO", "\n---- successfully created the dialog ----\n\n");<br>
> xlog("L_INFO", "\n------------------------------------------\n\n");<br>
> }<br>
><br>
><br>
><br>
> Opensips LOG<br>
> ******************<br>
> Aug 24 12:58:57 [3590] DBG:dialog:build_new_dlg: new dialog<br>
> 0x2aaaad54d240 (c=<a href="mailto:f66285722c9082d6dda627f748f1d7c3@192.168.1.23">f66285722c9082d6dda627f748f1d7c3@192.168.1.23</a><br>
</div>> <mailto:<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" target="_blank">sip:10000@192.168.1.30:3300</a><br>
> <<a href="http://sip:10000@192.168.1.30:3300" target="_blank">http://sip:10000@192.168.1.30:3300</a>>,t=<a href="http://sip:2222@192.168.1.30:3300" target="_blank">sip:2222@192.168.1.30:3300</a><br>
> <<a href="http://sip:2222@192.168.1.30:3300" target="_blank">http://sip:2222@192.168.1.30:3300</a>>,ft=66d7b491a6e6a760) on hash 2315<br>
<div class="im">> 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 ,<br>
> contact <a href="http://sip:10000@192.168.1.23:5062" target="_blank">sip:10000@192.168.1.23:5062</a><br>
</div>> <<a href="http://sip:10000@192.168.1.23:5062" target="_blank">http://sip:10000@192.168.1.23:5062</a>>, cseq 4182 andbind_addr<br>
> udp:<a href="http://192.168.1.30:3300" target="_blank">192.168.1.30:3300</a> <<a href="http://192.168.1.30:3300" target="_blank">http://192.168.1.30:3300</a>><br>
<div class="im">> Aug 24 12:58:57 [3590] DBG:dialog:dlg_set_leg_info: set leg 0 for<br>
> 0x2aaaad54d240: tag=<66d7b491a6e6a760> rr=<><br>
</div>> ct=<<a href="http://sip:10000@192.168.1.23:5062" target="_blank">sip:10000@192.168.1.23:5062</a> <<a href="http://sip:10000@192.168.1.23:5062" target="_blank">http://sip:10000@192.168.1.23:5062</a>>><br>
<div><div></div><div class="h5">> cseq=<4182><br>
> Aug 24 12:58:57 [3590] DBG:dialog:link_dlg: ref dlg 0x2aaaad54d240<br>
> with 3 -> 3<br>
> Aug 24 12:58:57 [3590] DBG:rr:add_rr_param: adding (;did=b09.97872922)<br>
> 0x7817f8<br>
> ------------------------------------------<br>
><br>
> Dialog status :: 1<br>
> Dialog count :: 0<br>
> ---- successfully created the dialog ----<br>
> ------------------------------------------<br>
><br>
> .<br>
><br>
> Aug 24 12:58:57 [3590] DBG:core:forward_request: orig. len=1294,<br>
> new_len=1442, proto=1<br>
> Aug 24 12:58:57 [3590] DBG:dialog:unref_dlg: unref dlg 0x2aaaad54d240<br>
> with 1 -> 2<br>
> Aug 24 12:58:57 [3590] DBG:dialog:next_state_dlg: unref dlg<br>
> 0x2aaaad54d240 with 1 -> 1<br>
> Aug 24 12:58:57 [3590] DBG:dialog:next_state_dlg: dialog<br>
> 0x2aaaad54d240 changed from state 1 to state 5, due event 1<br>
> Aug 24 12:58:57 [3590] DBG:dialog:dlg_onreply: dialog 0x2aaaad54d240<br>
> failed (negative reply)<br>
> Aug 24 12:58:57 [3590] DBG:dialog:unref_dlg: unref dlg 0x2aaaad54d240<br>
> with 1 -> 0<br>
> Aug 24 12:58:57 [3590] DBG:dialog:unref_dlg: ref <=0 for dialog<br>
> 0x2aaaad54d240<br>
> Aug 24 12:58:57 [3590] DBG:dialog:destroy_dlg: destroing dialog<br>
> 0x2aaaad54d240<br>
> Aug 24 12:58:57 [3590] DBG:dialog:destroy_dlg: dlg expired or not in<br>
> list - dlg 0x2aaaad54d240 [2315:580024441] with clid<br>
> '<a href="mailto:f66285722c9082d6dda627f748f1d7c3@192.168.1.23">f66285722c9082d6dda627f748f1d7c3@192.168.1.23</a><br>
</div></div>> <mailto:<a href="mailto:f66285722c9082d6dda627f748f1d7c3@192.168.1.23">f66285722c9082d6dda627f748f1d7c3@192.168.1.23</a>>' and tags<br>
<div class="im">> '66d7b491a6e6a760' ''<br>
><br>
> Thank you for your attention.<br>
><br>
> -Urmi<br>
><br>
><br>
</div>> ------------------------------------------------------------------------<br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><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>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><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>
</blockquote></div><br>