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 [email protected] www.oyster-telecom.ru From: [email protected] [mailto:[email protected]] 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" <[email protected]> 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 [email protected] www.oyster-telecom.ru _______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users _______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
