[OpenSIPS-Users] ERROR:core:pv_parse_spec: bad parameters after upgrading to 1.5

Bogdan-Andrei Iancu bogdan at voice-system.ro
Tue Mar 31 16:01:58 CEST 2009


Hi Carlo,

I found the bug...right now I'm testing the fix. I will shortly send you 
a patch to test before backporting to 1.5.

Thanks and regards,
Bogdan

Carlo Dimaggio wrote:
> Il giorno 26/mar/09, alle ore 17:38, Carlo Dimaggio ha scritto:
>
>   
>> Hi Bogdan,
>> I have 5 blocks in which I use the function is_user_in():
>>          if (is_user_in("Credentials", "quota")) {
>>          if (!is_user_in("Credentials", "ITALY_NATIONAL")) {
>>          if (is_user_in("Credentials", "ITALY_NATIONAL")) {
>>          if (is_user_in("Credentials", "ITALY_MOBILE")) {
>>          if (is_user_in("Credentials", "INTERNATIONAL")) {
>> In all functions I use "Credentials" as first parameter. Do you see
>> something wrong?
>> If I comment these lines I don't have errors...
>>     
>
> Hi Bogdan,
>
> I've added in group.c a line in order to print the User Filed  
> Identifier. I see that when I have the errors the output is like this:
>
> Mar 30 10:35:33 sip /sbin/opensips[14789]: ERROR:group:get_hf: DEBUG:  
> User Field identifier = ###0^H#m^]^H^C
>
> Mar 30 10:35:33 sip /sbin/opensips[14789]: ERROR:core:pv_parse_spec:  
> bad parameters
> Mar 30 10:35:33 sip /sbin/opensips[14789]: ERROR:group:get_hf:  
> unsupported User Field identifier
> Mar 30 10:35:33 sip /sbin/opensips[14789]: ERROR:group:is_user_in:  
> unable to get user/dom source
>
> When I have no errors, the output is:
>
> Mar 30 10:35:29 sip /sbin/opensips[14789]: ERROR:group:get_hf: DEBUG:  
> User Field identifier = Credentials
>
>
> Is it possible that in my script there is a fault that changes the  
> user field identifier of is_user_in()?
>
>
> Thanks and regards,
> Carlo Dimaggio
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>   




More information about the Users mailing list