• News
  • Idefisk
  • Tools
  • Tutorials
  • Forum
  • Reviews
  • VoIP Providers
  • Archives
  • Gallery
ZOIPER softphone

The forum for asterisk and voip discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

No such extension '1000' in context 'default'

 
Post new topic   Reply to topic     Forum Index -> Asterisk Questions - beginners
View previous topic :: View next topic  
Author Message
stelio



Joined: 18 Aug 2010
Posts: 3

PostPosted: Wed Aug 18, 2010 3:02 pm    Post subject: No such extension '1000' in context 'default' Reply with quote

Dear all,

I quite new to Asterisk and to this forum, can anyone pls help me?
I have been having a small problem when configuring my asterisk for two days now. I have configured two channels: one SIP and the other IAX as follows:

sip.conf
[1000]
type=friend
host=dynamic
context=internal
qualify=yes

iax.conf

[general]
autokill=yes

[zoiper]
type=friend
host=dynamic
context=phones
qualify=yes


extensions.conf
[general]

[internal]
exten => _1xxx,1,Dial(SIP/${EXTEN},30)
exten => _1xxx,n,Hangup()

[incoming]
exten => s,1,Answer()
exten => s,n,Playback(hello-world)
exten => s,n,Hangup()

Both clients (SIP and IAX) register with no problem as can be seen below

localhost*CLI> sip show peers
Name/username Host Dyn Nat ACL Port Status
1000/1000 192.168.2.103 D 5084 Unmonitored
1 sip peers [Monitored: 0 online, 0 offline Unmonitored: 1 online, 0 offline]
localhost*CLI> iax2 show pe
peers peer
localhost*CLI> iax2 show peers
Name/Username Host Mask Port Status
zoiper 192.168.2.101 (D) 255.255.255.255 4569 OK (7 ms)
1 iax2 peers [1 online, 0 offline, 0 unmonitored]
localhost*CLI>

However whenever i type the command console dial 1000 i get the error depicted below:
localhost*CLI> console dial 1000
No such extension '1000' in context 'default'

If i create a context called default and insert the code i have right now in internal, it works fine, but if i only have the internal context and point to it from my config in sip.conf it produces the aforementioned error. What could i be doing wrong?
Back to top
View user's profile Send private message
sopel1000



Joined: 28 Jan 2010
Posts: 13
Location: Poznań / Poland

PostPosted: Sun Aug 29, 2010 11:05 pm    Post subject: Reply with quote

Does it only fail to work from console? The question is - what do you want to achieve?
Back to top
View user's profile Send private message
bklambdin



Joined: 11 Aug 2010
Posts: 5

PostPosted: Tue Oct 19, 2010 9:19 pm    Post subject: Reply with quote

It's matching 10 and never going to ext 1000.
When it hits the 10 match, it plays your call cant be completed as dialed.

I'm having the same problem trying to dial ext 100.
Back to top
View user's profile Send private message
bklambdin



Joined: 11 Aug 2010
Posts: 5

PostPosted: Tue Oct 19, 2010 9:19 pm    Post subject: Reply with quote

It's matching 10 and never going to ext 1000.
When it hits the 10 match, it plays your call cant be completed as dialed.

I'm having the same problem trying to dial ext 100.
Back to top
View user's profile Send private message
bramar



Joined: 20 Nov 2009
Posts: 24

PostPosted: Wed Oct 20, 2010 7:44 am    Post subject: Console dial Reply with quote

If you want to dial from console, correct syntax is:

Code:
console dial extension@context


In your case it would be:

Code:
console dial 1000@internal
Back to top
View user's profile Send private message
bramar



Joined: 20 Nov 2009
Posts: 24

PostPosted: Wed Oct 20, 2010 7:45 am    Post subject: Dial plan problem??? Reply with quote

@bklambdin

Can you show me your dial plan???
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Asterisk Questions - beginners All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
contact us at: support@asteriskguru.com - asterisKGuru.com © all rights reserved   |   *asterisk is registered trademark of © Digium™