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 <[email protected]> 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
    [email protected]
    http://lists.opensips.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to