<div dir="ltr">I think it&#39;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">&lt;<a href="mailto:ygolde@gmail.com" target="_blank">ygolde@gmail.com</a>&gt;</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>&lt;param name=&quot;gateway-url&quot; value=&quot;<a href="http://some.domain.com:9008/api/fs_directory" target="_blank">http://some.domain.com:9008/api/fs_directory</a>&quot; bindings=&quot;directory&quot;/&gt;</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>&lt;document type=&quot;freeswitch/xml&quot;&gt;</div><div>  &lt;section name=&quot;directory&quot;&gt;</div><div>    &lt;domain name=&quot;<a href="http://some.domain.com" target="_blank">some.domain.com</a>&quot;&gt;</div><div>      &lt;groups&gt;</div><div>        &lt;group name=&quot;default&quot;&gt;</div><div>         &lt;users&gt;</div><div>             &lt;user id=&quot;some_user&quot;&gt;&lt;params&gt;&lt;param name=&quot;password&quot; value=&quot;some_password&quot;/&gt;&lt;/params&gt;&lt;/user&gt;</div><div>         &lt;/users&gt;</div><div>        &lt;/group&gt;</div><div>      &lt;/groups&gt;</div><div>    &lt;/domain&gt;</div><div>  &lt;/section&gt;</div><div>&lt;/document&gt;</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>