Re: Asterisk AMD Application

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I also do think that it does not make any sense - and i did already discussed this with the customer.

Customer does not want to play audio at the very beginning - there should be silence for around 1 - 2 seconds - so that a human can say hello - after this it will start with audio.

I can see there is a ast_playstream and ast_stopstream function - these functions do not block as far as i can see. So technically it could work - or i am wrong with that ?


Wolfgang Pichler
On Mrz. 26 2018, at 9:59 am, Luca Pradovera <luca.pradovera@xxxxxxxxx> wrote:

Even if you found a way to play audio, would not the called party react to it?
If I, as a human, lifted the phone and heard music, I would just hang up, or at best stay there listening, thus making AMD get a false positive.

If I can give you a little advice, I would not go too overboard with AMD. It's great, works well, but it will never catch edge cases or be 100% perfect.
You can tune it a little but overall it still is just measuring silence and word durations, nothing fancy.
Plan your application around that and make the customer aware of the situation, would be my best advice.

Best regards,
Luca


On Mon, Mar 26, 2018 at 9:18 AM, Wolfgang Pichler <wpichler@xxxxxxxxxx> wrote:
Hi all,

i do have a customer request - who does want the AMD Application to inject a sound file on the channel to the called person.

For example:
Asterisk does dial (automatically) a number - something there does answer the call - so asterisk does start the AMD Application to discover for Answering machine. In this time for normal - the called person does hear nothing. My Customer does think that it would be great to be able to play some short music / announcement in this process - to get better results in the Answering machine detection (i don't think so - but hey - lets try).

So - is anyone here who has already done something like this ?

I've already tried to inject music with MusicOnHold - but this will inject the stream on both channels - so the AMD won't work. I assume i have to use some sort of ast_stream_file on the channel to the called person - but i think this function will block. I would need a ast_start_stream_file - and a ast_stop_stream_file function for this - is something like this available ?

br,
Wolfgang


_______________________________________________
asterisk-app-dev mailing list


_______________________________________________
asterisk-app-dev mailing list
asterisk-app-dev@xxxxxxxxxxxxxxxx
http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev
_______________________________________________
asterisk-app-dev mailing list
asterisk-app-dev@xxxxxxxxxxxxxxxx
http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev

[Index of Archives]     [Asterisk SS7]     [Asterisk Announcements]     [Asterisk Users]     [PJ SIP]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Linux API]

  Powered by Linux