Hi Razvan,<br>Here are the logs with Dumping var name:<br><br>Dec  6 17:24:13 dev /usr/local/sbin/opensips[1958]: DBG:dialog:dialog_update_db: inserting new dialog 0x7fa29f2d0708<br>Dec  6 17:24:13 dev /usr/local/sbin/opensips[1958]: DBG:dialog:write_pair: Dumping var name: &lt;accX_flags&gt; value: &lt;#026&gt;<br>
Dec  6 17:24:13 dev /usr/local/sbin/opensips[1958]: DBG:dialog:write_pair: Dumping var name: &lt;accX_db&gt; value: &lt;(&gt;<br>Dec  6 17:24:13 dev /usr/local/sbin/opensips[1958]: DBG:dialog:write_pair: Dumping var name: &lt;accX_leg&gt; value: &lt;&gt;<br>
Dec  6 17:24:13 dev /usr/local/sbin/opensips[1958]: DBG:dialog:write_pair: Dumping var name: &lt;accX_core&gt; value: &lt;#006&gt;<br>Dec  6 17:24:13 dev /usr/local/sbin/opensips[1958]: DBG:dialog:write_pair: Dumping var name: &lt;accX_created&gt; value: &lt;G#002ÃN&gt;<br>
Dec  6 17:24:13 dev /usr/local/sbin/opensips[1958]: DBG:dialog:write_dialog_vars: var string is &lt;accX_flags##026&gt;(481)<br>Dec  6 17:24:13 dev /usr/local/sbin/opensips[1958]: DBG:dialog:write_pair: Dumping var name: &lt;carrierChannels&gt; value: &lt;1002&gt;<br>
Dec  6 17:24:13 dev /usr/local/sbin/opensips[1958]: DBG:dialog:write_pair: Dumping var name: &lt;carrierChannels&gt; value: &lt;1003&gt;<br>Dec  6 17:24:13 dev /usr/local/sbin/opensips[1958]: DBG:dialog:write_pair: Dumping var name: &lt;carrierChannels&gt; value: &lt;1007&gt;<br>
<br>Let me know if this helps.<br><br>Thanks,<br><br>--- Jayesh<br><br><br><div class="gmail_quote">On Tue, Dec 6, 2011 at 4:32 PM, Razvan Crainea <span dir="ltr">&lt;<a href="mailto:razvancrainea@opensips.org">razvancrainea@opensips.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Hi, Jayesh!<br>
    <br>
    Can you please apply the patch I&#39;ve attached? And then mail me back
    the log, but this time taken just after OpenSIPS shuts down with an
    active dialog. The log should contain the following strings:<br>
    <br>
    &quot;Dumping var name: &quot;<br>
    <br>
    and<br>
    <br>
    &quot;var string is &lt;&quot;<br>
    <br>
    They should appear before OpenSIPS stops with an active dialog, so <br><div class="im">
    <pre cols="72">--
Răzvan Crainea
OpenSIPS Developer</pre>
    <br></div><div><div class="h5">
    On 12/06/2011 12:13 PM, Jayesh Nambiar wrote:
    <blockquote type="cite">Hi Razvan,<br>
      The logs with debug level 9 are pasted here:<br>
      <br>
      After restarting I disconnected the call, the dialog matched
      perfectly but no CDR record.<br>
      <br>
      --- Jayesh<br>
      <br>
      <br>
      <div class="gmail_quote">On Tue, Dec 6, 2011 at 2:50 PM, Razvan
        Crainea <span dir="ltr">&lt;<a href="mailto:razvancrainea@opensips.org" target="_blank">razvancrainea@opensips.org</a>&gt;</span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div bgcolor="#FFFFFF" text="#000000"> Hi, Jayesh!<br>
            <br>
            Yes, I will need extra debugging to see what&#39;s happening.
            Can you send[1] the log in full debugging, taken after
            OpenSIPS is restarted?<br>
            <br>
            [1] <a href="http://pastebin.com" target="_blank">pastebin.com</a>
            <div><br>
              <br>
              Regards,<br>
              <pre cols="72">--
Răzvan Crainea
OpenSIPS Developer</pre>
              <br>
            </div>
            <div>
              <div> On 12/06/2011 08:13 AM, Jayesh Nambiar
                wrote:
                <blockquote type="cite">Hi Razvan,<br>
                  The dialogs are definitely loaded on startup and it
                  also matches with existing dialog. I use this to make
                  sure the dialog is matched in my script. So even after
                  a restart, I see the Dialog Matched in my syslog.<br>
                  <br>
                  if(has_totag()) {<br>
                        if(match_dialog()) {<br>
                           log(1, &quot;Dialog Matched&quot;);<br>
                           route(default_relay);<br>
                           exit;<br>
                        }<br>
                  }<br>
                  <br>
                  But it is just that the cdr insert does not take place
                  after the restart !!<br>
                  My debug level was at 3. Do you want more detailed
                  logs to check??<br>
                  <br>
                  Thanks,<br>
                  <br>
                  --- Jayesh<br>
                  <br>
                  <div class="gmail_quote">On Mon, Dec 5, 2011 at 7:12
                    PM, Razvan Crainea <span dir="ltr">&lt;<a href="mailto:razvancrainea@opensips.org" target="_blank">razvancrainea@opensips.org</a>&gt;</span>
                    wrote:<br>
                    <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      <div bgcolor="#FFFFFF" text="#000000"> Hi Jayesh,<br>
                        <br>
                        Can you please check if the dialogs are loaded
                        back after a restart. Also, do you see any
                        errors in your log?<br>
                        <br>
                        Regards,<span><font color="#888888"><br>
                            <pre cols="72">--
Răzvan Crainea
OpenSIPS Developer</pre>
                          </font></span>
                        <div>
                          <div> <br>
                            On 12/05/2011 02:31 PM, Bogdan-Andrei Iancu
                            wrote:
                            <blockquote type="cite"> Hi Jayesh,<br>
                              <br>
                              Razvan is checking the code for you and
                              running some tests.<br>
                              <br>
                              Regards,<br>
                              Bogdan<br>
                              <br>
                              On 12/03/2011 02:49 PM, Jayesh Nambiar
                              wrote:
                              <blockquote type="cite">Hi Bogdan,<br>
                                Just writing to ask if you got a chance
                                to check if this is a bug or some error
                                in my config !!<br>
                                <br>
                                Thanks,<br>
                                <br>
                                --- Jayesh<br>
                                <br>
                                <div class="gmail_quote">On Fri, Dec 2,
                                  2011 at 11:23 AM, Jayesh Nambiar <span dir="ltr">&lt;<a href="mailto:jayesh.voip@gmail.com" target="_blank">jayesh.voip@gmail.com</a>&gt;</span>
                                  wrote:<br>
                                  <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi
                                    Bogdan,<br>
                                    The exact version used is 1.7.1
                                    stable release compiled from src.
                                    Output of opensips -V is:<br>
                                    version: opensips 1.7.1-notls
                                    (x86_64/linux)<br>
                                    flags: STATS: Off, USE_IPV6,
                                    USE_TCP, DISABLE_NAGLE, USE_MCAST,
                                    SHM_MEM, SHM_MMAP, PKG_MALLOC,
                                    F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT<br>
                                    ADAPTIVE_WAIT_LOOPS=1024,
                                    MAX_RECV_BUFFER_SIZE 262144,
                                    MAX_LISTEN 16, MAX_URI_SIZE 1024,
                                    BUF_SIZE 65535<br>
                                    poll method support: poll, epoll_lt,
                                    epoll_et, sigio_rt, select.<br>
                                    svnrevision: unknown<br>
                                    @(#) $Id: main.c 8537 2011-11-08
                                    17:02:11Z bogdan_iancu $<br>
                                    main.c compiled on 16:59:52 Dec  1
                                    2011 with gcc 4.4.5<br>
                                    <br>
                                    The CDR does not survive a restart.
                                    Anything else to be enabled or added
                                    in the script or to be looked at?<br>
                                    Thanks,<br>
                                    <br>
                                    --- Jayesh
                                    <div>
                                      <div> <br>
                                        <br>
                                        <div class="gmail_quote"> On
                                          Thu, Dec 1, 2011 at 10:35 PM,
                                          Bogdan-Andrei Iancu <span dir="ltr">&lt;<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>&gt;</span>
                                          wrote:<br>
                                          <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
                                            <div bgcolor="#ffffff" text="#000000"> Hi Jayesh,<br>
                                              <br>
                                              If dialog module has
                                              restart persistence ( db
                                              modes 1, 2 and 3) the CDRs
                                              should survive across a
                                              restart. If this is not
                                              the case for you, let me
                                              know the exact version of
                                              opensips you are running
                                              (do &quot;opensips -V&quot;).<br>
                                              <br>
                                              Regards,<br>
                                              Bogdan
                                              <div>
                                                <div><br>
                                                  <br>
                                                  On 12/01/2011 12:28
                                                  PM, Jayesh Nambiar
                                                  wrote: </div>
                                              </div>
                                              <blockquote type="cite">
                                                <div>
                                                  <div>Hello All,<br>
                                                    I am planning to use
                                                    CDR accounting in my
                                                    script starting from
                                                    version 1.7 and it
                                                    looks fine and
                                                    working as expected.
                                                    Although I had one
                                                    doubt, how do I make
                                                    sure the CDR
                                                    accounting still
                                                    happens if the
                                                    opensips is
                                                    restarted and BYE
                                                    comes after the
                                                    restart. I have
                                                    tried db_mode 3 for
                                                    dialog module so
                                                    that it dumps all
                                                    the dialogs while
                                                    shutdown and on
                                                    start it fetches the
                                                    dialog from the DB.
                                                    This method makes
                                                    sure the dialog is
                                                    matched when BYE
                                                    comes after the
                                                    restart but the CDR
                                                    record is not
                                                    entered.<br>
                                                    Is there any flag or
                                                    dialog variable that
                                                    I should set to
                                                    insert that value in
                                                    the table for all
                                                    dialogs when
                                                    opensips shuts off
                                                    so that opensips
                                                    knows that the CDR
                                                    flag was set for
                                                    this dialog when
                                                    started again and it
                                                    has to insert the
                                                    record?<br>
                                                    Do let me know for
                                                    any pointers or
                                                    ideas to get this
                                                    done.<br>
                                                    Thanks in advance.<br>
                                                    <br>
                                                    --- Jayesh<br>
                                                  </div>
                                                </div>
                                                <pre><fieldset></fieldset>
_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><span><font color="#888888">
</font></span></pre>
                                                <span><font color="#888888"> </font></span></blockquote>
                                              <span><font color="#888888"> <br>
                                                  <br>
                                                  <pre cols="72">-- 
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
OpenSIPS solutions and &quot;know-how&quot;</pre>
                                                </font></span></div>
                                          </blockquote>
                                        </div>
                                        <br>
                                      </div>
                                    </div>
                                  </blockquote>
                                </div>
                                <br>
                              </blockquote>
                              <br>
                              <br>
                              <pre cols="72">-- 
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
OpenSIPS solutions and &quot;know-how&quot;</pre>
                            </blockquote>
                          </div>
                        </div>
                      </div>
                    </blockquote>
                  </div>
                  <br>
                </blockquote>
              </div>
            </div>
          </div>
        </blockquote>
      </div>
      <br>
    </blockquote>
  </div></div></div>

</blockquote></div><br>