<div dir="ltr">I think it's much more reliable to lookup in some admission control database on every in- and outbound call for the user. Then you have the ability to redirect the user to an IVR, for example, and tell them that the account is blocked.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 19, 2014 at 2:07 PM, yoav golde <span dir="ltr"><<a href="mailto:ygolde@gmail.com" target="_blank">ygolde@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><div>I have mod_xml_curl enabled, and have binded the directory successfully:</div><div><param name="gateway-url" value="<a href="http://some.domain.com:9008/api/fs_directory" target="_blank">http://some.domain.com:9008/api/fs_directory</a>" bindings="directory"/></div><div>In that gateway I check the user against a database if he/she is allowed, and if so I return the following xml:</div><div><div><document type="freeswitch/xml"></div><div> <section name="directory"></div><div> <domain name="<a href="http://some.domain.com" target="_blank">some.domain.com</a>"></div><div> <groups></div><div> <group name="default"></div><div> <users></div><div> <user id="some_user"><params><param name="password" value="some_password"/></params></user></div><div> </users></div><div> </group></div><div> </groups></div><div> </domain></div><div> </section></div><div></document></div></div><div><br></div><div>Everything is fine at that point, the user is registered with no issues, and can make calls via FreeSwicth</div><div>The problem is how can I disable a user i previously approved?</div></div><div>I tried returning nothing instead of the above xml, and it did not work, the user could still connect and make calls.</div><div>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)</div><div><br></div><div>Any idea how to revoke users access in real time?</div><div><br></div><div>Thanks,</div><div><br></div><div>Golde</div><div><br></div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>