[OpenSIPS-Users] $shv strange errors

Duane Larson duane.larson at gmail.com
Thu Dec 9 14:15:58 CET 2010


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20101209/ec329c62/attachment.htm>


More information about the Users mailing list