<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hello,</p>
    <p>if by CLID you mean caller id, then you need to replace From, not
      To -- there is another function for it in the uac module.</p>
    <p>Do the change in a branch_route, in that way the change is done
      only for that specific outgoing request. The brach route can be
      re-armed from failure_route before sending out again. You don't
      have to do any restore.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 09/11/16 11:48, Nelson Migliaro
      wrote:<br>
    </div>
    <blockquote
cite="mid:CALcOv0Q_t7M4gMEQ_ovPja8eW6hf5MKaNJOMpmZApp=54TvW+Q@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hello,
        <div><br>
        </div>
        <div>I have several SIP vendors and I must present a different
          CLID for each of them.</div>
        <div><br>
        </div>
        <div>I am planning to use failure routers in Kamailio to route
          calls to a different vendor in case of failure.</div>
        <div><br>
        </div>
        <div>The problem I face is changing clid in each route.</div>
        <div><br>
        </div>
        <div>I am planning to use a mysql database to select the clid
          based on a prefix and sip vendor and in case of failure,
          select new clid base on new sip vendor.</div>
        <div><br>
        </div>
        <div>Is mysql the right way to do that, is there a module for
          this?</div>
        <div>In order to change the clid I am thinking of
          using: uac_replace_to(display,uri). Is this correct way to do
          that?</div>
        <div><br>
        </div>
        <div>And finally, in case of using uac_replace_to(display,uri),
          do I have to use uac_restore_from() to restone the correct
          from to avoid further issues?</div>
        <div><br>
        </div>
        <div>Thank you in advance</div>
        <div><br>
        </div>
        <div>Nelson.-</div>
        <div><br>
        </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>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio Advanced Training, Berlin, Nov 28-30, 2016 - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a></pre>
  </body>
</html>