<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hello,</p>
    <p>ok, good that is was sorted out and thanks for reporting back.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 03.05.17 16:43, Diego Nadares wrote:<br>
    </div>
    <blockquote
cite="mid:CAP-r+eqacZGC54CWhz4ZhqxA1-eeu=3a2G=swinnfQqZrVeSSg@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi Daniel,
        <div><br>
        </div>
        <div>Sorry for the delay. </div>
        <div><br>
        </div>
        <div>The problem was that I set wait_ack = 0 and the dialog was
          destroyed at that instance of the script. </div>
        <div><br>
        </div>
        <div>So, no problem. </div>
        <div><br>
        </div>
        <div>Thanks!</div>
        <div><br>
        </div>
        <div>Diego</div>
        <div><br>
        </div>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">2017-04-27 4:17 GMT-03:00
          Daniel-Constantin Mierla <span dir="ltr"><<a
              moz-do-not-send="true" href="mailto:miconda@gmail.com"
              target="_blank">miconda@gmail.com</a>></span>:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000">
              <p>Hello,</p>
              <p>iirc, the dialog variables can have only string values,
                but you compare $dlg_var(v1) with integer 0.</p>
              <p>Then you set $dlg_var(v1) to "1" and in the next IF
                block you print $dlg_var(v2).</p>
              <p>Did you set $dlg_var(v2) somewhere?</p>
              <p>Cheers,<br>
                Daniel<br>
              </p>
              <div>
                <div class="h5"> <br>
                  <div class="m_-252661735831977438moz-cite-prefix">On
                    26.04.17 17:42, Diego Nadares wrote:<br>
                  </div>
                </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div class="h5">
                    <div dir="ltr">Sorry...
                      <div><br>
                      </div>
                      <div><span style="font-size:12.8px">Dialog exists
                          but vars are null and <b>I can't</b> modify
                          them </span><b style="font-size:12.8px">neither</b><span
                          style="font-size:12.8px">. Is there any
                          restriction?</span><br>
                      </div>
                    </div>
                    <div class="gmail_extra"><br>
                      <div class="gmail_quote">2017-04-26 12:41
                        GMT-03:00 Diego Nadares <span dir="ltr"><<a
                            moz-do-not-send="true"
                            href="mailto:dnadares@gmail.com"
                            target="_blank">dnadares@gmail.com</a>></span>:<br>
                        <blockquote class="gmail_quote" style="margin:0
                          0 0 .8ex;border-left:1px #ccc
                          solid;padding-left:1ex">
                          <div dir="ltr"><span style="font-size:12.8px">Hi
                              guys,</span>
                            <div style="font-size:12.8px"><br>
                            </div>
                            <div style="font-size:12.8px">I'm trying to
                              access dialog vars in failure_route with
                              no success. Dialog exists but vars are
                              null and I'can modify them <b>neither</b>.
                              Is there any restriction?</div>
                            <div style="font-size:12.8px"><br>
                            </div>
                            <div style="font-size:12.8px"><span>
                                <div>if ($dlg_var(v1) == 0){</div>
                                <div>                $dlg_var(v1) = "1";</div>
                                <div>                if
                                  (is_known_dlg()){</div>
                                <div>                   
                                  xlog("L_NOTICE", "negative_reply $ci
                                  $T_rpl($si) $dlg_var(v2)");<br>
                                </div>
                                <div>                    $dlg_var(v2) =
                                  $T_rpl($si);</div>
                                <div>                }</div>
                                <div>}<br>
                                </div>
                                <div><br>
                                </div>
                                <div><br>
                                </div>
                                <div>Log</div>
                                <div><br>
                                </div>
                                <div>Apr 26 12:36:26 drwsip02
                                  /usr/local/sbin/kamailio[27223<wbr>]:
                                  NOTICE: <script>:
                                  negative_reply <a
                                    moz-do-not-send="true"
                                    href="mailto:6daf5e8d-f47972c1@172.31.4.21"
                                    target="_blank">6daf5e8d-f47972<wbr>c1@172.31.4.21</a> <b> <null></b></div>
                                <div><b><br>
                                  </b></div>
                              </span>
                              <div>Thanks in advance!</div>
                              <span class="m_-252661735831977438HOEnZb"><font
                                  color="#888888">
                                  <div><br>
                                  </div>
                                  <div>Diego</div>
                                </font></span></div>
                          </div>
                          <div class="m_-252661735831977438HOEnZb">
                            <div class="m_-252661735831977438h5">
                              <div class="gmail_extra"><br>
                                <div class="gmail_quote">2017-04-26
                                  12:40 GMT-03:00 Diego Nadares <span
                                    dir="ltr"><<a
                                      moz-do-not-send="true"
                                      href="mailto:dnadares@gmail.com"
                                      target="_blank">dnadares@gmail.com</a>></span>:<br>
                                  <blockquote class="gmail_quote"
                                    style="margin:0 0 0
                                    .8ex;border-left:1px #ccc
                                    solid;padding-left:1ex">
                                    <div dir="ltr">Hi guys,
                                      <div><br>
                                      </div>
                                      <div>I'm trying to access dialog
                                        vars in failure_route with no
                                        success. Dialog exists but vars
                                        are null and I'can modify them
                                        either. Is there any
                                        restriction?</div>
                                      <div><br>
                                      </div>
                                      <div>
                                        <div>if ($dlg_var(v1) == 0){</div>
                                        <div>               
                                          $dlg_var(v1) = "1";</div>
                                        <div>                if
                                          (is_known_dlg()){</div>
                                        <div>                   
                                          xlog("L_NOTICE",
                                          "negative_reply $ci
                                          $T_rpl($si) $dlg_var(v2)");<br>
                                        </div>
                                        <div>                   
                                          $dlg_var(v2) = $T_rpl($si);</div>
                                        <div>                }</div>
                                        <div>}<br>
                                        </div>
                                        <div><br>
                                        </div>
                                        <div><br>
                                        </div>
                                        <div>Log</div>
                                        <div><br>
                                        </div>
                                        <div>Apr 26 12:36:26 drwsip02
                                          /usr/local/sbin/kamailio[27223<wbr>]:
                                          NOTICE: <script>:
                                          negative_reply <a
                                            moz-do-not-send="true"
                                            href="mailto:6daf5e8d-f47972c1@172.31.4.21"
                                            target="_blank">6daf5e8d-f47972c1@172.31.4.21</a>
                                          <b> <null></b><br>
                                        </div>
                                        <div><br>
                                        </div>
                                        <div><br>
                                        </div>
                                        <div><br>
                                        </div>
                                      </div>
                                    </div>
                                  </blockquote>
                                </div>
                                <br>
                              </div>
                            </div>
                          </div>
                        </blockquote>
                      </div>
                      <br>
                    </div>
                    <br>
                    <fieldset
                      class="m_-252661735831977438mimeAttachmentHeader"></fieldset>
                    <br>
                  </div>
                </div>
                <pre>______________________________<wbr>_________________
Kamailio (SER) - Users Mailing List
<a moz-do-not-send="true" class="m_-252661735831977438moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>
<a moz-do-not-send="true" class="m_-252661735831977438moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><span class="HOEnZb"><font color="#888888">
</font></span></pre><span class="HOEnZb"><font color="#888888">
    </font></span></blockquote><span class="HOEnZb"><font color="#888888">
    

    <pre class="m_-252661735831977438moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a moz-do-not-send="true" class="m_-252661735831977438moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a moz-do-not-send="true" class="m_-252661735831977438moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - May 22-24 (USA) - <a moz-do-not-send="true" class="m_-252661735831977438moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank">www.asipto.com</a>
Kamailio World Conference - May 8-10, 2017 - <a moz-do-not-send="true" class="m_-252661735831977438moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank">www.kamailioworld.com</a></pre>
  </font></span></div>


______________________________<wbr>_________________

Kamailio (SER) - Users Mailing List

<a moz-do-not-send="true" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>

<a moz-do-not-send="true" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a>


</blockquote></div>
</div>



</blockquote>
<pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - May 22-24 (USA) - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - May 8-10, 2017 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre></body></html>