[asterisk-dev] hook outgoing call with asterisk
Juan Ramírez
juanantonio.ram at gmail.com
Thu Dec 16 11:41:21 UTC 2010
ok, now I could find a way to get into this
reading the asterisk's source code I realized that creating my
own ast_switch and registering it on my context is a good solution to my
problem.
Saludos!
Juan
2010/12/15 Juan Ramírez <juanantonio.ram at gmail.com>
> Hi,
>
> I'm writing an asterisk module and I was wondering if I can hook an
> outgoing call made by a SIP or IAX peer without getting into the dialplan
>
> The use case is below:
>
> 1- User makes a call through a SIP phone 94444444
> 2- My module gets the call and makes a request to a database checking if
> the prefix '9' is allowed
> 3- If it's allowed then continue, else reject the call
>
> I don't know (yet) how to get into the step two.
>
>
> Thanks!
>
>
>
> Saludos!
> Juan
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20101216/4b6cd6cf/attachment.htm>
More information about the asterisk-dev
mailing list