You might also use BackgroundDetect() to wait for the far end to start
playing back it's message, and then sending the DTMF.
i.e.
[macro-ld-dial]
exten => s,1,Dial(${ACCESS_NUMBER})
exten => s,n,BackgroundDetect(silence||200|200); Wait for 200ms of talking
exten => s,n,SendDTMF(${ARG1})
On Sat, Mar 8, 2008 at 8:27 PM, Ian Darwin <[EMAIL PROTECTED]> wrote:
> Jim Van Meggelen wrote:
> > Take a stab at using M() instead. Write a wee little macro that waits for a
> > few seconds, then sends the auth string.
> >
> > something like:
> >
> > Dial(whatever,M(send_ld_auth^2^123456))
> >
> > [macro-send_ld_auth]
> > exten => s,1,Wait(${ARG1})
> > exten => s,n,SendDTMF(${ARG2})
>
> Amazingly, I was just about to post that that's what I'd done.
> But I also changed sip.conf dtmfmode to inband for the FXO peer on the
> 488. It's now working (at least 9 times out of ten).
>
> What I actually used (I just hardcoded the wait time):
>
> [macro-wait-and-send]
> exten => s,1,Wait(5)
> exten => s,n,SendDTMF(${ARG1})
>
> Thanks to Andre & Jim for the head-scratching!
>
> Ian
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
| It ain't what you don't know that gets you into trouble. It's what
| you know for sure that just ain't so. -- Mark Twain
|
| The Toronto Asterisk Users Group
| Join the discussion group by visiting http://taug.ca
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]