<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <br>
    On 4/29/11 7:14 PM, Gary Chen wrote:
    <blockquote cite="mid:fc6ff19e13e27.4dbab9b7@insightbb.com"
      type="cite">Thanks.&nbsp; This fixed error.<br>
      Is $rc the same as $retcode ?<br>
    </blockquote>
    yes, just shorter name.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <blockquote cite="mid:fc6ff19e13e27.4dbab9b7@insightbb.com"
      type="cite">
      <br>
      Gary<br>
      -----Original Message-----<br>
      From: Daniel-Constantin Mierla [<a class="moz-txt-link-freetext" href="mailto:miconda@gmail.com">mailto:miconda@gmail.com</a>] <br>
      Sent: Friday, April 29, 2011 1:01 PM<br>
      To: SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) -
      Users Mailing List<br>
      Cc: Gary Chen<br>
      Subject: Re: [SR-Users] How to get rid of this error message.<br>
      <br>
      Hello,<br>
      <br>
      On 4/29/11 4:32 PM, Gary Chen wrote:<br>
      &gt; I am using&nbsp; prefix2domain("2") in PDT module like this:<br>
      &gt; $var(found) = prefix2domain("2");<br>
      &gt; and I got this error:<br>
      &gt; ERROR: &lt;core&gt; [lvalue.c:411]: assignment failed at pos:
      <br>
      &gt; (701,56-701,56) Apparently when prefix2domain("2) returns an
      value to <br>
      &gt; $var(found), it does not like it. But it still work.<br>
      &gt; The $var(found) still contains the return value (-1) if no
      prefix <br>
      &gt; found. And all my configuration is working. It just generate
      a lot of <br>
      &gt; this kind of error in my log file. Am I doing something
      wrong? How can <br>
      &gt; I fix it?<br>
      I will look at it, it might be that the -1 return code is usually
      associated with an error case. Meanwhile try to replace that line
      with the following:<br>
      <br>
      prefix2domain("2");<br>
      $var(found) = $rc;<br>
      <br>
      Cheers,<br>
      Daniel<br>
      <br>
      --<br>
      Daniel-Constantin Mierla<br>
      <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a><br>
      <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></pre>
  </body>
</html>