Hi Lew,

The reason you get a fast busy in your example below is that after
playing the prompt, you aren't waiting for any input from the user.

It should be:

[hashmark]
; Background will allow people to start dialing immediately
exten => s,1,Background(if-u-know-ext-dial)
; Wait input for 10 seconds
exten => s,n,WaitExten(10)

exten => 10,1,SayDigits(10)
exten => 11,1,SayDigits(11)
exten => 20,1,SayDigits(20)

--
| Simon P. Ditner <[email protected]> / 416-479-0542 / http://taug.ca
|
| Network:
|    http://www.facebook.com/spditner
|    http://www.linkedin.com/in/spditner

On Fri, 12 Feb 2010, Lew Pitcher wrote:

I recently acquired an IP04 embedded asterisk appliance from Rowetel.com, and
have been playing with it on and off.

As a "thought experiment", I decided to set it up to handle the extension
phones in my house. I've got a dialplan in place that permits each extension
to direct-dial outward, and for incoming calls to be passed onwards to an
extension.

I also have extension-to-extension calls, using a set of reserved 4digit
numbers (7000 through 7999). But I don't like this scheme for
extension-to-extension calls, and would rather enable them with an "escape
sequence"; #10 - #99.

There isn't anything in "Asterisk: The Future of Telephony" on the octothorpe
key, and the little I've seen online (and I've done a fair amount of Google
searching) says that, for dialplans, the octothorpe (or hash or pound) can
only be used in a number-matching regexp, like
 exten = _#.,1,NoOp()

I've done something like
 [numberplan-local]
 exten = _123XXXXXXX,1,....
 ...
 exten = _#,1,Goto(hashmark,s,1)


 [hashmark]
 exten = s,1,Playback(if-u-know-ext-dial)
 exten = 10,1,SayDigits(10)
 exten = 11,1,SayDigits(11)
 exten = 20,1,SayDigits(20)

as a test dialplan. When I dial #, the "If you know the extension" soundbite
plays, and then I hear an immediate fast-busy signal. This happens whether I
enter digits after the hash or not. It appears that my "hashmark" context
only works partially, playing soundclips, but ignoring number entries.

So, I'm at a loss. I've tried variations, such as
 [numberplan-local]
 exten = _123XXXXXXX,1,....
 ...
 exten = _#NN,1,Goto(hashmark,${EXTEN},1)

 [hashmark]
 exten = #10,1,SayDigits(10)
 exten = #11,1,SayDigits(11)
 exten = #20,1,SayDigits(20)

and others, but still the same problem; I can't get Asterisk to recognize and
act on numbers dialed after the hash.

Can anyone give me a clue? What's happening in Asterisk that's causing the
hash key to act so oddly? How do I get Asterisk to accept values dialed after
the hashmark?

Any suggestions?
--
Lew Pitcher
Master Codewright & JOAT-in-training   | Registered Linux User #112576
Me: http://pitcher.digitalfreehold.ca/ | Just Linux: http://justlinux.ca/
----------      Slackware - Because I know what I'm doing.         ------




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to