[SR-Users] Improving Kamailo configuration parser ...

Skyler skchopperguy at gmail.com
Wed Mar 7 04:45:53 CET 2012


I understand the pain. One thing I found was vim syntax highlighting and there was a thread before that I saw for midnight commander syntax also. I have not tried either but maybe it could help in syntax for your needs

Skyler

Sent from my iPhone

On Mar 6, 2012, at 6:05 PM, Krishna Kurapati <kkurapat at gmail.com> wrote:

> I used 
>  
> if ($var(x) != null) { ... } 
> 
> in one of the routes, and tried to run Kamailio server.
> The server exited with an error. I did not know why. 
> 
> Once I changed it to if ($var(x) != $null) {} the error went away. 
> I missed $ infront null. I think it is hard to trace such problems once a large chunk 
> of logic is written since many of us come from C++ and scripting background where $null 
> is not a common practice.
> 
> Also if I tried to use if (!$var(x)) { ... } Kamailio tries to convert the value of $var(x) to integer.
> prints WARNINGS in the log when the $var(x) consists of a string.
> 
> Krish Kura
> 
> 
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users



More information about the sr-users mailing list