Thanks.&nbsp; This fixed error.<br>
Is $rc the same as $retcode ?<br>
<br>
Gary<br>
-----Original Message-----<br>
From: Daniel-Constantin Mierla [mailto:miconda@gmail.com] <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>
http://www.asipto.com<br>