[asterisk-users] extensions.conf strangeness
Brian Candler
B.Candler at pobox.com
Thu Sep 28 07:05:59 MST 2006
Hello,
I have an anomoly that I am unable to explain.
My entire extensions.conf is attached. You can see that the [from-sip] and
[internal] dial plans are identical, each including 4 other contexts in the
same order:
[internal]
include => extensions
include => outbound
include => invalid
include => test
[from-sip]
include => extensions
include => outbound
include => invalid
include => test
I can place calls between extensions as expected.
Now here's the problem. If I dial '611' on a zaptel line (context
"internal"), I get the "Hello World" message from the "test" context as
expected. However if I dial '611' on a SIP phone (context "from-sip"), I get
"I am sorry, that is not a valid extension"
If I modify extensions.conf as follows:
[from-sip]
include => extensions
include => outbound
;include => invalid <<< comment out this line
include => test
then it works: dialling 611 from a SIP phone gives "Hello World".
Could someone please explain to me why the dialplan seems to behave
differently for calls originating from SIP and zaptel lines in this instance?
I am running Asterisk from SVN trunk, compiled two weeks ago (September
13th)
Thanks,
Brian Candler.
-------------- next part --------------
[general]
autofallthrough=no
[incoming]
; incoming calls from the FXO port are directed to this context from zapata.conf
include => extensions
exten => s,1,Answer()
exten => s,2,Wait(1)
exten => s,3,Background(enter-ext-of-person)
exten => i,1,Background(pbx-invalid)
exten => t,1,Playback(vm-goodbye)
exten => t,2,Hangup()
[macro-ext]
exten => s,1,Dial(${ARG1},10)
exten => s,2,Playback(vm-nobodyavail)
exten => s,3,Hangup()
exten => s,102,Playback(tt-allbusy)
exten => s,103,Hangup()
[extensions]
exten => 101,1,Macro(ext,Zap/1)
exten => 102,1,Macro(ext,Zap/2)
exten => 301,1,Macro(ext,SIP/test301)
[outbound]
exten => _9.,1,Dial(Zap/4/${EXTEN:1})
exten => _9.,2,Congestion()
exten => _9.,102,Congestion()
[invalid]
exten => _X!,1,Answer()
exten => _X!,2,Background(pbx-invalid)
[test]
exten => 611,1,Answer()
exten => 611,2,Playback(hello-world)
exten => 611,3,Hangup()
[internal]
include => extensions
include => outbound
include => invalid
include => test
[from-sip]
include => extensions
include => outbound
include => invalid
include => test
More information about the asterisk-users
mailing list