[asterisk-dev] Help to catch media immediately after channel being answered

Yaroslav Panych panych.y at gmail.com
Fri May 20 06:38:50 CDT 2011


Hello to all

Working with asterisk for couple of month, and got such task: I need
to catch audio data(a couple of seconds)(and probably send some signal
too, but it is optionally), which asterisk will receive after channel
being answered(inbound call). I did not found any hook-system in
source where I can register my code for such event. For now I wrote
dialplan application which do my task and called right after ANSWER
application, but the problem is channel can be answered by other
applications and I will miss data I interested in. Now I trying to
analyse __ast_answer function in channel.c, but I'm not sure it is
right place. Probably there are other suitable places which I did not
discovered yet?

Regards, FeyFre



More information about the asterisk-dev mailing list