[OpenSIPS-Users] check for NULL values
Bogdan-Andrei Iancu
bogdan at opensips.org
Wed Nov 14 08:49:35 EST 2018
Hi Pasan,
It should be fine if $tu would translate to NULL. The script handles
this case. But I'm afraid you have something else there, like another
deeper error that prevents the $tu variable to be evaluated.
Do you see any other errors before the mentioned ones ? what is the type
of route where you do the test ?
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
OpenSIPS Bootcamp 2018
http://opensips.org/training/OpenSIPS_Bootcamp_2018/
On 11/13/2018 10:56 AM, Pasan Meemaduma via Users wrote:
> Hey,
>
> Anyone have a suggestion for this?
>
> On Thursday, 8 November 2018, 8:09:50 AM GMT+5:30, Pasan Meemaduma
> <pasandev at ymail.com> wrote:
>
>
> Hi Guys,
>
> I have a check for NULL for $tu var in the script, But when the value
> is missing I'm getting the following error.
>
> ERROR:core:comp_scriptvar: cannot get left var value
>
> WARNING:core:do_action: error in expression at
> /etc/opensips/opensips.cfg:806
>
> and line 806 contains following.
>
> if ( $tu != NULL ) {
> remove("location","$tu");
> }
>
> any suggestion on how to test for NULL values without getting above
> error. I'm using opensips 2.3.5
>
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20181114/f3f7f09e/attachment.html>
More information about the Users
mailing list