<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix"><tt>Hi Gary,<br>
        <br>
        By default, if sending fails, t_relay() will internally generate
        back a negative reply and return true to the script. To disable
        this, see the 0x02 flag:<br>
           
        <a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/1.11.x/tm.html#id294578">http://www.opensips.org/html/docs/modules/1.11.x/tm.html#id294578</a><br>
        <br>
        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></pre>
      On 25.08.2014 18:36, Gary Nyquist wrote:<br>
    </div>
    <blockquote
cite="mid:trinity-dba989aa-0ad6-4fb1-99b6-a1459077f713-1408980986590@3capp-mailcom-lxa10"
      type="cite">
      <div style="font-family: Verdana;font-size: 12.0px;">
        <div>
          <div>Hi Bogdan,</div>
          <div> </div>
          <div>You are abosolutely right.</div>
          <div>The request is not leaving the OpenSIPS (not to be seen
            on the n/w).</div>
          <div>I am guessing, the reason could be a stale contact uri
            (TCP).</div>
          <div> </div>
          <div>My question is:</div>
          <div>Shouldn't the "t_relay()" return a negative value if the
            request fails to leave opensips?</div>
          <div> </div>
          <div>BR</div>
          <div>-Gary</div>
          <div> 
            <div name="quote" style="margin:10px 5px 5px 10px; padding:
              10px 0 10px 10px; border-left:2px solid #C3D9E5;
              word-wrap: break-word; -webkit-nbsp-mode: space;
              -webkit-line-break: after-white-space;">
              <div style="margin:0 0 10px 0;"><b>Sent:</b> Saturday,
                August 23, 2014 at 6:29 AM<br>
                <b>From:</b> "Bogdan-Andrei Iancu"
                <a class="moz-txt-link-rfc2396E" href="mailto:bogdan@opensips.org">&lt;bogdan@opensips.org&gt;</a><br>
                <b>To:</b> "Gary Nyquist" <a class="moz-txt-link-rfc2396E" href="mailto:gn62@gmx.us">&lt;gn62@gmx.us&gt;</a><br>
                <b>Cc:</b> "OpenSIPS users mailling list"
                <a class="moz-txt-link-rfc2396E" href="mailto:users@lists.opensips.org">&lt;users@lists.opensips.org&gt;</a><br>
                <b>Subject:</b> Re: [OpenSIPS-Users] MESSAGE t_relay()</div>
              <div name="quoted-content">
                <div>Hi Gary,</div>
                <div> </div>
                <div>Maybe your request is not leaving OpenSIPS, so no
                  failure route will be triggered. Has nothing to do
                  with TLS. But check if you the request on the network.</div>
                <div> </div>
                <div>Regards,</div>
                <div>Bogdan</div>
                <div> </div>
                <div> </div>
                <div>
                  <div style="font-size: 9.0px;color: rgb(87,87,87);">Sent
                    from Samsung Mobile</div>
                </div>
                <br>
                <br>
                -------- Original message --------<br>
                From: Gary Nyquist<br>
                Date:23/08/2014 01:27 (GMT+04:00)<br>
                To: Bogdan-Andrei Iancu<br>
                Cc: OpenSIPS users mailling list<br>
                Subject: Re: [OpenSIPS-Users] MESSAGE t_relay()<br>
                 
                <div style="font-family: Verdana;font-size: 12.0px;">
                  <div>
                    <div>Hi Bogdan,</div>
                    <div> </div>
                    <div>I am arming the failure route correctly before
                      calling t_relay().</div>
                    <div>In my case the transport is TLS.</div>
                    <div>Could that be the reason for not hitting the
                      failure route?</div>
                    <div> </div>
                    <div>BR</div>
                    <div>-Gary</div>
                    <div> 
                      <div style="margin: 10.0px 5.0px 5.0px
                        10.0px;padding: 10.0px 0 10.0px
                        10.0px;border-left: 2.0px solid
                        rgb(195,217,229);">
                        <div style="margin: 0 0 10.0px 0;"><b>Sent:</b> Friday,
                          August 22, 2014 at 4:12 PM<br>
                          <b>From:</b> "Bogdan-Andrei Iancu"
                          <a class="moz-txt-link-rfc2396E" href="mailto:bogdan@opensips.org">&lt;bogdan@opensips.org&gt;</a><br>
                          <b>To:</b> "Gary Nyquist" <a class="moz-txt-link-rfc2396E" href="mailto:gn62@gmx.us">&lt;gn62@gmx.us&gt;</a><br>
                          <b>Cc:</b> "OpenSIPS users mailling list"
                          <a class="moz-txt-link-rfc2396E" href="mailto:users@lists.opensips.org">&lt;users@lists.opensips.org&gt;</a><br>
                          <b>Subject:</b> Re: [OpenSIPS-Users] MESSAGE
                          t_relay()</div>
                        <div>
                          <div style="background-color:
                            rgb(255,255,255);">
                            <div class="moz-cite-prefix"><tt>Hi Gary,<br>
                                <br>
                                It's hard to believe the failure route
                                does serve your purpose - I would rather
                                say you do something wrong in your cfg:<br>
                                    1) arm the failure route (with
                                t_on_failure() TM function) before
                                forwarding the request<br>
                                    2) be sure you use t_relay() for
                                forwarding.<br>
                                <br>
                                Regards,</tt>
                              <pre class="moz-signature">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
                              On 22.08.2014 20:12, Gary Nyquist wrote:</div>
                            <blockquote>
                              <div style="font-family:
                                Verdana;font-size: 12.0px;">
                                <div>
                                  <div>Hi Bogdan,</div>
                                  <div> </div>
                                  <div>I tried the 'failure route'
                                    method.</div>
                                  <div>But, <span style="font-family:
                                      Verdana;font-size:
                                      12.0px;line-height: 19.2px;">'failure
                                      route' is not being executed, when
                                      there is no response from the
                                      remote receiver (of the MESSAGE).</span></div>
                                  <div>Any tips, how to trigger this
                                    timeout (on no response)?</div>
                                  <div> </div>
                                  <div>BR</div>
                                  <div>-Gary</div>
                                  <div> 
                                    <div style="margin: 10.0px 5.0px
                                      5.0px 10.0px;padding: 10.0px 0
                                      10.0px 10.0px;border-left: 2.0px
                                      solid rgb(195,217,229);">
                                      <div style="margin: 0 0 10.0px 0;"><b>Sent:</b> Thursday,
                                        August 21, 2014 at 3:51 AM<br>
                                        <b>From:</b> "Bogdan-Andrei
                                        Iancu" <a
                                          moz-do-not-send="true"
                                          class="moz-txt-link-rfc2396E">&lt;bogdan@opensips.org&gt;</a><br>
                                        <b>To:</b> "OpenSIPS users
                                        mailling list" <a
                                          moz-do-not-send="true"
                                          class="moz-txt-link-rfc2396E">&lt;users@lists.opensips.org&gt;</a>,
                                        <a moz-do-not-send="true"
                                          class="moz-txt-link-abbreviated">gn62@gmx.us</a><br>
                                        <b>Subject:</b> Re:
                                        [OpenSIPS-Users] MESSAGE
                                        t_relay()</div>
                                      <div>
                                        <div style="background-color:
                                          rgb(255,255,255);">
                                          <div class="moz-cite-prefix"><tt>Hi,<br>
                                              <br>
                                              Use a failure route to see
                                              if your MESSAGE got a
                                              negative or positive reply
                                              back. See:<br>
                                                  <a
                                                moz-do-not-send="true"
                                                class="moz-txt-link-freetext"
href="http://www.opensips.org/Documentation/Script-Routes-1-11#toc3"
                                                target="_blank">http://www.opensips.org/Documentation/Script-Routes-1-11#toc3</a><br>
                                              <br>
                                              Regards,</tt>
                                            <pre class="moz-signature">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
                                            On 15.08.2014 00:11, Gary
                                            Nyquist wrote:</div>
                                          <blockquote>
                                            <div style="font-family:
                                              Verdana;font-size:
                                              12.0px;">
                                              <div style="font-family:
                                                Verdana;font-size:
                                                12.0px;">
                                                <div style="font-family:
                                                  Verdana;font-size:
                                                  12.0px;">
                                                  <div
                                                    style="font-family:
                                                    Verdana;font-size:
                                                    12.0px;">
                                                    <div>Hi,</div>
                                                    <div> </div>
                                                    <div>I am using
                                                      t_relay() function
                                                      to send some text
                                                      using SIP MESSAGE
                                                      method.</div>
                                                    <div>What is a smart
                                                      way to confirm if
                                                      the MESSAGE got
                                                      transmitted
                                                      successfuly or
                                                      not?</div>
                                                    <div>Any ideas?</div>
                                                    <div> </div>
                                                    <div><span
                                                        style="line-height:
                                                        1.6em;">Thanks</span></div>
                                                    <div>-Gary</div>
                                                  </div>
                                                </div>
                                              </div>
                                            </div>
                                             
                                            <fieldset
                                              class="mimeAttachmentHeader"> </fieldset>
                                             
                                            <pre>_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated">Users@lists.opensips.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
                                          </blockquote>
                                        </div>
                                      </div>
                                    </div>
                                  </div>
                                </div>
                              </div>
                            </blockquote>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>