[Freeswitch-users] How can I remove a user with mod_xml_curl?
Florent Krieg
flokrrr at gmail.com
Fri Sep 19 16:35:54 MSD 2014
Hi Golde,
I think the problem is that the module caches the looked up entries, and
then returns the same information/xml as previously even though the data
have changed since.
Have you had a look at https://wiki.freeswitch.org/wiki/Mod_xml_curl#Caching?
If you flush cache it might solve your issue.
(not sure at all, I don't use mod_xml_curl, I lookup in db using Lua
instead)
Regards
Florent
2014-09-19 14:07 GMT+02:00 yoav golde <ygolde at gmail.com>:
> Hi,
> I have mod_xml_curl enabled, and have binded the directory successfully:
> <param name="gateway-url" value="
> http://some.domain.com:9008/api/fs_directory" bindings="directory"/>
> In that gateway I check the user against a database if he/she is allowed,
> and if so I return the following xml:
> <document type="freeswitch/xml">
> <section name="directory">
> <domain name="some.domain.com">
> <groups>
> <group name="default">
> <users>
> <user id="some_user"><params><param name="password"
> value="some_password"/></params></user>
> </users>
> </group>
> </groups>
> </domain>
> </section>
> </document>
>
> Everything is fine at that point, the user is registered with no issues,
> and can make calls via FreeSwicth
> The problem is how can I disable a user i previously approved?
> I tried returning nothing instead of the above xml, and it did not work,
> the user could still connect and make calls.
> Even after the periodic register we do from our client (once every 5
> minutes), when there was failed authentication, it took something like 2-3
> minutes until the user could no longer connect (in the meanwhile the user
> is connected and able to make calls)
>
> Any idea how to revoke users access in real time?
>
> Thanks,
>
> Golde
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
>
>
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140919/33f7300e/attachment.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list