manfred manfred
2008-Dec-26 10:10 UTC
[asterisk-users] Problem: no such extension 'xx' in context 'default'
Hi Guys, I am not so familiar with asterisk and hope to get help here. I am having now some stupid errors. My goal for the first, is to create a simple pbx with different context. As long as I use only the contex 'default' everything seems to work perfect. Now I tried to add another context i.e 'internal' and the asterisk is complaining for not finding the required extension in the 'default' context. Asterisk schould point this to the internal contex and not default. here my simply config data : sip.conf : [general] port=5060 bindaddr=0.0.0.0 [10] type=friend secret=1234 host=dynamic context=internal [11] type=friend secret=1234 host=dynamic context=internal extensions.conf [default] exten =>2,1,Playback(digits/2) ; exten =>2,2,Goto(default,10,1) exten=>3,1,Playback(pbx-invalid) exten=3,2,Goto(default,4,1) exten=4,1,Playback(vm-goodbye) exten=>4,2,Hangup() [internal] exten => 10,1,Dial(SIP/10,10) exten =>10,2,Background(vm-nobodyavail) exten => 11,1,Dial(SIP/11,5) exten =>11,2,Background(vm-nobodyavail) now when I dial 10, I got the following error : no such extension '10' in context 'default' thanks in advance manfred _________________________________________________________________ Hol dir 30 kostenlose Emoticons f?r deinen Windows Live Messenger http://www.livemessenger-emoticons.com/funfamily/de-at/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20081226/67391ccd/attachment.htm
Michael
2008-Dec-26 10:30 UTC
[asterisk-users] Problem: no such extension 'xx' in context 'default'
> sip.conf : > > [general] > port=5060 > bindaddr=0.0.0.0put "context=default" here> > [10] > type=friend > secret=1234 > host=dynamic > context=internal > > [11] > type=friend > secret=1234 > host=dynamic > context=internal > > extensions.conf > > [default] > exten =>2,1,Playback(digits/2) ; > exten =>2,2,Goto(default,10,1) > exten=>3,1,Playback(pbx-invalid) > exten=3,2,Goto(default,4,1) > exten=4,1,Playback(vm-goodbye) > exten=>4,2,Hangup()Change it to the following: exten =>_2,1,Playback(digits/2) ; exten =>_2,n,Goto(default,10,1) exten=>_3,1,Playback(pbx-invalid) exten=_3,n,Goto(default,4,1) exten=_4,1,Playback(vm-goodbye) exten=>_4,n,Hangup()> [internal] > exten => 10,1,Dial(SIP/10,10) > exten =>10,2,Background(vm-nobodyavail) > exten => 11,1,Dial(SIP/11,5) > exten =>11,2,Background(vm-nobodyavail) > > now when I dial 10, I got the following error : no such extension '10' in > context 'default'Change it to the following: exten => _10,1,Dial(SIP/10,10) exten =>_10,n,Background(vm-nobodyavail) exten => _11,1,Dial(SIP/11,5) exten =>_11,n,Background(vm-nobodyavail) The only time I am aware of that you can leave out the prefix underscore is for "exten => s" and "exten => i" Hope this helps, Michael
> now when I dial 10, I got the following error : no such extension '10' in > context 'default'As anorther important note, your PBX is correct. You should change the line Goto(default,10,1) to Goto(internal,10,1) assuming that's what you want!
Michael
2008-Dec-26 10:35 UTC
[asterisk-users] Problem: no such extension 'xx' in context 'default'
I was typing so quick I made some slips- (anyway you should get the idea...) Change it to the following: exten =>_2,1,Playback(digits/2) ; exten =>_2,n,Goto(default,10,1) exten=>_3,1,Playback(pbx-invalid) exten=>_3,n,Goto(default,4,1) exten=>_4,1,Playback(vm-goodbye) exten=>_4,n,Hangup()> [internal] > exten => 10,1,Dial(SIP/10,10) > exten =>10,2,Background(vm-nobodyavail) > exten => 11,1,Dial(SIP/11,5) > exten =>11,2,Background(vm-nobodyavail) > > now when I dial 10, I got the following error : no such extension '10' in > context 'default'Change it to the following: exten => _10,1,Dial(SIP/10,10) exten =>_10,n,Background(vm-nobodyavail) exten => _11,1,Dial(SIP/11,5) exten =>_11,n,Background(vm-nobodyavail) The only time I am aware of that you can leave out the prefix underscore is for "exten => s" and "exten => i" Hope this helps, Michael