Extention not found?

Get help with installing, upgrading and running Asterisk.

Moderators: muppetmaster, Moderator, Support

Extention not found?

Postby lorddc » Sat Apr 28, 2012 4:30 am

I keep getting the error extention not found although it is actualy in my extentsions.conf file. Here are my sip and extension.conf files... Any help is appreciated


[general]

;register picocell
[sip-trunk-pmn]
type=peer
host=192.168.2.1
allow=gsm
canreinvite=no
context=phones

;register server 2
[SRV2]
type=friend
secret=welcome
context=SRV2_incoming
host=192.168.0.81
;host=192.168.137.2
disallow=all
allow=ulaw


;register server 1
[SRV1]
type=friend
secret=welcome
context=SRV1_incoming
host=192.168.0.80
;host=192.168.137.1
disallow=all
allow=ulaw


;register 1001
[1001]
type=friend
username=1001
context=accounting_master
host=dynamic

;register 1002
[1002]
type=friend
username=1002
context=accounting_master
host=dynamic


;register 1003
[1003]
type=friend
username=1003
context=accounting_master
host=dynamic


;register 1101
[1101]
type=friend
username=1101
context=administration_master
host=dynamic


;register 1201
[1201]
type=friend
username=1201
context=engineering_master
host=dynamic

;mimic outside line
[9999]
type=friend
username=9999
context=outside
host=dynamic




[globals]

[general]
autofallthrough=yes

[default]


[voicemail]
;voicemail number
exten => 901,1,VoiceMailMain()

[picocell]
;strips first 3 digits for picocell
exten => _137.,1,set(callerid(num)=137${callerid(num)})
exten => _137.,2,dial(SIP/sip-trunk-pmn/${EXTEN:3},20,rt)

[autoattendant]
;auto attendant
;press number for * menu
exten => 5555,1,Dial(SIP/5555,0,r) ;ring for 15 seconds
exten => 5555,2,GoTo(phones,s,1); go to if phone isnt answered
exten => s,1,Background(press-1&for&accounting)
exten => s,2,Background(press-2&for&administration)
exten => s,3,Background(press-3&for&engineering)
exten => s,4,Background(press-4&for&conference&room&6&0&0)


;playback the above soundfile
exten => s,n,WaitExten(5)
; wait 5 secs for a response
exten => 1,1,Playback(digits/1)
; playback the soundfile of the digit entered
exten => 1,n,Goto(phones,1001,1)
exten => 2,1,Playback(digits/2)
exten => 2,n,Goto(phones,1101,1)
exten => 3,1,Playback(digits/3)
exten => 3,n,Goto(phones,1201,1)
exten => 4,1,Playback(digits/4)
exten => 4,n,Goto(phones,600,1)
exten => i,1,Playback(pbx-invalid)
exten => i,n,Goto(phones,234,1)
exten => t,1,Playback(vm-goodbye)
exten => t,n,Hangup()

[accounting_MASTER]

include => accounting
include => administration
include => engineering
include => remote
include => autoattendant
include => voicemail
include => picocell

[administration_MASTER]

include => accounting
include => administration
include => engineering
include => remote
include => autoattendant
include => voicemail
include => picocell

[engineering_MASTER]

include => accounting
include => administration
include => engineering
include => remote
include => autoattendant
include => voicemail
include => picocell

[accounting]

;phone numbers with voicemail inbox
exten => 1001,1,Verbose(someone is calling 1001)
exten => 1001,n,dial(SIP/1001, 30)
exten => 1001,n,voicemail(1001@default)
exten => 1001,n,hangup

exten => 1002,1,Verbose(someone is calling 1002)
exten => 1002,n,dial(SIP/1002,30)
exten => 1002,n,voicemail(1002@default)
exten => 1002,n,hangup

exten => 1003,1,Verbose(someone is calling 1003)
exten => 1003,n,dial(SIP/1003,30)
exten => 1003,n,voicemail(1003@default)
exten => 1003,n,hangup

[administration]

exten => 1101,1,Verbose(someone is calling 1101)
exten => 1101,n,dial(SIP/1101,30)
exten => 1101,n,voicemail(1101@default)
exten => 1101,n,hangup

[engineering]

exten => 1201,1,Verbose(someone is calling 1201)
exten => 1201,n,dial(SIP/1201,30)
exten => 1201,n,voicemail(1201@default)
exten => 1201,n,hangup


;IAX number

exten => 1004,1,Verbose(someone is calling 1004)
exten => 1004,n,dial(IAX2/1004,30)
exten => 1004,n,voicemail(1004@default)
exten => 1004,n,hangup

;ipaq number
exten => _4034,1,Verbose(someone is calling 4034)
exten => _4034,n,dial(SIP/4034,30)
exten => _4034,n,voicemail(4034@default)
exten => _4034,n,hangup




;conference calls
exten => 600,1,MeetMe(600,i,54321)

;room count
exten => 601,1,Playback(conf-thereare)
exten => 601,n,MeetMeCount(600)
exten => 601,n,Playback(conf-peopleinconf)

; limit the conference room to 10 participants
exten => 600,1,MeetMeCount(600,CONFCOUNT)
exten => 600,n,GotoIf($[${CONFCOUNT} <= 10]?meetme:conf_full,1)
exten => 600,n(meetme),MeetMe(600,i,54321)
exten => conf_full,1,Playback(conf-full)

;tells server where to find the extensions

[internal]

exten => _1XXX,1,Verbose(someone is calling 1001)
exten => _1XXX,n,dial(SIP/${EXTEN},30)
exten => _1XXX,n,hangup

;tells server where to find the extensions

[remote]

exten => _2XXX,1,Verbose(someone is calling 2001)
exten => _2XXX,n,dial(SIP/SRV2/${EXTEN})
exten => _2XXX,n,hangup

[SRV2_incoming]
include=> internal

[SRV1_incoming]
include=> internal
lorddc
Newsterisk
 
Posts: 12
Joined: Fri Apr 13, 2012 10:18 am

Re: Extention not found?

Postby bridges86406 » Sat Apr 28, 2012 11:45 am

It might be beneficial if you include the exact error that you are getting from Asterisk.
bridges86406
Newsterisk
 
Posts: 7
Joined: Fri Apr 13, 2012 9:56 pm

Re: Extention not found?

Postby lorddc » Sun Apr 29, 2012 10:09 am

it is an extension not found error, not at my laptop with the VMs on them at the moment so cant get exact error, i may have just spotted my mistake, context names are case sensitive arnt they?
lorddc
Newsterisk
 
Posts: 12
Joined: Fri Apr 13, 2012 10:18 am

Re: Extention not found?

Postby omid.mohajerani » Sun Apr 29, 2012 1:19 pm

yes they are
omid.mohajerani
Oldsterisk
 
Posts: 110
Joined: Tue Sep 21, 2010 9:28 am

Re: Extention not found?

Postby lorddc » Mon Apr 30, 2012 9:51 am

ok ive narrowed down my issue, i cant get any extension begining with 2 from server 2

exten => _2XXX,1,Verbose(someone is calling 2001)
exten => _2XXX,n,dial(SIP/SRV2/${EXTEN})
exten => _2XXX,n,hangup
tht is the exten config for it, is there any error that ive not noticed?
lorddc
Newsterisk
 
Posts: 12
Joined: Fri Apr 13, 2012 10:18 am

Re: Extention not found?

Postby omid.mohajerani » Mon Apr 30, 2012 1:00 pm

put your asterisk console log when you dial 2001
omid.mohajerani
Oldsterisk
 
Posts: 110
Joined: Tue Sep 21, 2010 9:28 am

Re: Extention not found?

Postby lorddc » Mon Apr 30, 2012 4:34 pm

-- Executing [2001@accounting_MASTER:2] Dial("SIP/1001-00000000", "SIP/SRV2/2001") in new stack
== Using SIP RTP CoS mark 5
-- Called SRV2/2001
[Apr 30 23:28:20] NOTICE[1143]: chan_sip.c:17901 handle_response_invite: Failed to authenticate on INVITE to '"1001" <sip:1001@192.168.0.80>;tag=as7ba45750'
-- SIP/SRV2-00000001 is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
-- Executing [2001@accounting_MASTER:3] Hangup("SIP/1001-00000000", "") in new stack
== Spawn extension (accounting_MASTER, 2001, 3) exited non-zero on 'SIP/1001-00000000'

here is the output you requested. accounting_MASTER is the context for server1 but not for 2001 on server 2, not sure if that is the problem?

Much Appreciated
lorddc
Newsterisk
 
Posts: 12
Joined: Fri Apr 13, 2012 10:18 am


Return to Asterisk Support

Who is online

Users browsing this forum: Google [Bot] and 15 guests