[SR-Users] Kamailio and default paramenters to a specific gatewy

Laura red_dra at plugit.net
Tue Jan 10 13:05:47 CET 2017


Dear Daniel,

thanks for your idea.. for anyone need it on their config..

on branch_route[MANAGE_BRANCH] ...

     if ($avp(lcr_tag)!=$null) {

#!ifdef WITH_XLOG
         xlog("L_INFO","BRANCH_ROUTE: lcr_tag: $avp(lcr_tag) -> add 
field on INVITE\n");
#!endif
         append_hf("$avp(lcr_tag)\r\n");

     }


Pratically if the field tag on lcr_gw modules is not empty .. i'll add 
the datas inside the INVITE :)

Regards
Laura


Il 10/01/17 11:38, Daniel-Constantin Mierla ha scritto:
>
> Hello,
>
> afaik the params column stores the parameters for request URI.
>
> You are looking to add extra headers.
>
> One option is to leverage on tag column -- its value should be 
> returned in a variable inside kamailio.cfg. There you can test the 
> value and if it has a specific value, then you can add the extra 
> header you need. The operation to add the headers should be done 
> inside a branch_route in order to have different values for each gateway.
>
> Cheers,
> Daniel
>
>
> On 10/01/2017 10:51, Laura wrote:
>>
>> Dear all,
>>
>> I'm using kamailio 4.3.6 and LCR modules.. i was wondering if it was 
>> possibile to add some special paramenter to all call sent to a 
>> specific gateway.
>>
>> I was try to use the " params" field on lcr_gw table but it's not 
>> working like i was think..
>>
>> The issue is simple.. i want to add to field "Privacy: id" to any 
>> call i send over a specific gateway..
>>
>> What is the best and easy way to do that ?
>>
>> Any idea is appreciate.
>>
>> Regards
>>
>> Laura
>>
>>
>>
>> _______________________________________________
>> 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
> www.twitter.com/miconda  --www.linkedin.com/in/miconda
> Kamailio World Conference - May 8-10, 2017 -www.kamailioworld.com
>
>
> _______________________________________________
> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20170110/1c7cbe63/attachment.html>


More information about the sr-users mailing list