[OpenSIPS-Users] issue with trusted addresses listed with grp=0

Andrew Pogrebennyk andrew.pogrebennyk at portaone.com
Fri Jul 9 23:55:11 CEST 2010


Hello Bogdan,

Thanks for getting back to me. Two things:

1) I have bumped param_no for function get_source_group from 0 to 1 to 
get it running.

2) Now I am getting the "invalid operation 20/3/4" error - maybe 
opensips doesn't assume automatically that the variable is int:

Jul  9 17:33:29 dev01 /usr/local/sbin/opensips[2299]: 
CRITICAL:core:comp_scriptvar: invalid operation 20/3/4!!
Jul  9 17:33:29 dev01 /usr/local/sbin/opensips[2299]: 
WARNING:core:do_action: error in expression (l=681)

I hope we can resolve this before the 1.6.3 release.

n 10.07.2010 00:51, Bogdan-Andrei Iancu wrote:
> Hi Andrew,
> 
> Indeed there is design bug -  a script function returning 0 will 
> break 
> the script execution ; so if the group found by get_source_group() is 
> zero, when returning the val, the script execution will end....
> 
> I change the way you use the function - instead of using the return 
> code 
> for group, you provide a pvar to store the result:
> 
> $var(group) = get_source_group();
> 
>          =>
> 
> get_source_group("$var(group)");
> 
> 
> This fix is available on trunk (see revision 7009) - please test it 
> and 
> if ok, I will backport it to 1.6 also.
> 
> Regards,
> Bogdan


-- 
Sincerely,
Andrew Pogrebennyk



More information about the Users mailing list