<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix"><tt>Hello Nick,<br>
        <br>
        See route_to_carrier() in DR:<br>
        &nbsp;&nbsp;&nbsp;
        <a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/1.10.x/drouting.html#id294558">http://www.opensips.org/html/docs/modules/1.10.x/drouting.html#id294558</a><br>
        <br>
        No need for the carrierroute module.<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 05.02.2014 14:56, Nick Cameo wrote:<br>
    </div>
    <blockquote
cite="mid:CAGWRaZYxp=UdNp0d8oV1VgJ1=+o_MUdqdrJaDzwv2eAsMRJCUg@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hello Vlad,
        <div><br>
        </div>
        <div style="">Thank your for your response. I know you are just
          getting this email right now, and I really appreciate your
          help.</div>
        <div style="">It seems for route_to_carrier we need to be using
          the carrier module however we are using DR.</div>
        <div style=""><br>
        </div>
        <div style="">
          <div>From what I understand in the docs, both `route_to_gw`,
            and `route_to_carrier` accept a single ID. What I have is a</div>
          <div>comma separated gwlist (ie, 7,1,4) that I need fired in
            that specific sequence, and failing over to the next gateway
            id</div>
          <div>in the list.&nbsp;</div>
          <div><br>
          </div>
          <div style="">Another approach is to do it in my perl script
            however, documentation and example for that are scarce. How
            I think</div>
          <div style="">it would be done is using the
            `$message-&gt;rewrite_ruri` however, how do I know if the
            relay to a gateway failed in perl?</div>
          <div style=""><br>
          </div>
          <div style="">
            <div>while (gws in list) {</div>
            <div>&nbsp; &nbsp; &nbsp;while (fail=1) {<br>
            </div>
            <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fail = $message-&gt;rewrite_ruri($carriergw)</div>
            <div>&nbsp; &nbsp; &nbsp;}</div>
            <div>}</div>
            <div><br>
            </div>
            <div style="">Of course I would rather avoid the perl
              approach and just use a DR function that is capable of
              performing the said functionality.</div>
            <div>Any help would be greatly appreciated. I have been
              struggling with this for a while now, and it's the final
              piece of the pie!!!! :)</div>
          </div>
        </div>
        <div style=""><br>
        </div>
        <div style="">Thank in Advance,</div>
        <div style="">
          <br>
        </div>
        <div style="">Nick.</div>
      </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>