On 4/29/11 7:14 PM, Gary Chen wrote:
Thanks.  This fixed error.
Is $rc the same as $retcode ?
yes, just shorter name.

Cheers,
Daniel


Gary
-----Original Message-----
From: Daniel-Constantin Mierla [mailto:miconda@gmail.com]
Sent: Friday, April 29, 2011 1:01 PM
To: SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List
Cc: Gary Chen
Subject: Re: [SR-Users] How to get rid of this error message.

Hello,

On 4/29/11 4:32 PM, Gary Chen wrote:
> I am using  prefix2domain("2") in PDT module like this:
> $var(found) = prefix2domain("2");
> and I got this error:
> ERROR: <core> [lvalue.c:411]: assignment failed at pos:
> (701,56-701,56) Apparently when prefix2domain("2) returns an value to
> $var(found), it does not like it. But it still work.
> The $var(found) still contains the return value (-1) if no prefix
> found. And all my configuration is working. It just generate a lot of
> this kind of error in my log file. Am I doing something wrong? How can
> I fix it?
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:

prefix2domain("2");
$var(found) = $rc;

Cheers,
Daniel

--
Daniel-Constantin Mierla
http://www.asipto.com


_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
http://www.asipto.com