[Freeswitch-dev] on_init hook and outgoing channels

Alex Massover alex at jajah.com
Thu Feb 21 13:15:11 MSK 2013


Hello,

We have services that manage calls via ESL and want to write a custom authorization and billing module.

The idea is to catch any call received by FreeSwitch before service gets control on ESL for incoming call and on_init hook works for us.

But for outgoing channels (created by 'route' or 'originate' commands over ESL) on_init hook doesn't work. Well the channel hits the hook but already after outgoing INVITE being sent, although channel state goes from CS_NEW->CS_INIT->CS_ROUTING correctly. And I want to authorize the channel before it goes out.

Is that a normal behavior or I completely miss something? Is there other way to block an outgoing channel after it's created but before it goes out from a custom module?

--
Best Regards,
Alex Massover

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20130221/ce2aeb83/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-dev mailing list