<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <font face="monospace">check the grammar as per RFC3261<br>
           <a class="moz-txt-link-freetext" href="https://www.ietf.org/rfc/rfc3261.html#section-25.1">https://www.ietf.org/rfc/rfc3261.html#section-25.1</a></font><br>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>
  <a class="moz-txt-link-freetext" href="https://www.siphub.com">https://www.siphub.com</a></pre>
    <div class="moz-cite-prefix">On 24.01.2024 14:53, Sasmita Panda
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CALf-Q45bH9gcYm-Z7-ZhV9oN7QBWa8MSkYD+6fSMbvy2vJGzrw@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">param list allows special characters like " - or _ 
        "?
        <div><br>
        </div>
        <div><br clear="all">
          <div>
            <div dir="ltr" class="gmail_signature"
              data-smartmail="gmail_signature">
              <div dir="ltr">
                <div>
                  <div dir="ltr"><b><i>Thanks & Regards</i></b>
                    <div><i>Sasmita Panda</i></div>
                    <div><i>Senior Network Testing and Software Engineer</i></div>
                    <div><i>3CLogic , ph:07827611765</i></div>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <br>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Wed, Jan 24, 2024 at
          6:12 PM Bogdan-Andrei Iancu <<a
            href="mailto:bogdan@opensips.org" moz-do-not-send="true"
            class="moz-txt-link-freetext">bogdan@opensips.org</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote"
style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div> <font face="monospace">Hi,<br>
              <br>
              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)<br>
              <br>
              Regards<br>
            </font>
            <pre cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a href="https://www.opensips-solutions.com" target="_blank"
            moz-do-not-send="true" class="moz-txt-link-freetext">https://www.opensips-solutions.com</a>
  <a href="https://www.siphub.com" target="_blank"
            moz-do-not-send="true" class="moz-txt-link-freetext">https://www.siphub.com</a></pre>
            <div>On 24.01.2024 12:04, Sasmita Panda wrote:<br>
            </div>
            <blockquote type="cite">
              <div dir="ltr">Hi All , 
                <div>I am using opensips 3.2 script
                  transformation parameters to find the existence of a 
                  parameter in  ; separated list of parameters . </div>
                <div><br>
                </div>
                <div>In INVITE I have a custom header X-tag which
                  contains a value as below . </div>
                <div>X-Tag : Laptop</div>
                <div><br>
                </div>
                <div>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 . </div>
                <div>Agent X-Tag : Laptop=1;Laptop laptop=1</div>
                <div><br>
                </div>
                <div>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 </div>
                <div><br>
                </div>
                <div>
                  <pre
style="font-size:0.9em;font-family:"Lucida Console","Andale Mono","Courier New",Courier;margin-top:0px;margin-bottom:0px;padding:6px;border:1px solid rgb(235,235,235);background-color:rgb(251,254,250);color:rgb(102,102,102)"><b>{param.exist,Laptop}</b></pre>
                </div>
                <div><br>
                </div>
                <div>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 .</div>
                <div><br>
                </div>
                <div><b>ERROR:core:parse_params: invalid character, ;
                    expected, found l</b><br>
                </div>
                <div><b><br>
                  </b></div>
                <div><b>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  ? </b></div>
                <div><br clear="all">
                  <div>
                    <div dir="ltr" class="gmail_signature">
                      <div dir="ltr">
                        <div>
                          <div dir="ltr"><b><i>Thanks & Regards</i></b>
                            <div><i>Sasmita Panda</i></div>
                            <div><i>Senior Network Testing and Software
                                Engineer</i></div>
                            <div><i>3CLogic , ph:07827611765</i></div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
              <br>
              <fieldset></fieldset>
              <pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank"
              moz-do-not-send="true" class="moz-txt-link-freetext">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
              target="_blank" moz-do-not-send="true"
              class="moz-txt-link-freetext">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
            </blockquote>
            <br>
          </div>
        </blockquote>
      </div>
    </blockquote>
    <br>
  </body>
</html>