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

Bogdan-Andrei Iancu bogdan at opensips.org
Wed Jan 24 12:42:37 UTC 2024


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/20240124/27093930/attachment.html>


More information about the Users mailing list