[Kamailio-Users] lookup("location") problem

Daniel-Constantin Mierla miconda at gmail.com
Thu Feb 19 21:43:16 CET 2009


Hello,

On 02/19/2009 06:44 PM, BERGANZ François wrote:
>
> Hello,
>
>  
>
> I do as the example in the module registrar doc:
>
>  
>
> lookup("location");
>
> switch ($?) {
>
>     case -1:
>
>     case -3:
>
>         sl_send_reply("404", "Not Found");
>
>         exit;
>
>     case -2:
>
>         sl_send_reply("405", "Not Found");
>
>         exit;
>
> };
>
>  
>
>  
>
> And SER report me ERROR:core:pv_parse_spec: wrong char [$/36] in [$?] 
> at [0 (0)]
>
>  
>
> Know you why?
>
I have to check the source code, $? might have been removed once we got 
the pseudo-variables in the config. Use $retcode or $rc:
http://www.kamailio.org/dokuwiki/doku.php/pseudovariables:devel#returned_code

Cheers,
Daniel


>  
>
>  
>
> Cordialement,
>
> BERGANZ François
>
>  
>
> P Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
>
>  
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Kamailio (OpenSER) - Users mailing list
> Users at lists.kamailio.org
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
> http://lists.openser-project.org/cgi-bin/mailman/listinfo/users

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





More information about the sr-users mailing list