<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hello,<br>
    <br>
    Please open a bug report for this, providing some relevant
    information, like OpenSIPS full debug log at startup and logs from
    when you run 'dlg_db_sync'.<br>
    <br>
    Regards,<br>
    <pre class="moz-signature" cols="72">Vlad Paiu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a> </pre>
    <br>
    On 06/11/2012 05:10 PM, Mariana Arduini wrote:
    <blockquote
cite="mid:CABHUZgBW5CoSgos5sDt002Q6m8eDkZc+jo64a_kK96LW0v301Q@mail.gmail.com"
      type="cite">Hello,<br>
      <br>
      I noticed that some weeks ago there was not much replying from
      OpenSIPS Dev team in the Users team, but I saw Bogdan answering
      some questions now and I would like to check on the updates on my
      issue.<br>
      <br>
      Should I open a bug related to it?<br>
      <br>
      Thanks a lot,<br>
      Mariana.<br>
      <br>
      <div class="gmail_quote">On Thu, May 24, 2012 at 9:35 AM, Mariana
        Arduini <span dir="ltr">&lt;<a moz-do-not-send="true"
            href="mailto:marianarduini@gmail.com" target="_blank">marianarduini@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;">Hello,
          <div class="im">
            <div><br>
            </div>
            <div>Is there any update on my question?</div>
            <div><br>
            </div>
          </div>
          <div>Thanks,</div>
          <div>Mariana
            <div>
              <div class="h5"><br>
                <br>
                <div class="gmail_quote">On Mon, May 21, 2012 at 10:06
                  AM, Mariana Arduini <span dir="ltr">&lt;<a
                      moz-do-not-send="true"
                      href="mailto:marianarduini@gmail.com"
                      target="_blank">marianarduini@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;">Hello all,
                    <div><br>
                    </div>
                    <div>Is there any update on my question? Should I
                      open a bug about this issue, or is there any other
                      test I can run to verify this feature?</div>
                    <div><br>
                    </div>
                    <div>Thanks,</div>
                    <div>Mariana.
                      <div>
                        <div><br>
                          <br>
                          <div class="gmail_quote">On Thu, May 17, 2012
                            at 2:22 PM, Mariana Arduini <span dir="ltr">&lt;<a
                                moz-do-not-send="true"
                                href="mailto:marianarduini@gmail.com"
                                target="_blank">marianarduini@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;">
                              Hello,<br>
                              <div><br>
                                &gt;&gt; The dlg_db_sync command is only
                                useful when you have the second server
                                online, and want to trigger a refresh of
                                OpenSIPS memory based on what is in the
                                DB.<br>
                                <br>
                              </div>
                              In fact I noticed it. I also tried this
                              test with no success in<br>
                              fetching the dialog vars:<br>
                              <br>
                              1) Server #2 is online listening on
                              10.0.0.1<br>
                              2) interface 10.0.0.1 is set down on
                              server #2, but server #2 is not stopped<br>
                              3) interface 10.0.0.1 is set up on server
                              #1 and server #1 is started<br>
                              4) UAC sends INVITE to 10.0.0.1, which
                              goes to server #1<br>
                              5) interface 10.0.0.1 is set down on
                              server #1, and server #1 is stopped<br>
                              6) interface 10.0.0.1 is set up on server
                              #2<br>
                              7) dlg_db_sync is run on server #2, but
                              dlg_list_ctx shows no vars<br>
                              8) UAC sends BYE to 10.0.0.1, which goes
                              to server #2<br>
                              <div><br>
                                &gt;&gt; If you just start the secondary
                                server &amp; do not issue dlg_db_sync,
                                do you still have the same problem ?<br>
                                <br>
                              </div>
                              Yes, no dialogs vars in context.<br>
                              <br>
                              Attached is the log on server #2 you asked
                              for. It includes the<br>
                              following, in this order:<br>
                              <br>
                              1) opensipsctl start<br>
                              2) opensipsctl fifo dlg_list_ctx: no vars
                              shown in context<br>
                              3) opensipsctl fifo dlg_db_sync<br>
                              4) opensipsctl fifo dlg_list_ctx: no vars
                              shown in context<br>
                              5) BYE from UAC, server looks for dialog
                              var "caller_tag"<br>
                              <br>
                              For this test, I tried to get the vars
                              using fetch_dlg_value(), file<br>
                              name is log-server-2-from-start-fetch.txt.<br>
                              <br>
                              I collected another log for the same test,
                              now using get_dialog_info()<br>
                              instead of fetch_dlg_value(), file name
                              is.<br>
                              <br>
                              Thanks for the help.<br>
                              <span><font color="#888888">Mariana<br>
                                </font></span>
                              <div>
                                <div><br>
                                  On Thu, May 17, 2012 at 6:08 AM, Vlad
                                  Paiu &lt;<a moz-do-not-send="true"
                                    href="mailto:vladpaiu@opensips.org"
                                    target="_blank">vladpaiu@opensips.org</a>&gt;
                                  wrote:<br>
                                  &gt;<br>
                                  &gt; Hello,<br>
                                  &gt;<br>
                                  &gt; Just to clear some things up, if
                                  you leave the second server offline
                                  and only start it after the active is
                                  down, then the ongoing dialogs will be
                                  automatically loaded by the secondary
                                  server at startup. The dlg_db_sync
                                  command is only useful when you have
                                  the second server online, and want to
                                  trigger a refresh of OpenSIPS memory
                                  based on what is in the DB.<br>
                                  &gt;<br>
                                  &gt; If you just start the secondary
                                  server &amp; do not issue dlg_db_sync,
                                  do you still have the same problem ?<br>
                                  &gt; If you can, please send us (
                                  privately or via pastebin ) a full
                                  debug OpenSIPS log of the secondary
                                  server ( from startup, until the
                                  moment you want to access a dlg_var ).<br>
                                  &gt;<br>
                                  &gt;<br>
                                  &gt; Regards,<br>
                                  &gt;<br>
                                  &gt; Vlad Paiu<br>
                                  &gt; OpenSIPS Developer<br>
                                  &gt; <a moz-do-not-send="true"
                                    href="http://www.opensips-solutions.com"
                                    target="_blank">http://www.opensips-solutions.com</a><br>
                                  &gt;<br>
                                  &gt;<br>
                                  &gt; On 05/16/2012 08:46 PM, Mariana
                                  Arduini wrote:<br>
                                  &gt;&gt;<br>
                                  &gt;&gt; Hi Vlad,<br>
                                  &gt;&gt;<br>
                                  &gt;&gt; &gt; Does this also happen if
                                  you leave the second server offline,
                                  and start it after the active OpenSIPS
                                  is shut down (...) ?<br>
                                  &gt;&gt;<br>
                                  &gt;&gt; Yes, that's exactly the test
                                  I've run.<br>
                                  &gt;&gt;<br>
                                  &gt;&gt; &gt; At the moment that you
                                  run dlg_db_sync, do you see the
                                  variables in the dialog DB table ?<br>
                                  &gt;&gt;<br>
                                  &gt;&gt; Yes.<br>
                                  &gt;&gt;<br>
                                  &gt;&gt; After you run dlg_db_sync,
                                  you say you cannot access the
                                  variables from the script, but you see
                                  them in dlg_list_ctx ?<br>
                                  &gt;&gt;<br>
                                  &gt;&gt; No, I don't see them in
                                  dlg_list_ctx, neither I can access
                                  them from the script.<br>
                                  &gt;&gt;<br>
                                  &gt;&gt; Thanks.<br>
                                  &gt;&gt; Mariana.<br>
                                  &gt;&gt;<br>
                                  &gt;&gt; On Wed, May 16, 2012 at 2:31
                                  PM, Vlad Paiu &lt;<a
                                    moz-do-not-send="true"
                                    href="mailto:vladpaiu@opensips.org"
                                    target="_blank">vladpaiu@opensips.org</a>&gt;
                                  wrote:<br>
                                  &gt;&gt;&gt;<br>
                                  &gt;&gt;&gt; Hi Mariana,<br>
                                  &gt;&gt;&gt;<br>
                                  &gt;&gt;&gt; Does this also happen if
                                  you leave the second server offline,
                                  and start it after the active OpenSIPS
                                  is shut down, instead of leaving the
                                  second server up and running
                                  'dlg_db_sync' ?<br>
                                  &gt;&gt;&gt;<br>
                                  &gt;&gt;&gt; At the moment that you
                                  run dlg_db_sync, do you see the
                                  variables in the dialog DB table ?<br>
                                  &gt;&gt;&gt; After you run
                                  dlg_db_sync, you say you cannot access
                                  the variables from the script, but you
                                  see them in dlg_list_ctx ?<br>
                                  &gt;&gt;&gt;<br>
                                  &gt;&gt;&gt; Regards,<br>
                                  &gt;&gt;&gt;<br>
                                  &gt;&gt;&gt; Vlad Paiu<br>
                                  &gt;&gt;&gt; OpenSIPS Developer<br>
                                  &gt;&gt;&gt; <a
                                    moz-do-not-send="true"
                                    href="http://www.opensips-solutions.com"
                                    target="_blank">http://www.opensips-solutions.com</a><br>
                                  &gt;&gt;&gt;<br>
                                  &gt;&gt;&gt;<br>
                                  &gt;&gt;&gt; On 05/16/2012 07:57 PM,
                                  Mariana Arduini wrote:<br>
                                  &gt;&gt;&gt;&gt;<br>
                                  &gt;&gt;&gt;&gt; Hi Razvan,<br>
                                  &gt;&gt;&gt;&gt;<br>
                                  &gt;&gt;&gt;&gt; Do I need to open a
                                  bug about this issue somewhere? I saw
                                  Bogdan's message about OpenSIPS 1.8
                                  Stable being released tomorrow.<br>
                                  &gt;&gt;&gt;&gt;<br>
                                  &gt;&gt;&gt;&gt; I think the problem
                                  is the dialog variables are not being
                                  fetched from DB, either when OpenSIPS
                                  is restarded, either when we run the
                                  new fifo command dlg_db_sync.<br>
                                  &gt;&gt;&gt;&gt;<br>
                                  &gt;&gt;&gt;&gt; Thanks again!<br>
                                  &gt;&gt;&gt;&gt; Mariana.<br>
                                  &gt;&gt;&gt;&gt;<br>
                                  &gt;&gt;&gt;&gt; On Wed, May 16, 2012
                                  at 8:06 AM, Mariana Arduini &lt;<a
                                    moz-do-not-send="true"
                                    href="mailto:marianarduini@gmail.com"
                                    target="_blank">marianarduini@gmail.com</a>&gt;
                                  wrote:<br>
                                  &gt;&gt;&gt;&gt;&gt;<br>
                                  &gt;&gt;&gt;&gt;&gt; Hi, Razvan!<br>
                                  &gt;&gt;&gt;&gt;&gt;<br>
                                  &gt;&gt;&gt;&gt;&gt; Thank you for the
                                  $DLG_dir pseudovariable, it worked!<br>
                                  &gt;&gt;&gt;&gt;&gt;<br>
                                  &gt;&gt;&gt;&gt;&gt; The variables are
                                  properly flushed into the DB after 200
                                  OK, and I can also see them using
                                  "opensipsctl fifo dlg_list_ctx", under
                                  context.<br>
                                  &gt;&gt;&gt;&gt;&gt;<br>
                                  &gt;&gt;&gt;&gt;&gt; Even using the
                                  $DLG_dir for the direction of a
                                  sequential request, I still need to
                                  access either the caller_contact or
                                  the callee_contact. Is there any other
                                  way to have those apart from the
                                  variables?<br>
                                  &gt;&gt;&gt;&gt;&gt;<br>
                                  &gt;&gt;&gt;&gt;&gt; Thanks again!<br>
                                  &gt;&gt;&gt;&gt;&gt; Mariana.<br>
                                  &gt;&gt;&gt;&gt;&gt;<br>
                                  &gt;<br>
                                </div>
                              </div>
                              <div>
                                <div>&gt;
                                  _______________________________________________<br>
                                  &gt; Users mailing list<br>
                                  &gt; <a moz-do-not-send="true"
                                    href="mailto:Users@lists.opensips.org"
                                    target="_blank">Users@lists.opensips.org</a><br>
                                  &gt; <a moz-do-not-send="true"
                                    href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
                                    target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
                                  &gt;<br>
                                </div>
                              </div>
                            </blockquote>
                          </div>
                          <br>
                        </div>
                      </div>
                    </div>
                  </blockquote>
                </div>
                <br>
              </div>
            </div>
          </div>
        </blockquote>
      </div>
      <br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
  </body>
</html>