I was a bit too focused on where I thought the problem was - turns out I wasn't crazy and the dialplan does work as expected. The problem was with dtmf detection - setting relaxdtmf=yes did the trick. Sorry for the premature post for help.
Begin forwarded message:
From: Ben Witso <[EMAIL PROTECTED]> Date: Mon Jun 21, 2004 7:28:42 PM US/Central To: Asterisk-Users <[EMAIL PROTECTED]> Subject: dialplan help!
List-mates,
I'm sorry to post such a simple question, but I can't get this to work and I'm at a loss as to why. I'm running the latest cvs head (just checked it out 1/2 hour ago). I want a call coming in on a PSTN to answer the phone, play some phrases (thank you for calling, if you know the extension you would like enter it now, otherwise please hold), then if they entered a 4 digit extension, dial it accordingly. If they don't enter anything ring a zap phone for several seconds then play a phrase and hang up. If they enter an invalid extension, play a phrase and go back to reprompt. When I call, if I do nothing it works as expected. But if I try to enter an extension, it either ignores the touch tones completely, or only "sees" the first digit (then acts accordingly with the invalid handling). I've moved the "include" around and that seems to be what makes it see a digit vs see nothing. When I call from an internal line (fromzap context) I'm able to dial the extensions just fine. Can anyone tell me why this isn't working?
TIA, Ben
extensions.conf: [frompstn] exten => s,1,Answer exten => s,2,Wait(1) exten => s,3,ResponseTimeout(2) exten => s,4,DigitTimeout(6) exten => s,5,Background(bgw-ThanksForCallingBgw) exten => s,6,Background(bgw-IfYouKnowExt) exten => s,7,Background(bgw-OtherwiseHold) include => internalextensions
exten => t,1,Dial(ZAP/3,15) exten => t,2,Background(bgw-ThankYou) exten => t,3,Hangup
exten => i,1,Background(bgw-SorryInvalidEntry) exten => i,2,Goto(s,5)
exten => h,1,Hangup
[fromzap] ignorepat => 9 include => internalextensions include => localcall exten => h,1,Hangup
[internalextensions] exten => 4001,1,Dial(ZAP/1,30) ;exten => 4001,2,Voicemail(u4001) ;exten => 4001,102,Voicemail(b4001) exten => 4001,103,Hangup
exten => 4002,1,Dial(ZAP/2,30) ;exten => 4002,2,Voicemail(u4002) ;exten => 4002,102,Voicemail(b4002) exten => 4002,103,Hangup
exten => 4003,1,Dial(ZAP/3,30) ;exten => 4003,2,Voicemail(u4003) ;exten => 4003,102,Voicemail(b4003) exten => 4003,103,Hangup
exten => 2050,1,SetLanguage(en) exten => 2050,2,Playback(demo-abouttotry) exten => 2050,3,Dial(IAX2/[EMAIL PROTECTED]/[EMAIL PROTECTED]) exten => 2050,4,Playback(demo-nogo) exten => 2050,5,Hangup
PS- I have the voicemail lines commented out for extensions 4001-4003 because I haven't set them up yet.
_______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
