[Freeswitch-dev] Prevent call setup

Alois Komenda alois.komenda at esk.fraunhofer.de
Mon Feb 11 08:56:25 EST 2008


Where does that UUID come from? How can an external application know it? 


--
Alois Komenda
Fraunhofer-Einrichtung für Systeme der Kommunikationstechnik ESK




-----Ursprüngliche Nachricht-----
Von: freeswitch-dev-bounces at lists.freeswitch.org
[mailto:freeswitch-dev-bounces at lists.freeswitch.org] Im Auftrag von Brian
West
Gesendet: Montag, 11. Februar 2008 12:58
An: freeswitch-dev at lists.freeswitch.org
Betreff: Re: [Freeswitch-dev] Prevent call setup


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


_______________________________________________
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4942 bytes
Desc: not available
Url : http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20080211/51f7ecc2/attachment-0001.bin 


More information about the Freeswitch-dev mailing list