[SR-Users] Change CLID
Daniel-Constantin Mierla
miconda at gmail.com
Thu Nov 10 10:08:46 CET 2016
Hello,
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.
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.
Cheers,
Daniel
On 09/11/16 11:48, Nelson Migliaro wrote:
> Hello,
>
> I have several SIP vendors and I must present a different CLID for
> each of them.
>
> I am planning to use failure routers in Kamailio to route calls to a
> different vendor in case of failure.
>
> The problem I face is changing clid in each route.
>
> 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.
>
> Is mysql the right way to do that, is there a module for this?
> In order to change the clid I am thinking of
> using: uac_replace_to(display,uri). Is this correct way to do that?
>
> 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?
>
> Thank you in advance
>
> Nelson.-
>
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio Advanced Training, Berlin, Nov 28-30, 2016 - http://www.asipto.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20161110/92241301/attachment.html>
More information about the sr-users
mailing list