<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <tt>The dialog must be created, otherwise setting your $dlg_val will
      fail (check for "ERROR:core:do_assign: setting PV failed")<br>
      <br>
      The code you posted is for sequential request handling. Normally,
      the dialog should have been created by the time this block is
      reached.</tt><br>
    <br>
    <div class="moz-cite-prefix">On 05.03.2015 18:39, Satish Patel
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAPgF-fp=mrYXfVvXxmQhrPQTfgM13BU75=Oy=GEwswhdQtReUA@mail.gmail.com"
      type="cite">
      <div dir="ltr">Thanks Liviu,
        <div><br>
        </div>
        <div>Where should i put this variable in script? I have
          following code, should i before it create dialog? </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>
          <div> if (has_totag()) {</div>
          <div>                # sequential request withing a dialog
            should</div>
          <div>                # take the path determined by
            record-routing</div>
          <div>                if (loose_route() || match_dialog())  {</div>
          <div>                        if ($DLG_status!=NULL &amp;&amp;
            !validate_dialog() ) {</div>
          <div>                                #xlog(" in-dialog bogus
            request \n");</div>
          <div>                                fix_route_dialog();</div>
          <div>                         } else {</div>
          <div>                                 #xlog(" in-dialog valid
            request - $DLG_dir !\n");</div>
          <div>                                 fix_route_dialog();</div>
          <div>                        }</div>
          <div><br>
          </div>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Thu, Mar 5, 2015 at 11:32 AM, Liviu
          Chircu <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:liviu@opensips.org" target="_blank">liviu@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 text="#000000" bgcolor="#FFFFFF"> <tt>Hello Satish,<br>
                <br>
                You can use dialog-persistent variables [1]. For
                example,<br>
                $dlg_var(customer_name) = $var(name);<br>
                <br>
                [1] : <a moz-do-not-send="true"
href="http://www.opensips.org/html/docs/modules/2.1.x/dialog.html#id297182"
                  target="_blank">http://www.opensips.org/html/docs/modules/2.1.x/dialog.html#id297182</a><br>
                <br>
                Best regards,<br>
              </tt>
              <pre cols="72">Liviu Chircu
OpenSIPS Developer
<a moz-do-not-send="true" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
              <div>
                <div class="h5">
                  <div>On 05.03.2015 18:27, Satish Patel wrote:<br>
                  </div>
                </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div class="h5">
                    <div dir="ltr">Hello,
                      <div><br>
                      </div>
                      <div>How do i add customer info in opensipsctl
                        fifo dlg_list_ctx output? </div>
                      <div><br>
                      </div>
                      <div>I want to add custom field ( customer name)
                        in dlg_list_ctx output </div>
                    </div>
                    <br>
                    <fieldset></fieldset>
                    <br>
                  </div>
                </div>
                <pre>_______________________________________________
Users mailing list
<a moz-do-not-send="true" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<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>
</pre>
              </blockquote>
              <br>
            </div>
            <br>
            _______________________________________________<br>
            Users mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
            <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>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
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>
    <br>
  </body>
</html>