Extension 's' will only work if the call arrives without an extension.
In this case, an extension ('123') is being passed, so Asterisk will
attempt to route to that. Add an extension '123' to your dialplan and it
should match on that. Your ATA is passing that extension.
The wait is often needed on channels where the audio path has not been
fully established. Essentially Asterisk is too quick, and so it is doing
it's thing before the carrier has fully-established the end-to-end audio
path.
When you call an analogue line, callerID is passed between the first and
second ring cycle. That adds a delay. When troubleshooting ringing on an
analog line, you have to diagnose it from your end, not the calling
party's end. I suspect you'll find that Asterisk does not hear 5 rings.
The ATA, for example, is probably waiting 2 rings before signalling
asterisk in order to capture CLID. There are clearly delays elsewhere as
well. When you call, make sure you have the asterisk console up, with
verbosity set to 5. You'll be able to see when the signal to asterisk
arrives. Any rings that happen before that point are not something
asterisk can do anything about, since it doesn't yet know about the call.
Jim
Frank Bax wrote:
I have two pstn lines at home; I connected SPA3102 to one of them. My
asterisk server (1.4.22.2) is a co-locate a few km away.
On page 83 of AsteriskTFOT.pdf is this Dialplan:
[incoming]
exten => s,1,Answer
exten => s,2,Playback(hello-world)
exten => s,3,Hangup()
When I make a call into system, I get
Call from 'pstn' to extension '123' rejected because extension not found.
If I change the plan to
[incoming]
exten => _X.,1,Answer
exten => _X.,2,Playback(hello-world)
exten => _X.,3,Hangup()
the first part of "hello world" is cut off.
When I change the plan to
[incoming]
exten => _X.,1,Answer
exten => _X.,2,Wait(1)
exten => _X.,3,Playback(hello-world)
exten => _X.,4,Hangup()
Everything works properly.
Why doesn't "s" extension work as advertised?
Why do I need to add Wait()?
Why do I hear ringy-dingy[*] 5 times before asterisk answers the call?
[*] http://www.youtube.com/watch?v=k9e3dTOJi0o
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
--
--
Jim Van Meggelen
[email protected]
http://www.oreillynet.com/pub/au/2177
"A child is the ultimate startup, and I have three.
This makes me rich."
Guy Kawasaki
--
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]