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

Daniel-Constantin Mierla miconda at gmail.com
Wed Jan 11 14:39:32 CET 2017



On 10/01/2017 15:53, Laura wrote:
> Dear all,
>
> don't forget to add the same strings on failure_route ;)

Still using a branch route, but armed from failure_route before
t_relay() should work as well.

Cheers,
Daniel

>
> Cheers
> Laura
>
>
> Il 10/01/17 14:41, Laura ha scritto:
>>
>> Dear Daniel and list..
>>
>> a very strange situation.. why this parameters is valid on the first
>> gw only inside the lcr..
>>
>> if i add differents string on 2 gateways... and the call is goind on
>> both of them.. i see the parameter added to invite only on the fist gw...
>>
>> Cheers
>>
>> Laura
>>
>> Il 10/01/17 14:34, Daniel-Constantin Mierla ha scritto:
>>>
>>> Hello!
>>>
>>> Welcome and thanks for providing back details about the solution in
>>> the config file. I am sure it will help others with similar needs in
>>> the future.
>>>
>>> As further hints, the value in the tag column can be more complex,
>>> storing more than information about the extra headers, just use a
>>> format that can be parsed easily in the configuration file, for
>>> example json, xml or parameter-like value.
>>>
>>> Cheers,
>>> Daniel
>>>
>>> On 10/01/2017 13:05, Laura wrote:
>>>>
>>>> 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
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> 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
>>
>>
>>
>> _______________________________________________
>> 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
>
>
>
> _______________________________________________
> 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

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


More information about the sr-users mailing list