[Freeswitch-dev] Prevent call setup
Brian West
brian.west at mac.com
Mon Feb 11 06:58:23 EST 2008
On Feb 11, 2008, at 2:50 AM, Alois Komenda wrote:
> Hello,
>
> how can I prevent the completion of the call setup if it was
> detected (by my module or a client of the event_socket server for
> example) that the call is not allowed?
> The criteria for a call to be not allowed might be out of the scope
> of the dialplan so I can't use dialplan logic for this task.
You would usually make this determination from the dialplan, or a
module that implements a dialplan interface. You could also make such
decisions in a custom application and just issue a hangup with cause
from that app.
>
> What happens if I send an event like CHANNEL_HANGUP or
> CHANNEL_DESTROY from an event_socket client? Does this initiate any
> actions?
You can send a hangup via the event socket by calling the uuid_kill API.
/b
>
> Thanks in advance
>
> Regards,
>
> --
> Alois Komenda
> Fraunhofer-Einrichtung für Systeme der Kommunikationstechnik ESK
>
> _______________________________________________
> Freeswitch-dev mailing list
> Freeswitch-dev at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org
More information about the Freeswitch-dev
mailing list