<div dir="ltr">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 :(<br><br><div class="gmail_quote">On Thu, Aug 28, 2008 at 4:58 PM, Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Alex,<br>
<br>
Try enable debugging (set debug=6) and see the debug logs from the module - it will tell about the query result.<br>
<br>
Regards,<br>
Bogdan<br>
<br>
Alex G wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">
<br>
<br>
I am invoking is_user_in with the following script:<br>
<br>
if (is_user_in("Credentials","longdistance")) {<br>
xlog("yes group credentials");<br>
exit;<br>
} else {<br>
xlog("no group credentials");<br>
sl_send_reply("403", "No permissions for long distance");<br>
exit;<br>
};<br>
<br>
<br></div>
i see the mysql query in the query log: select grp from grp where username='101' AND grp='longdistance' AND domain='<a href="http://c10.xpandervoip.com" target="_blank">c10.xpandervoip.com</a> <<a href="http://c10.xpandervoip.com" target="_blank">http://c10.xpandervoip.com</a>>'<div class="Ih2E3d">
<br>
<br>
<br>
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"<br>
<br>
I've tried many variations, yet no matter what i do it does not return true as it should.<br>
<br>
any ideas? using opensips 1.4.1 latest stable downloaded yesterday<br>
<br>
Alex<br></div>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
</blockquote>
<br>
</blockquote></div><br></div>