[OpenSIPS-Users] $shv strange errors

Anton Zagorskiy a.zagorskiy at oyster-telecom.ru
Thu Dec 9 15:09:09 CET 2010


The problem was that I defined variables as integer and assigned a string
value to them later.






WBR, Anton Zagorskiy
VoIP Developer, Oyster Telecom
Phone.: +7 812 601-0666
Fax: +7 812 601-0593
a.zagorskiy at oyster-telecom.ru
www.oyster-telecom.ru


From: users-bounces at lists.opensips.org
[mailto:users-bounces at lists.opensips.org] On Behalf Of Duane Larson
Sent: Thursday, December 09, 2010 4:16 PM
To: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] $shv strange errors

Maybe throw some xlog statements in there print out what the variable is to
see if it is actually null.  You could also print out the actual caller id
from the sip message with the opensips header variable in xlog.
On Dec 9, 2010 6:35 AM, "Anton Zagorskiy" <a.zagorskiy at oyster-telecom.ru>
wrote:

Hello.

I'm using $shv variables:

loadmodule "cfgutils.so"
modparam("cfgutils", "shvset", "load_table_domain=i:0")
modparam("cfgutils", "shvset", "load_table_caller_id=i:0")


In the main route block there are 2 'if's:

(line 388) if ($(shv(load_table_domain){s.int}) == 2)
       route(load_table_domain);

(line 391) if ($(shv(load_table_caller_id){s.int}) == 2)
       route(load_table_caller_id);

When openSIPS has started all is ok. But on every next SIP messages there
are errors in the log:
[30629]: CRITICAL:core:comp_scriptvar: cannot get left var value
[30629]: WARNING:core:do_action: error in expression (l=391)


What a difference between line 388 and 391 so 391 raises the error?


WBR, Anton Zagorskiy
VoIP Developer, Oyster Telecom
Phone.: +7 812 601-0666
Fax: +7 812 601-0593
a.zagorskiy at oyster-telecom.ru
www.oyster-telecom.ru





_______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users




More information about the Users mailing list