[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:23:19 CEST 2009
Please apply this patch, recompile the module and let me know if the
problem was solved.
Thanks and regards,
Bogdan
Bogdan-Andrei Iancu wrote:
> 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
>>
>>
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: group.patch
Type: text/x-diff
Size: 5426 bytes
Desc: not available
Url : http://lists.opensips.org/pipermail/users/attachments/20090331/fd266e5a/attachment.patch
More information about the Users
mailing list