[asterisk-users] Getting 'i' functionality on internal extensions
Brian Candler
B.Candler at pobox.com
Fri Sep 15 01:51:33 MST 2006
On Thu, Sep 14, 2006 at 10:23:09AM -0500, Eric ManxPower Wieling wrote:
> exten => _X.,1,Playback(pbx-invalid)
> exten => _X.,2,Goto(s,1)
The problem with this is that all extensions now take 3 seconds longer to
answer. For example, with this extensions.conf:
[internal]
exten => 611,1,Answer()
exten => 611,2,Playback(hello-world)
exten => 611,3,Hangup()
exten => _X.,1,Answer()
exten => _X.,2,Playback(pbx-invalid)
exten => _X.,3,Hangup()
After dialling "611" there is a three-second pause as Asterisk tries to
match more digits, before it decides to connect.
Without the last three lines, it connects immediately, and also detects as
soon as the pattern can never possibly match - e.g. if you dial "62" or "8".
However, in this case what I get is a busy tone on my phone (connected to
FXS port on TDM400P), as if the number I dialled was correct but the far end
was busy. That's not very helpful to users.
So if I could select a recorded message to play - or even just change the
tone to Number Unobtainable - that would be much better.
Hmm... digs around... pattern _X! seems to be what I want. It even seems to
work if I also have wildcard _9. to dial outgoing lines.
OK, problem solved - thanks for pointing me in the right direction!
Regards,
Brian.
More information about the asterisk-users
mailing list