[OpenSIPS-Users] Pseudo variable in Route {...} is empty. Why?

Rodrigo Pimenta Carvalho pimenta at inatel.br
Thu Dec 8 12:42:06 EST 2016


Hi.


In my OpenSIPS script I have a kind of code like this:



----------------------------------------------------------------------------------------------------

route{
       if (nat_uac_test("114"))
       {
         if (is_method("REGISTER"))
         {

         } else

              if($(ct.fields(uri){uri.host}) == "127.0.0.1" ) {
              }

       }

}
------------------------------------------------------------------------------------------------------

Some times I see the following error in the code:

ERROR:core:comp_scriptvar: cannot get left var value

This error is about the instruction '$(ct.fields(uri){uri.host})'. But, what is wrong here ?
Any hint will be very helpful!

Best regards.





RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20161208/30eab023/attachment.htm>


More information about the Users mailing list