[OpenSIPS-Users] Need some help around script transfermation in opensips 3.2 .

Bogdan-Andrei Iancu bogdan at opensips.org
Tue Jan 30 07:10:51 UTC 2024


Hi,

indeed, the checks is case insensitive as the param names in SIP are 
case insensitive (as per RFC).

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com
   https://www.siphub.com

On 29.01.2024 10:47, Sasmita Panda wrote:
> Hi Bogdan ,
>
> I just encountered another discrepancy as below .
>
> In INVITE I have a custom header X-tag which contains a value as below .
> X-Tag : *laptop*
>
> Agents used to get registered with X-Tag with some values and I used 
> to put them in the attr column of the location table .
> Agent X-Tag : *Laptop*=1;Product=1
>
>
> The comparison logic is the same as above *{param.exist,laptop} in 
> Agents attribute . In this case the call is getting processed . I was 
> thinking this should be a case sensitive match . But it's not . *
> *
> *
> *Is this the correct behaviour ? If I need an exact match with case 
> sensitivity then will that be possible?*
>
> */Thanks & Regards/*
> /Sasmita Panda/
> /Senior Network Testing and Software Engineer/
> /3CLogic , ph:07827611765/
>
>
> On Wed, Jan 24, 2024 at 6:27 PM Bogdan-Andrei Iancu 
> <bogdan at opensips.org> wrote:
>
>     check the grammar as per RFC3261
>     https://www.ietf.org/rfc/rfc3261.html#section-25.1
>
>     Bogdan-Andrei Iancu
>
>     OpenSIPS Founder and Developer
>        https://www.opensips-solutions.com
>        https://www.siphub.com
>
>     On 24.01.2024 14:53, Sasmita Panda wrote:
>>     param list allows special characters like " - or _  "?
>>
>>
>>     */Thanks & Regards/*
>>     /Sasmita Panda/
>>     /Senior Network Testing and Software Engineer/
>>     /3CLogic , ph:07827611765/
>>
>>
>>     On Wed, Jan 24, 2024 at 6:12 PM Bogdan-Andrei Iancu
>>     <bogdan at opensips.org> wrote:
>>
>>         Hi,
>>
>>         What is the exact string you are using when getting that err?
>>         I'm asking as the `Laptop=1;Laptop laptop=1` is invalid due
>>         to the space char there (a param list does allow such spaces)
>>
>>         Regards
>>
>>         Bogdan-Andrei Iancu
>>
>>         OpenSIPS Founder and Developer
>>            https://www.opensips-solutions.com
>>            https://www.siphub.com
>>
>>         On 24.01.2024 12:04, Sasmita Panda wrote:
>>>         Hi All ,
>>>         I am using opensips 3.2 script transformation parameters to
>>>         find the existence of a  parameter in  ; separated list of
>>>         parameters .
>>>
>>>         In INVITE I have a custom header X-tag which contains a
>>>         value as below .
>>>         X-Tag : Laptop
>>>
>>>         Agents used to get registered with X-Tag with some values
>>>         and I used to put them in the attr column of the location
>>>         table .
>>>         Agent X-Tag : Laptop=1;Laptop laptop=1
>>>
>>>         While processing the call , I am matching if the X-Tag in
>>>         Invite exists in the Agent tag . If the exact parameter
>>>         exists  then give a call to that contact else not . For that
>>>         I using below transformation
>>>
>>>         *{param.exist,Laptop}*
>>>
>>>         Somehow this is not working . It's giving an error . As for
>>>         my expectation it should match with the first parameter and
>>>         as that's an exact match agent must get the call . But its
>>>         not happening and breaking with error .
>>>
>>>         *ERROR:core:parse_params: invalid character, ; expected,
>>>         found l*
>>>         *
>>>         *
>>>         *while checking the existence of parameters, is that only
>>>         checking a single word without any space ?Also special
>>>         characters are allowed in between or not  ? *
>>>
>>>         */Thanks & Regards/*
>>>         /Sasmita Panda/
>>>         /Senior Network Testing and Software Engineer/
>>>         /3CLogic , ph:07827611765/
>>>
>>>         _______________________________________________
>>>         Users mailing list
>>>         Users at lists.opensips.org
>>>         http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20240130/1d986e7d/attachment.html>


More information about the Users mailing list