On Tuesday 23 May 2017 at 19:20:25, Tech Support wrote:
> All;
>
> What I did was add a line in the dialplan that used the SendDTMF()
> application and that worked great. The problem that I’ve run into now is
> that dialing the extension screwed up the answering machine detection. The
> sample context looks something like this.
>
> [play-audiomsg]
> exten => s,1,AMD
> exten => s,n,ExecIf($["${EXT}" != ""]?SendDTMF(${EXTEN}))
> exten => s,n,Background(${AUDIOMSG})
> exten => s,n,Hangup
>
> As you can see, it's very simple. Modifying the amd.conf configuration
> wasn’t the answer since I don’t know how long it will take for the
> extension to pick up.
Isn't it safe to assume that if you've been given an extension number to dial
after the initial call is answered, then it wasn't answered by an answering
machine?
The extension might be answered by an answering machine, I suppose, but that's
not the problem you're talking about (I think).
I would create two contexts:
1. Does AMD and gets called when there is no follow-on extension to dial
2. Dials a follow-on extension and doesn't do AMD (or at least, not at the
start)
Then you choose which context to place the call through depending on whether a
follow-on extension has been supplied for that customer's number or not.
> Simply placing the AMD command after the SendDTMF() wasn’t the answer
Why wasn't it the answer? What happens or doesn't happen when you try this?
Antony
--
"A person lives in the UK, but commutes to France daily for work.
He belongs in the UK."
- From UK Revenue & Customs notice 741, page 13, paragraph 3.5.1
- http://tinyurl.com/o7gnm4
Please reply to the list;
please *don't* CC me.
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
Check out the new Asterisk community forum at: https://community.asterisk.org/
New to Asterisk? Start here:
https://wiki.asterisk.org/wiki/display/AST/Getting+Started
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users