[SR-Users] Adding strip and preix attribute to Dispatcher table

Dmitri Savolainen savolainen at erinaco.ru
Tue Nov 21 15:34:55 CET 2017


for example:

$rU = $(rU{s.substr,$(avp(dsattrs){param.value,strip}{s.int}),0});

2017-11-21 16:56 GMT+03:00 Ashutosh chaubey <ashutoshkrchaubey at gmail.com>:

> Hi,
> Thanks for the help I am now able to add prefix this way to my request
> however can you please tell me how to use strip as i have to strip few
> numbers before i send out request from kamailio.
>
> Regards,
> Ashutosh Chaubey
>
> On Tue, Nov 21, 2017 at 6:32 PM, Dmitri Savolainen <savolainen at erinaco.ru>
> wrote:
>
>> Hi.
>>
>> Attributes should be ";" separeted:
>> attributes: extra fields in form of name1=value1;...;nameN=valueN.
>>
>> Also prefix/strip are not in  "predefined names" in dispatcher doc  , so
>> it is possible:
>>
>> modparam("dispatcher", "attrs_avp", "$avp(dsattrs)")
>> ....
>> $rU =$(avp(dsattrs){param.value,prefix}) + $rU;
>>
>> 2017-11-21 15:02 GMT+03:00 Ashutosh chaubey <ashutoshkrchaubey at gmail.com>
>> :
>>
>>> Hi,
>>>
>>> Is there a way to add prefix and strip in dispatcher table attribute
>>> column. I have tried prefix=11,strip=3 but this seems to not work.
>>> Any help?
>>>
>>>
>>>
>>> Regards,
>>> Ashutosh Chaubey
>>>
>>> _______________________________________________
>>> Kamailio (SER) - Users Mailing List
>>> sr-users at lists.kamailio.org
>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>
>>>
>>
>>
>> --
>> Savolainen Dmitri
>>
>> _______________________________________________
>> Kamailio (SER) - Users Mailing List
>> sr-users at lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>


-- 
Savolainen Dmitri
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20171121/68346342/attachment.html>


More information about the sr-users mailing list