News & Reviews
More How-To's & Tips More News
More Reviews Device Configuration Tools
No account yet? Create one
Forgot your Username or Password?

Welcome to the Voxilla VoIP Forum.

Voxilla has been a trusted source for accurate, up-to-date information on the IP Communications industry since 2002. A dedicated staff of reporters and engineers produce feature articles and product reviews to keep industry watchers abreast of the people, companies, and trends driving a fast moving market.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.





Closed Thread
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old June 7th, 2005, 04:25 AM
quibbly quibbly is offline
Junior Member
 
Join Date: May 2005
Posts: 26
quibbly
Default Asterisk will not register key input with context

Having an odd issue and wonder if anyone is having the same problem (full asterisk, not a@h)

I have setup a context in my extension.conf:

[broadvoice-line]
exten => 816278####,1,answer
exten => 816278####,2,goto(home-menu,s,1)

[home-menu]
exten => s,1,Ringing
exten => s,2,Wait(2)
exten => s,3,Background(weasels-eaten-phonesys)
Exten => s,n,WaitExten(10)
exten => 1,1,Goto(default,1000,1)
exten => 2,1,Goto(default,2000,2)
exten => 3,1,Goto(monkeys,s,1)
exten => t,1,Goto(#,2)
exten => i,1,Playback(invalid)


Now, here is the problem, when the line rings, i get the background message but it will not register the keys that I press, ie: 1 for extension 1000, 2 for extension 2000 or 3 to go to monkeys context.

Now, if I press 1 while it plays the message, sometimes it will go to extension 1000, but if I wait until it plays the message, it stops.
I have tried it with

Exten => s,n,WaitExten(10)
and
Exten => s,n,WaitExten

Still no luck. Anyone have this problem?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2 (permalink)  
Old June 7th, 2005, 04:38 AM
quibbly quibbly is offline
Junior Member
 
Join Date: May 2005
Posts: 26
quibbly
Default RE: Asterisk will not register key input with context

forgot to add, this is my [default] (well, part of it) context in extension.conf

exten => 1000,1,Dial,Zap/1|10
exten => 1000,2,Voicemail,u1000
exten => 1000,3,Hangup
exten => 1000,102,Voicemail,b1000
exten => 1000,103,Hangup

exten => 2000,1,Dial(SIP/2000,20,rt) ; Tracy home desktop
exten => 2000,2,Voicemail,u2000
exten => 2000,3,Hangup

exten => 2001,1,Dial(IAX2/2001,20,rt) ; IAX Test Account
exten => 2001,2,Voicemail,u2001
exten => 2001,3,Hangup

exten => 2002,1,Dial(SIP/2002,20,rt) ; SIP Test Account
exten => 2002,2,Voicemail,u2002
exten => 2002,3,Hangup

exten => 201,1,Dial(IAX2/201,20,rt) ; Dad
exten => 201,2,Voicemail,u201
exten => 201,3,Hangup
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3 (permalink)  
Old June 7th, 2005, 12:14 PM
mberlant's Avatar
mberlant mberlant is offline
Senior Member
 
Join Date: Aug 2004
Location: USA or Japan
Posts: 5,013
mberlant is an unknown quantity at this point
Default RE: Asterisk will not register key input with context

Quibbly,

Welcome to the fickle world of Asterisk. Although you have correctly chosen the Background command over the Playback command, you haven't actually provided for the capture of digits. You need two more commands to make this work.

[home-menu]
exten => s,1,Ringing
exten => s,2,Wait(2)
exten => s,3,DigitTimeout,5
exten => s,4,ResponseTimeout,10
exten => s,5,Background(weasels-eaten-phonesys)
exten => s,6,WaitExten(10)

exten => 1,1,Goto(default,1000,1)
exten => 2,1,Goto(default,2000,2)
exten => 3,1,Goto(monkeys,s,1)

exten => t,1,Goto(#,2)
exten => i,1,Playback(invalid)

These two commands give the caller 5 seconds interdigit timeout and 10 seconds to input the entire number.

Michael

p.s. If your Voicemail commands give you problems, change them to Voicemail(u201), etc.
p.p.s. I see you have extensions of differing lengths, both beginning with 2. As a telephone person, this is disconcerting to me. As a Unix person, you probably never thought twice about it.
__________________
Please do not send technical questions via PM.
Please post all questions to the forum.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4 (permalink)  
Old June 7th, 2005, 12:33 PM
quibbly quibbly is offline
Junior Member
 
Join Date: May 2005
Posts: 26
quibbly
Default Re: RE: Asterisk will not register key input with context

Quote:
Originally Posted by mberlant
Quibbly,

Welcome to the fickle world of Asterisk. Although you have correctly chosen the Background command over the Playback command, you haven't actually provided for the capture of digits. You need two more commands to make this work.

[home-menu]
exten => s,1,Ringing
exten => s,2,Wait(2)
exten => s,3,DigitTimeout,5
exten => s,4,ResponseTimeout,10
exten => s,5,Background(weasels-eaten-phonesys)
exten => s,6,WaitExten(10)

exten => 1,1,Goto(default,1000,1)
exten => 2,1,Goto(default,2000,2)
exten => 3,1,Goto(monkeys,s,1)

exten => t,1,Goto(#,2)
exten => i,1,Playback(invalid)

These two commands give the caller 5 seconds interdigit timeout and 10 seconds to input the entire number.

Michael

p.s. If your Voicemail commands give you problems, change them to Voicemail(u201), etc.
p.p.s. I see you have extensions of differing lengths, both beginning with 2. As a telephone person, this is disconcerting to me. As a Unix person, you probably never thought twice about it.
thanks for the info. Will setup and test in a few minutes.

Per the extensions, I would normally use the same ext length. I had 3 digit extensions when I used a@h. I configured my father who is out of state on ext 201. When I configured new server, I didn't want to call him up and change him over. I'm sending him an IAXy adapter so he can use a desktop phone. I'll have him configured to a 4 digit by then.

I appreciate your input and help. This is a great program, but picky on commands. I'm actually glad. In VB you can be a littly sloppy in code, but use more processing power to overcome that issue. Here, its good you have to be pretty precise.

Again, Thanks,

Quibbly
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5 (permalink)  
Old June 7th, 2005, 11:57 PM
quibbly quibbly is offline
Junior Member
 
Join Date: May 2005
Posts: 26
quibbly
Default

Had a few errors with the commands, so I tried it this way:

[home-menu]
exten => s,1,Ringing
exten => s,2,Wait(2)
exten => s,3,DigitTimeout(5)
exten => s,4,ResponseTimeout(10)
exten => s,5,Background(weasels-eaten-phonesys)
exten => s,6,WaitExten(10)

exten => 1,1,Goto(default,1000,1)
exten => 2,1,Goto(default,2000,2)
exten => 3,1,Goto(monkeys,s,3)

exten => t,1,Goto(#,2)
exten => i,1,Playback(invalid)

and it now works like a charm.

Thanks,
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old June 7th, 2005, 11:57 PM
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:



Similar Threads for: Asterisk will not register key input with context
Thread Thread Starter Forum Replies Last Post
Asterisk hangs up when someone presses any key Desynced Asterisk Support Forum 2 May 23rd, 2006 09:01 PM
Input not passed from ipkall -> asterisk Robstar IPKall Support Forum 1 January 19th, 2006 04:27 AM
control if dialed nr exist in a context digital_storm Asterisk Support Forum 0 December 14th, 2005 12:23 PM
Asterisk and Pound key kandy Asterisk Support Forum 2 June 10th, 2005 12:51 PM
Advice and input on my plans for Asterisk bernart Asterisk Support Forum 0 August 1st, 2004 01:34 AM



All times are GMT. The time now is 11:38 AM.


vBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd. SEO by vBSEO 3.0.0 ©2007, Crawlability, Inc. Logos and trademarks are the property of Voxilla or their respective owner. All other content © 2003-2007 by Voxilla, Inc.