Finally I could do it using the AMI Originate
<https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+ManagerAction_Originate>
command
and the parameter EarlyMedia=true. So, when you throw the call, when
detects the EarlyMedia (SIP 183) the channels is bridged to context and you
can do the recording.
This works from Asterisk 11.
On Fri, Jun 27, 2014 at 11:00 AM, David Pinedo <dpinedo at presenceco.com>
wrote:
> Hello,
>
> Throwing calls from Asterisk to PSTN (via a VoIP gateway) some operators
> sends an explaining audio, in situations as:
> The phone number does is not assigned
> The phone is powered off
> etc.
> The audio is sent before the call to be answered.
> So, in an automatic dialling application I'd like to recognize that
audio
> to know what to do with those calls (queue them to a service, mark as wrong
> number, unavailable, etc.).
>
> Does Asterisk have any functionality to recognize the audio in early media
> (similar to the answer machine detection)?
>
> Is there a way to record the audio in early media to implement my own
> early media detector?
>
> Thank you in advance
>
> ---
> David Pinedo
>
--
*PRESENCE TECHNOLOGY*
*David Pinedo Garc?a*
Software Developer
C/ Comte d'Urgell 240 3?-A
Barcelona 08036
dpinedo at presenceco.com
Ph: +34 93 10 10 300/313
*www.presenceco.com* <http://www.presenceco.com/>
*Follow us on:*
*Presence Technology - Disclaimer*
This message, its content and any file attached thereto is for the intended
recipient only and is confidential and /or privileged. If you have received
this e-mail in error or had access to it, you should note that the
information in it is private and any use thereof is unauthorized. In such
an event please notify us by e-mail or by telephone (+ 34 93 10 10 300).
Any reproduction of this e-mail by whatsoever means and any transmission or
dissemination thereof to other persons is prohibited. It should be deleted
immediately from your system. Presence Technology reserves the right to
take legal action against any persons unlawfully gaining access to the
content of any external message it has emitted.
For additional information, please visit our website *www.presenceco.com
<http://www.presenceco.com/>*
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.digium.com/pipermail/asterisk-users/attachments/20140716/d4e867a7/attachment.html>