[OpenSIPS-Users] group module not working?

Alex G greekman0000 at gmail.com
Thu Aug 28 23:52:10 CEST 2008


ok it was a gaffe on my side. I was trying to use the old openser db schema.
When i upgraded to the opensips db schema all worked fine... sorry for the
false alarm :(

On Thu, Aug 28, 2008 at 4:58 PM, Bogdan-Andrei Iancu <bogdan at voice-system.ro
> wrote:

> Hi Alex,
>
> Try enable debugging (set debug=6) and see the debug logs from the module -
> it will tell about the query result.
>
> Regards,
> Bogdan
>
> Alex G wrote:
>
>>
>>
>> I am invoking is_user_in with the following script:
>>
>> if (is_user_in("Credentials","longdistance")) {
>>                        xlog("yes group credentials");
>>                        exit;
>>                          } else {
>>                        xlog("no group credentials");
>>                             sl_send_reply("403", "No permissions for long
>> distance");
>>                             exit;
>>                        };
>>
>>
>> i see the mysql query in the query log:  select grp from grp where
>> username='101' AND grp='longdistance' AND domain='c10.xpandervoip.com <
>> http://c10.xpandervoip.com>'
>>
>>
>> the function should return true and xlog the yes, but it does not. if i do
>> the query on the sql server directly it returns "longdistance"
>>
>> I've tried many variations, yet no matter what i do it does not return
>> true as it should.
>>
>> any ideas?  using opensips 1.4.1 latest stable downloaded yesterday
>>
>> Alex
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> 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/20080828/4e8e506f/attachment-0001.htm 


More information about the Users mailing list