<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hi Brian</tt><tt>,</tt><br>
    <br>
    <tt>The idea is the function needs a dialog context in order to work
      - as this function is to be used for sequential requests, you have
      to be sure your request matched </tt><tt>its dialog before using
      this function.</tt><br>
    <tt>The dialog matching (for sequential) is done via loose_route()
      (if you do not use topo hidding) , via dialog_match() or via </tt><tt>topology_hiding_match()
      if using topo hiding. </tt><br>
    <tt><br>
      Best regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a>
OpenSIPS Summit 2018
  <a class="moz-txt-link-freetext" href="http://www.opensips.org/events/Summit-2018Amsterdam">http://www.opensips.org/events/Summit-2018Amsterdam</a>
</pre>
    <div class="moz-cite-prefix">On 02/09/2018 06:45 PM, Brian
      Southworth wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:010201617b751df7-79d9b432-b9c4-4f93-8ff9-a6a7b9e087a4-000000@eu-west-1.amazonses.com">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal">dlg_validate_dialog: Script error -
          validate function before having a dialog<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">I am trying to fix contact header on the
          called, ive fixed the register users used to register with a
          private ip and not local.<o:p></o:p></p>
        <p class="MsoNormal">Now when inbound calls happen they don’t
          get them due to the call being send to a local ip that isn’t
          local.<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">So ive used the validate dialog code chunk
          and I get back the above<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><span
            style="font-size:12.0pt;color:black;mso-fareast-language:EN-GB">Regards,<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:16.0pt;color:black;mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:16.0pt;color:black;mso-fareast-language:EN-GB">Brian
            Southworth<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="color:black;mso-fareast-language:EN-GB">Communications
            Developer</span><span style="mso-fareast-language:EN-GB"><o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:9.0pt;color:#1F497D;mso-fareast-language:EN-GB"><img
              style="width:2.375in;height:.9479in" id="Picture_x0020_1"
              src="cid:part1.73186B64.0541072E@opensips.org"
              alt="cid:image001.png@01D22CAC.1DCB8580" class=""
              height="91" width="228"><o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;color:black;mso-fareast-language:EN-GB">111
            Wilmslow Road<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;color:black;mso-fareast-language:EN-GB">Handforth<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;color:black;mso-fareast-language:EN-GB">Wilmslow<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;color:black;mso-fareast-language:EN-GB">SK9
            3ER<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="color:black;mso-fareast-language:EN-GB"> </span><span
style="font-size:10.0pt;color:#1F497D;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;color:black;mso-fareast-language:EN-GB">T:
            03333 446677<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;color:black;mso-fareast-language:EN-GB">W:
          </span><span style="mso-fareast-language:EN-GB"><a
              href="http://www.clocom.uk/" moz-do-not-send="true"><span
                style="font-size:10.0pt;color:#0563C1">www.clocom.uk</span></a></span><u><span
style="font-size:10.0pt;color:#0563C1;mso-fareast-language:EN-GB"> </span></u><span
style="font-size:10.0pt;color:black;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
        <table class="MsoNormalTable" style="border-collapse:collapse"
          border="0" cellspacing="0" cellpadding="0">
          <tbody>
            <tr>
              <td style="width:42.15pt;padding:0cm 5.4pt 0cm 5.4pt"
                valign="top" width="56">
                <p class="MsoNormal"><span
                    style="color:black;mso-fareast-language:EN-GB"> </span><span
style="font-size:10.5pt;color:#1F497D;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
              </td>
              <td style="width:92.55pt;padding:0cm 5.4pt 0cm 5.4pt"
                valign="top" width="123">
                <p class="MsoNormal"><span
                    style="color:black;mso-fareast-language:EN-GB"> </span><span
style="font-size:10.5pt;color:#1F497D;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
              </td>
              <td style="width:14.15pt;padding:0cm 5.4pt 0cm 5.4pt"
                valign="top" width="19">
                <p class="MsoNormal"><span
                    style="color:black;mso-fareast-language:EN-GB"> </span><span
style="font-size:10.5pt;color:#1F497D;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
              </td>
              <td style="width:99.25pt;padding:0cm 5.4pt 0cm 5.4pt"
                valign="top" width="132">
                <p class="MsoNormal"><span
                    style="color:black;mso-fareast-language:EN-GB"> </span><span
style="font-size:10.5pt;color:#1F497D;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
              </td>
              <td style="width:42.5pt;padding:0cm 5.4pt 0cm 5.4pt"
                valign="top" width="57">
                <p class="MsoNormal"><span
                    style="color:black;mso-fareast-language:EN-GB"> </span><span
style="font-size:10.5pt;color:#1F497D;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
              </td>
            </tr>
            <tr>
              <td style="width:42.15pt;padding:0cm 5.4pt 0cm 5.4pt"
                valign="top" width="56">
                <p class="MsoNormal"><a
                    href="http://www.facebook.com/clocom.uk"
                    moz-do-not-send="true"><span
style="font-size:10.0pt;color:#1F497D;mso-fareast-language:EN-GB;text-decoration:none"><img
                        style="width:.4166in;height:.4166in"
                        id="Picture_x0020_2"
                        src="cid:part3.719DB765.2535321C@opensips.org"
                        alt="cid:image002.png@01CDDC62.D8483910"
                        class="" height="40" border="0" width="40"></span></a><span
style="font-size:10.5pt;color:#1F497D;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
              </td>
              <td style="width:92.55pt;padding:0cm 5.4pt 0cm 5.4pt"
                width="123">
                <p class="MsoNormal"><span
                    style="font-size:9.0pt;color:#1F497D;mso-fareast-language:EN-GB">Like
                    us on Facebook<o:p></o:p></span></p>
              </td>
              <td style="width:14.15pt;padding:0cm 5.4pt 0cm 5.4pt"
                width="19">
                <p class="MsoNormal"><span
                    style="font-size:9.0pt;color:#1F497D;mso-fareast-language:EN-GB"><img
                      style="width:.0104in;height:.3958in"
                      id="Picture_x0020_3"
                      src="cid:part5.480BC6F8.F49676C3@opensips.org"
                      alt="cid:image003.png@01CDDC62.D8483910" class=""
                      height="38" border="0" width="1"><o:p></o:p></span></p>
              </td>
              <td style="width:99.25pt;padding:0cm 5.4pt 0cm 5.4pt"
                width="132">
                <p class="MsoNormal" style="text-align:right"
                  align="right"><span
                    style="font-size:9.0pt;color:#1F497D;mso-fareast-language:EN-GB">Follow
                    us on Twitter<o:p></o:p></span></p>
              </td>
              <td style="width:42.5pt;padding:0cm 5.4pt 0cm 5.4pt"
                valign="top" width="57">
                <p class="MsoNormal" style="text-align:right"
                  align="right"><a href="https://twitter.com/clocom_uk"
                    moz-do-not-send="true"><span
style="font-size:10.0pt;color:#1F497D;mso-fareast-language:EN-GB;text-decoration:none"><img
                        style="width:.427in;height:.427in"
                        id="Picture_x0020_4"
                        src="cid:part6.C76E5CE4.2066107B@opensips.org"
                        alt="cid:image004.png@01CDDC62.D8483910"
                        class="" height="41" border="0" width="41"></span></a><span
style="font-size:10.5pt;color:#1F497D;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
              </td>
            </tr>
            <tr>
              <td style="width:42.15pt;padding:0cm 5.4pt 0cm 5.4pt"
                valign="top" width="56">
                <p class="MsoNormal"><span
                    style="color:black;mso-fareast-language:EN-GB"> </span><span
style="font-size:10.5pt;color:#1F497D;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
              </td>
              <td style="width:92.55pt;padding:0cm 5.4pt 0cm 5.4pt"
                valign="top" width="123">
                <p class="MsoNormal"><span
                    style="color:black;mso-fareast-language:EN-GB"> </span><span
style="font-size:10.5pt;color:#1F497D;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
              </td>
              <td style="width:14.15pt;padding:0cm 5.4pt 0cm 5.4pt"
                valign="top" width="19">
                <p class="MsoNormal"><span
                    style="color:black;mso-fareast-language:EN-GB"> </span><span
style="font-size:10.5pt;color:#1F497D;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
              </td>
              <td style="width:99.25pt;padding:0cm 5.4pt 0cm 5.4pt"
                valign="top" width="132">
                <p class="MsoNormal"><span
                    style="color:black;mso-fareast-language:EN-GB"> </span><span
style="font-size:10.5pt;color:#1F497D;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
              </td>
              <td style="width:42.5pt;padding:0cm 5.4pt 0cm 5.4pt"
                valign="top" width="57">
                <p class="MsoNormal"><span
                    style="color:black;mso-fareast-language:EN-GB"> </span><span
style="font-size:10.5pt;color:#1F497D;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
              </td>
            </tr>
          </tbody>
        </table>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;color:#05851D;mso-fareast-language:EN-GB">Clocom
            is a <b>green</b> company. Think, do you need to print this
            email?</span><span
            style="font-size:10.0pt;color:#05851D;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="color:black;mso-fareast-language:EN-GB"> <o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;color:#385623;background:white;mso-fareast-language:EN-GB">This
            message contains confidential information and is intended
            only for the individual named. If you are not the named
            addressee you should not disseminate, distribute or copy
            this e-mail. Please notify the sender immediately by e-mail
            if you have received this e-mail by mistake and delete this
            e-mail from your system. E-mail transmission cannot be
            guaranteed to be secure or error-free as information could
            be intercepted, corrupted, lost, destroyed, arrive late or
            incomplete, or contain viruses. The sender therefore does
            not accept liability for any errors or omissions in the
            contents of this message, which arise as a result of e-mail
            transmission. If verification is required please request a
            hard-copy version. Clocom UK Ltd, 111 Wilmslow Road,
            Handforth, Cheshire, SK9 3ER </span><span
            style="mso-fareast-language:EN-GB"><a
              href="http://www.clocom.uk/" moz-do-not-send="true"><span
                style="font-size:10.0pt;color:#0563C1;background:white">www.clocom.uk</span></a></span><u><span
style="font-size:10.0pt;color:#385623;background:white;mso-fareast-language:EN-GB">
            </span></u><span
style="font-size:10.0pt;color:#385623;background:white;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
        <p class="MsoNormal"><o:p> </o:p></p>
      </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>