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@lists.kamailio.org
https:/
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}) +
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
wrote:
> Hi.
>
> Attrib
for example:
$rU = $(rU{s.substr,$(avp(dsattrs){param.value,strip}{s.int}),0});
2017-11-21 16:56 GMT+03:00 Ashutosh chaubey :
> 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
Hi
Thanks it helped.
Regards,
Ashutosh Chaubey
On Tue, Nov 21, 2017 at 8:04 PM, Dmitri Savolainen
wrote:
> for example:
>
> $rU = $(rU{s.substr,$(avp(dsattrs){param.value,strip}{s.int}),0});
>
> 2017-11-21 16:56 GMT+03:00 Ashutosh chaubey :
>
>> Hi,
>> Thanks for the help I am now able to add