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

Bogdan-Andrei Iancu bogdan at voice-system.ro
Sun Jul 11 10:38:46 CEST 2010


Hi Andrew,

Andrew Pogrebennyk wrote:
> 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.
>   
fixed, thanks
> 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)
>   
hopefully fixed also.
> I hope we can resolve this before the 1.6.3 release.
>   
definitely :)

Please update and test again.

Thanks and regards,
Bogdan
> 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
>>     
>
>
>   


-- 
Bogdan-Andrei Iancu
OpenSIPS Bootcamp
20 - 24 September 2010, Frankfurt, Germany
www.voice-system.ro




More information about the Users mailing list