<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hallo Nelson, <br>
    <br>
    What Kamailio version do you use? <br>
    We have implemented this feature to carrierroute because we didn't
    want carrierroute to send a request to an already tried host again.
    <br>
    Considering your use case, we could extend the module with an
    additional parameter to offer the option to deactivate this future.
    We could provide the patch this week (probably tomorrow). Would this
    be O.K. for you? <br>
    <br>
    Greetings, <br>
    Paul <br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 14.04.2015 14:09, Nelson Migliaro
      wrote:<br>
    </div>
    <blockquote
cite="mid:CALcOv0RSmX2ujPAAwG=wNiuAUnSo8i022p=VAR4h2hGGNH1APQ@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>
                <div>
                  <div>
                    <div>
                      <div>
                        <div>Hello everyone,<br>
                          <br>
                        </div>
                        I have a SIP provider that gives me access to
                        different routes over the same IP address but
                        different prefixes.<br>
                        <br>
                      </div>
                      I have to send all calls to the same IP but I need
                      to inlcude a prefix to allow vendor to route calls
                      to different carriers.<br>
                      <br>
                    </div>
                    I will use carrierroute (cr) module and in case
                    prefix 1 fails, I should send the call to prefix 2
                    and so on.<br>
                  </div>
                  <br>
                  The problem I have is cr module detects that this host
                  (public vendor ip) was already used and I am getting
                  this warning:<br>
                  <br>
                  NOTICE: carrierroute [cr_func.c:324]:
                  cr_uri_already_used(): Candidate destination <br>
                  <br>
                </div>
                This machine use public DNS and I tried to set up 3
                entries in /etc/hosts<br>
                <br>
                public_iP vendor_1<br>
                public_iP vendor_2<br>
                public_iP vendor_3<br>
                <br>
              </div>
              and instead of using the IP in rewrite_host I changed to
              the name: vendor_1, vendor_2. vendor_3<br>
            </div>
            but I got error:  ERROR: tm [ut.h:337]: uri2dst2(): failed
            to resolve "vendor_1"<br>
            <br>
          </div>
          Is there a better war to resolve this<br>
          <br>
        </div>
        Thank you in advance<br>
        <br>
        <br>
        <div>
          <div>
            <div><br>
              <div>
                <div><br>
                  <div>
                    <div>
                      <div>
                        <div>
                          <div><br>
                            <br>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>