<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    remove the double quotes in the IF expressions:<br>
    <br>
    if ("$avp(s:domain)" =~ "$fd") {<br>
    <br>
    Values in between double quotes are strings.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 21/03/14 21:41, Slava Bendersky
      wrote:<br>
    </div>
    <blockquote
cite="mid:931624263.7024214.1395434468812.JavaMail.zimbra@skillsearch.ca"
      type="cite">
      <div style="font-family: lucida console,sans-serif; font-size:
        12pt; color: #000000">
        <div><span style="color: #000000; font-family: Sans; font-size:
            medium; font-style: normal; font-variant: normal;
            font-weight: normal; letter-spacing: normal; line-height:
            normal; orphans: auto; text-align: start; text-indent: 0px;
            text-transform: none; white-space: pre-wrap; widows: auto;
            word-spacing: 0px; -webkit-text-stroke-width: 0px; display:
            inline !important; float: none;" data-mce-style="color:
            #000000; font-family: Sans; font-size: medium; font-style:
            normal; font-variant: normal; font-weight: normal;
            letter-spacing: normal; line-height: normal; orphans: auto;
            text-align: start; text-indent: 0px; text-transform: none;
            white-space: pre-wrap; widows: auto; word-spacing: 0px;
            -webkit-text-stroke-width: 0px; display: inline !important;
            float: none;">Hello Everyone, </span></div>
        <div><span style="color: #000000; font-family: Sans; font-size:
            medium; font-style: normal; font-variant: normal;
            font-weight: normal; letter-spacing: normal; line-height:
            normal; orphans: auto; text-align: start; text-indent: 0px;
            text-transform: none; white-space: pre-wrap; widows: auto;
            word-spacing: 0px; -webkit-text-stroke-width: 0px; display:
            inline !important; float: none;" data-mce-style="color:
            #000000; font-family: Sans; font-size: medium; font-style:
            normal; font-variant: normal; font-weight: normal;
            letter-spacing: normal; line-height: normal; orphans: auto;
            text-align: start; text-indent: 0px; text-transform: none;
            white-space: pre-wrap; widows: auto; word-spacing: 0px;
            -webkit-text-stroke-width: 0px; display: inline !important;
            float: none;"><br>
          </span></div>
        <div><span style="color: #000000; font-family: Sans; font-size:
            medium; font-style: normal; font-variant: normal;
            font-weight: normal; letter-spacing: normal; line-height:
            normal; orphans: auto; text-align: start; text-indent: 0px;
            text-transform: none; white-space: pre-wrap; widows: auto;
            word-spacing: 0px; -webkit-text-stroke-width: 0px; display:
            inline !important; float: none;" data-mce-style="color:
            #000000; font-family: Sans; font-size: medium; font-style:
            normal; font-variant: normal; font-weight: normal;
            letter-spacing: normal; line-height: normal; orphans: auto;
            text-align: start; text-indent: 0px; text-transform: none;
            white-space: pre-wrap; widows: auto; word-spacing: 0px;
            -webkit-text-stroke-width: 0px; display: inline !important;
            float: none;">I am trying compare domain part of uri with
            ldap query result, getting some syntax warning </span></div>
        <div><span style="color: #000000; font-family: Sans; font-size:
            medium; font-style: normal; font-variant: normal;
            font-weight: normal; letter-spacing: normal; line-height:
            normal; orphans: auto; text-align: start; text-indent: 0px;
            text-transform: none; white-space: pre-wrap; widows: auto;
            word-spacing: 0px; -webkit-text-stroke-width: 0px; display:
            inline !important; float: none;" data-mce-style="color:
            #000000; font-family: Sans; font-size: medium; font-style:
            normal; font-variant: normal; font-weight: normal;
            letter-spacing: normal; line-height: normal; orphans: auto;
            text-align: start; text-indent: 0px; text-transform: none;
            white-space: pre-wrap; widows: auto; word-spacing: 0px;
            -webkit-text-stroke-width: 0px; display: inline !important;
            float: none;"><br>
          </span></div>
        <div><span style="color: #000000; font-family: Sans; font-size:
            medium; font-style: normal; font-variant: normal;
            font-weight: normal; letter-spacing: normal; line-height:
            normal; orphans: auto; text-align: start; text-indent: 0px;
            text-transform: none; white-space: pre-wrap; widows: auto;
            word-spacing: 0px; -webkit-text-stroke-width: 0px; display:
            inline !important; float: none;" data-mce-style="color:
            #000000; font-family: Sans; font-size: medium; font-style:
            normal; font-variant: normal; font-weight: normal;
            letter-spacing: normal; line-height: normal; orphans: auto;
            text-align: start; text-indent: 0px; text-transform: none;
            white-space: pre-wrap; widows: auto; word-spacing: 0px;
            -webkit-text-stroke-width: 0px; display: inline !important;
            float: none;"><span style="color: #000000; font-family:
              Sans; font-size: medium; font-style: normal; font-variant:
              normal; font-weight: normal; letter-spacing: normal;
              line-height: normal; orphans: auto; text-align: start;
              text-indent: 0px; text-transform: none; white-space:
              pre-wrap; widows: auto; word-spacing: 0px;
              -webkit-text-stroke-width: 0px; display: inline
              !important; float: none;" data-mce-style="color: #000000;
              font-family: Sans; font-size: medium; font-style: normal;
              font-variant: normal; font-weight: normal; letter-spacing:
              normal; line-height: normal; orphans: auto; text-align:
              start; text-indent: 0px; text-transform: none;
              white-space: pre-wrap; widows: auto; word-spacing: 0px;
              -webkit-text-stroke-width: 0px; display: inline
              !important; float: none;"></span></span>
          <div class="codewrap">
            <div class="text" style="word-wrap: break-word;"
              data-mce-style="word-wrap: break-word;">
              <ol>
                <li>
                  <div style="font: normal normal 1em/1.2em monospace;
                    margin: 0; padding: 0; background: none;
                    vertical-align: top;" data-mce-style="font: normal
                    normal 1em/1.2em monospace; margin: 0; padding: 0;
                    background: none; vertical-align: top;">arn_at():
                    warning in config file
                    /etc/kamailio/kamailio-ldap.cfg, line 992, column
                    17-39: constant value in if(...)</div>
                </li>
                <li>
                  <div style="font: normal normal 1em/1.2em monospace;
                    margin: 0; padding: 0; background: none;
                    vertical-align: top;" data-mce-style="font: normal
                    normal 1em/1.2em monospace; margin: 0; padding: 0;
                    background: none; vertical-align: top;"> </div>
                </li>
                <li>
                  <div style="font: normal normal 1em/1.2em monospace;
                    margin: 0; padding: 0; background: none;
                    vertical-align: top;" data-mce-style="font: normal
                    normal 1em/1.2em monospace; margin: 0; padding: 0;
                    background: none; vertical-align: top;"> </div>
                </li>
                <li>
                  <div style="font: normal normal 1em/1.2em monospace;
                    margin: 0; padding: 0; background: none;
                    vertical-align: top;" data-mce-style="font: normal
                    normal 1em/1.2em monospace; margin: 0; padding: 0;
                    background: none; vertical-align: top;">           
                    ldap_result("sipExtension/$avp(extension)");</div>
                </li>
                <li>
                  <div style="font: normal normal 1em/1.2em monospace;
                    margin: 0; padding: 0; background: none;
                    vertical-align: top;" data-mce-style="font: normal
                    normal 1em/1.2em monospace; margin: 0; padding: 0;
                    background: none; vertical-align: top;">           
                    ldap_result("sipDomain/$avp(domain)");</div>
                </li>
                <li>
                  <div style="font: normal normal 1em/1.2em monospace;
                    margin: 0; padding: 0; background: none;
                    vertical-align: top;" data-mce-style="font: normal
                    normal 1em/1.2em monospace; margin: 0; padding: 0;
                    background: none; vertical-align: top;">           
                    ldap_result("password/$avp(password)");</div>
                </li>
                <li>
                  <div style="font: normal normal 1em/1.2em monospace;
                    margin: 0; padding: 0; background: none;
                    vertical-align: top;" data-mce-style="font: normal
                    normal 1em/1.2em monospace; margin: 0; padding: 0;
                    background: none; vertical-align: top;"> </div>
                </li>
                <li>
                  <div style="font: normal normal 1em/1.2em monospace;
                    margin: 0; padding: 0; background: none;
                    vertical-align: top;" data-mce-style="font: normal
                    normal 1em/1.2em monospace; margin: 0; padding: 0;
                    background: none; vertical-align: top;">           }</div>
                </li>
                <li>
                  <div style="font: normal normal 1em/1.2em monospace;
                    margin: 0; padding: 0; background: none;
                    vertical-align: top;" data-mce-style="font: normal
                    normal 1em/1.2em monospace; margin: 0; padding: 0;
                    background: none; vertical-align: top;"> </div>
                </li>
                <li>
                  <div style="font: normal normal 1em/1.2em monospace;
                    margin: 0; padding: 0; background: none;
                    vertical-align: top;" data-mce-style="font: normal
                    normal 1em/1.2em monospace; margin: 0; padding: 0;
                    background: none; vertical-align: top;">           
                    if ("$avp(s:domain)" =~ "$fd") {</div>
                </li>
                <li>
                  <div style="font: normal normal 1em/1.2em monospace;
                    margin: 0; padding: 0; background: none;
                    vertical-align: top;" data-mce-style="font: normal
                    normal 1em/1.2em monospace; margin: 0; padding: 0;
                    background: none; vertical-align: top;">           
                           xlog("L_INFO", "Not alllowed $fd");</div>
                </li>
                <li>
                  <div style="font: normal normal 1em/1.2em monospace;
                    margin: 0; padding: 0; background: none;
                    vertical-align: top;" data-mce-style="font: normal
                    normal 1em/1.2em monospace; margin: 0; padding: 0;
                    background: none; vertical-align: top;">           
                           sl_send_reply("403","Not allowed $fd");</div>
                </li>
                <li>
                  <div style="font: normal normal 1em/1.2em monospace;
                    margin: 0; padding: 0; background: none;
                    vertical-align: top;" data-mce-style="font: normal
                    normal 1em/1.2em monospace; margin: 0; padding: 0;
                    background: none; vertical-align: top;">           
                           exit;</div>
                </li>
                <li>
                  <div style="font: normal normal 1em/1.2em monospace;
                    margin: 0; padding: 0; background: none;
                    vertical-align: top;" data-mce-style="font: normal
                    normal 1em/1.2em monospace; margin: 0; padding: 0;
                    background: none; vertical-align: top;">           
                     }</div>
                </li>
                <li>
                  <div style="font: normal normal 1em/1.2em monospace;
                    margin: 0; padding: 0; background: none;
                    vertical-align: top;" data-mce-style="font: normal
                    normal 1em/1.2em monospace; margin: 0; padding: 0;
                    background: none; vertical-align: top;"> </div>
                  <div style="font: normal normal 1em/1.2em monospace;
                    margin: 0; padding: 0; background: none;
                    vertical-align: top;" data-mce-style="font: normal
                    normal 1em/1.2em monospace; margin: 0; padding: 0;
                    background: none; vertical-align: top;"><br>
                  </div>
                  <div style="font: normal normal 1em/1.2em monospace;
                    margin: 0; padding: 0; background: none;
                    vertical-align: top;" data-mce-style="font: normal
                    normal 1em/1.2em monospace; margin: 0; padding: 0;
                    background: none; vertical-align: top;"><span
                      style="color: #000000; font-family: Sans;
                      font-size: medium; font-style: normal;
                      font-variant: normal; font-weight: normal;
                      letter-spacing: normal; line-height: normal;
                      orphans: auto; text-align: start; text-indent:
                      0px; text-transform: none; white-space: pre-wrap;
                      widows: auto; word-spacing: 0px;
                      -webkit-text-stroke-width: 0px; display: inline
                      !important; float: none;" data-mce-style="color:
                      #000000; font-family: Sans; font-size: medium;
                      font-style: normal; font-variant: normal;
                      font-weight: normal; letter-spacing: normal;
                      line-height: normal; orphans: auto; text-align:
                      start; text-indent: 0px; text-transform: none;
                      white-space: pre-wrap; widows: auto; word-spacing:
                      0px; -webkit-text-stroke-width: 0px; display:
                      inline !important; float: none;">any help thank
                      you </span></div>
                </li>
              </ol>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio World Conference - April 2-4, 2014, Berlin, Germany
<a class="moz-txt-link-freetext" href="http://www.kamailioworld.com">http://www.kamailioworld.com</a></pre>
  </body>
</html>