While editing extensions.conf withvi some glitch in vi had blown out my extentions.conf file. Totally mysterious. So I had to rewrite extentions.conf by hand.
I am getting the error of " Call from ‘200’ to extension ‘8500’ rejected because extension not found. I will post sip.conf and extensions.conf plus the error log.
SIP.conf
[general]
context=default ; Default context for incoming calls
bindport=5060 ; UDP Port to bind to (SIP standard port is 5060)
bindaddr=0.0.0.0 ; IP address to bind to (0.0.0.0 binds to all)
srvlookup=yes ; Enable DNS SRV lookups on outbound calls
[199]
; Turn off silence suppression in X-Lite (“Transmit Silence”=YES)!
; Note that Xlite sends NAT keep-alive packets, so qualify=yes is not needed
type=friend
username=199
secret=199
context=internal
regexten=199 ; When they register, create extension 1234
callerid=“guest” <199>
host=dynamic ; This device needs to register
nat=yes ; X-Lite is behind a NAT router
qualify=yes
canreinvite=no ; Typically set to NO if behind NAT
disallow=all
allow=gsm ; GSM consumes far less bandwidth than ulaw
allow=ulaw
mailbox=199@default ; Subscribe to status of multiple mailboxes
[200]
; Turn off silence suppression in X-Lite (“Transmit Silence”=YES)!
; Note that Xlite sends NAT keep-alive packets, so qualify=yes is not needed
type=friend
username=200
secret=200
context=internal
regexten=200 ; When they register, create extension 1234
callerid=“JoeMonday” <200>
host=dynamic ; This device needs to register
nat=yes ; X-Lite is behind a NAT router
qualify=yes
canreinvite=no ; Typically set to NO if behind NAT
disallow=all
allow=gsm ; GSM consumes far less bandwidth than ulaw
allow=ulaw
mailbox=200@default ; Subscribe to status of multiple mailboxes
extentions.conf
[general]
static=yes
writeprotect=no
clearglobalvars=no
[globals]
CONSOLE=Console/dsp ; Console interface for demo
IAXINFO=guest ; IAXtel username/password
TRUNK=Zap/G2 ; Trunk interface
TRUNKMSD=1
;--------------------------Custom Config for this asterisk box-------------------------
[default-custom]
;–Inbound dahdi trunk from--------
;–xxxxx CLEC provider. This provider info is not listed in this message body–
exten => s,1,Answer()
exten => s,2,Background(outgoing)
exten => s,3,DigitTimeout(5)
exten => s,4,ResponceTimeout(10)
exten => 1,1,Goto(internal,200,1)
exten => 2,1,Goto(internal,201,1)
exten => 3,1,Goto(conferance,1,1)
exten => i,1,Answer()
exten => i,2,Playback(pbx-invalid)
exten => i,3,Goto(s,2)
[record-outgoing-msg]
exten => 8501,1,Playback(recorder-record-after-beep)
exten => 8501,2,Record(/var/lib/asterisk/sounds/outgoing:wav,3,30)
exten => 8501,3,Playback(record-menu) ;Press 1 to Accept, Press 2 to review, Press 3 to re-record
exten => 8501,4,WaitExten()
exten => 2,1,Playback(outgoing)
exten => 2,n,Goto(8501,3)
exten => 3,1,Record(/var/lib/asterisk/sounds/outgoing:wav,3,30)
exten => 3,n,Playback(outgoing)
exten => 3,n,Goto(8501,3)
exten => 1,1,Playback(goodbye)
exten => 1,n,Hangup()
[dahditrunk]
exten => _NXXNXXXXXX,1,Dial(dahdi/1/${EXTEN})
exten => _1NXXNXXXXXX,1,Dial(dahdi/1/${EXTEN})
exten => _1800XXXXXXX,1,Dial(dahdi/1/${EXTEN})
exten => _1888XXXXXXX,1,Dial(dahdi/1/${EXTEN})
exten => 0,1,Dial(dahdi/1/${EXTEN})
exten => 411,1,Dial(dahdi/1/${EXTEN})
exten => 411,n,Hangup()
exten => 911,1,Dial(dahdi/1/${EXTEN})
exten => 911,n,Hangup()
[voicemailmain]
exten => 8500,1,Answer()
exten => 8500,n,VoicemailMain
exten => 8500,n,Hangup
[internal]
include => default-custom
include => voicemailmain
include => record-outgoing-msg
include => dahditrunk
exten => 0607,1,Dial(SIP/${EXTEN},20,Tt)
exten => 0607,n,VoiceMail(u200@default)
exten => 0607,n,VoiceMail(b200@default)
exten => 0607,n,Hangup()
exten => 199,1,Dial(SIP/${EXTEN},20,Tt)
exten => 199,2,VoiceMail(u200@default)
exten => 199,102,VoiceMail(b200@default)
exten => 199,103,Hangup()
exten => 200,1,Dial(SIP/${EXTEN},20,Tt)
exten => 200,2,VoiceMail(u200@default)
exten => 200,102,VoiceMail(b200@default)
exten => 200,103,Hangup()
/var/log/asterisk/message
[Feb 14 17:49:50] WARNING[3673] chan_mgcp.c: Unable to get our IP address, MGCP disabled
[Feb 14 17:49:50] WARNING[3670] chan_sip.c: Format for authentication entry is user[:secret]@realm at line 683
[Feb 14 17:49:55] NOTICE[3670] chan_sip.c: Call from ‘200’ to extension ‘8500’ rejected because extension not found.
[Feb 14 17:49:58] NOTICE[3670] chan_sip.c: Call from ‘200’ to extension ‘199’ rejected because extension not found.
[Feb 14 18:04:29] NOTICE[3827] cdr.c: CDR simple logging enabled.
[Feb 14 18:04:29] NOTICE[3827] indications.c: Removed default indication country ‘us’
[Feb 14 18:04:29] NOTICE[3827] pbx_ael.c: Starting AEL load process.
[Feb 14 18:04:29] NOTICE[3827] pbx_ael.c: AEL load process: calculated config file name ‘/etc/asterisk/extensions.ael’.
[Feb 14 18:04:29] NOTICE[3827] pbx_ael.c: AEL load process: parsed config file name ‘/etc/asterisk/extensions.ael’.
[Feb 14 18:04:29] NOTICE[3827] pbx_ael.c: AEL load process: checked config file name ‘/etc/asterisk/extensions.ael’.
[Feb 14 18:04:29] NOTICE[3827] pbx_ael.c: AEL load process: compiled config file name ‘/etc/asterisk/extensions.ael’.
[Feb 14 18:04:29] NOTICE[3827] pbx_ael.c: AEL load process: merged config file name ‘/etc/asterisk/extensions.ael’.
[Feb 14 18:04:29] NOTICE[3827] pbx_ael.c: AEL load process: verified config file name ‘/etc/asterisk/extensions.ael’.
[Feb 14 18:04:29] NOTICE[3827] app_playback.c: Reloading say.conf
[Feb 14 18:04:29] WARNING[3827] pbx_dundi.c: Unable to look up host ‘ApturaPBX’
[Feb 14 18:04:29] WARNING[3827] config.c: Unterminated comment detected beginning on line 628
[Feb 14 18:04:29] WARNING[3673] chan_mgcp.c: Unable to get our IP address, MGCP disabled
[Feb 14 18:04:29] WARNING[3827] pbx.c: Context ‘default-custom’ tries to include nonexistent context ‘voicemailman’
[Feb 14 18:04:29] WARNING[3827] chan_dahdi.c: Ignoring switchtype
[Feb 14 18:04:29] WARNING[3827] chan_dahdi.c: Ignoring signalling
[Feb 14 18:04:29] WARNING[3827] chan_dahdi.c: Ignoring rxwink
[Feb 14 18:04:29] WARNING[3670] chan_sip.c: Format for authentication entry is user[:secret]@realm at line 683
[Feb 14 18:04:32] NOTICE[3670] chan_sip.c: Call from ‘200’ to extension ‘8500’ rejected because extension not found.
[Feb 14 18:45:20] NOTICE[3670] chan_sip.c: Call from ‘200’ to extension ‘8501’ rejected because extension not found.
As you can see, extention 8500 is rejected from 200 as well as 8501 is rejcted from 200
CLI> sip show peers
Name/username Host Dyn Nat ACL Port Status
201/201 192.168.10.20 D 5060 OK (17 ms)
200/200 192.168.10.50 D N 5060 OK (52 ms)
CLI>module show
res_musiconhold.so Music On Hold Resource 0
res_agi.so Asterisk Gateway Interface (AGI) 0
res_crypto.so Cryptographic Digital Signatures 0
res_speech.so Generic Speech Recognition API 0
res_indications.so Indications Resource 0
res_monitor.so Call Monitoring Resource 0
res_adsi.so ADSI Resource 0
res_features.so Call Features Resource 0
res_smdi.so Simplified Message Desk Interface (SMDI) 0
app_url.so Send URL Applications 0
app_controlplayback.so Control Playback Application 0
app_externalivr.so External IVR Interface Application 0
app_channelredirect.so Channel Redirect 0
app_ices.so Encode and Stream via icecast and ices 0
func_cut.so Cut out information from a string 0
res_clioriginate.so Call origination from the CLI 0
app_dahdiscan.so Scan Zap channels application 0
func_timeout.so Channel timeout dialplan functions 0
app_mixmonitor.so Mixed Audio Monitoring Application 0
chan_phone.so Linux Telephony API Support 0
chan_agent.so Agent Proxy Channel 0
app_directory.so Extension Directory 0
app_dahdiras.so DAHDI RAS Application 0
format_h264.so Raw H.264 data 0
pbx_ael.so Asterisk Extension Language Compiler 0
codec_g726.so ITU G.726-32kbps G726 Transcoder 0
app_verbose.so Send verbose output 0
app_setcdruserfield.so CDR user field apps 0
app_dahdibarge.so Barge in on channel application 0
app_readfile.so Stores output of file into a variable 0
app_hasnewvoicemail.so Indicator for whether a voice mailbox ha 0
app_dial.so Dialing Application 0
app_macro.so Extension Macros 0
codec_a_mu.so A-law and Mulaw direct Coder/Decoder 0
pbx_loopback.so Loopback Switch 0
codec_adpcm.so Adaptive Differential PCM Coder/Decoder 0
app_flash.so Flash channel application 0
app_disa.so DISA (Direct Inward System Access) Appli 0
cdr_manager.so Asterisk Manager Interface CDR Backend 0
app_playback.so Sound File Playback Application 0
app_alarmreceiver.so Alarm Receiver for Asterisk 0
app_zapateller.so Block Telemarketers with Special Informa 0
codec_ulaw.so mu-Law Coder/Decoder 0
app_queue.so True Call Queueing 0
format_pcm.so Raw/Sun uLaw/ALaw 8KHz (PCM,PCMA,AU), G. 0
format_jpeg.so JPEG (Joint Picture Experts Group) Image 0
pbx_dundi.so Distributed Universal Number Discovery ( 0
func_groupcount.so Channel group dialplan functions 0
func_db.so Database (astdb) related dialplan functi 0
pbx_realtime.so Realtime Switch 0
func_math.so Mathematical dialplan function 0
app_morsecode.so Morse code 0
codec_gsm.so GSM Coder/Decoder 0
app_db.so Database Access Functions 0
func_rand.so Random number dialplan function 0
app_directed_pickup.so Directed Call Pickup Application 0
func_global.so Global variable dialplan functions 0
app_dumpchan.so Dump Info About The Calling Channel 0
format_sln.so Raw Signed Linear Audio support (SLN) 0
app_chanspy.so Listen to the audio of an active channel 0
func_logic.so Logical dialplan functions 0
app_adsiprog.so Asterisk ADSI Programming Application 0
format_gsm.so Raw GSM data 0
func_strings.so String handling dialplan functions 0
pbx_spool.so Outgoing Spool Support 0
cdr_custom.so Customizable Comma Separated Values CDR 0
chan_local.so Local Proxy Channel (Note: used internal 0
app_image.so Image Transmission Application 0
app_lookupcidname.so Look up CallerID Name from local databas 0
app_settransfercapability.so Set ISDN Transfer Capability 0
app_waitforsilence.so Wait For Silence 0
chan_sip.so Session Initiation Protocol (SIP) 0
chan_skinny.so Skinny Client Control Protocol (Skinny) 0
func_channel.so Channel information dialplan function 0
func_enum.so ENUM related dialplan functions 0
app_talkdetect.so Playback with Talk Detection 0
format_ilbc.so Raw iLBC data 0
app_exec.so Executes dialplan applications 0
format_vox.so Dialogic VOX (ADPCM) File Format 0
app_page.so Page Multiple Phones 0
app_sayunixtime.so Say time 0
func_base64.so base64 encode/decode dialplan functions 0
format_g729.so Raw G729 data 0
app_voicemail.so Comedian Mail (Voicemail System) 0
func_language.so Channel language dialplan function 0
app_authenticate.so Authentication Application 0
app_softhangup.so Hangs up the requested channel 0
app_transfer.so Transfer 0
chan_mgcp.so Media Gateway Control Protocol (MGCP) 0
func_md5.so MD5 digest dialplan functions 0
cdr_csv.so Comma Separated Values CDR Backend 0
app_followme.so Find-Me/Follow-Me Application 0
func_realtime.so Read/Write values from a RealTime reposi 0
app_meetme.so MeetMe conference bridge 0
codec_dahdi.so Generic DAHDI Transcoder Codec Translato 0
app_forkcdr.so Fork The CDR into 2 separate entities 0
app_privacy.so Require phone number to be entered, if n 0
app_dictate.so Virtual Dictation Machine 0
app_userevent.so Custom User Event Application 0
codec_alaw.so A-law Coder/Decoder 0
app_festival.so Simple Festival Interface 0
app_getcpeid.so Get ADSI CPE ID 0
app_waitforring.so Waits until first ring after time 0
res_convert.so File format conversion CLI command 0
app_speech_utils.so Dialplan Speech Applications 0
app_milliwatt.so Digital Milliwatt (mu-law) Test Applicat 0
app_read.so Read Variable Application 0
pbx_config.so Text Extension Configuration 0
format_h263.so Raw H.263 data 0
app_mp3.so Silly MP3 Application 0
chan_dahdi.so DAHDI Telephony 0
chan_oss.so OSS Console Channel Driver 0
func_callerid.so Caller ID related dialplan function 0
app_parkandannounce.so Call Parking and Announce Application 0
codec_lpc10.so LPC10 2.4kbps Coder/Decoder 0
app_record.so Trivial Record Application 0
chan_iax2.so Inter Asterisk eXchange (Ver 2) 0
func_moh.so Music-on-hold dialplan function 0
app_stack.so Stack Routines 0
format_g726.so Raw G.726 (16/24/32/40kbps) data 0
func_uri.so URI encode/decode dialplan functions 0
format_g723.so G.723.1 Simple Timestamp File Format 0
app_amd.so Answering Machine Detection Application 0
app_nbscat.so Silly NBS Stream Application 0
app_lookupblacklist.so Look up Caller*ID name/number from black 0
app_while.so While Loops and Conditional Execution 0
app_test.so Interface Test Application 0
app_setcallerid.so Set CallerID Application 0
format_wav.so Microsoft WAV format (8000Hz Signed Line 0
app_chanisavail.so Check channel availability 0
app_realtime.so Realtime Data Lookup/Rewrite 0
format_wav_gsm.so Microsoft WAV format (Proprietary GSM) 0
app_cdr.so Tell Asterisk to not maintain a CDR for 0
app_sms.so SMS/PSTN handler 0
func_env.so Environment/filesystem dialplan function 0
app_echo.so Simple Echo Application 0
app_sendtext.so Send Text Applications 0
func_sha1.so SHA-1 computation dialplan function 0
app_system.so Generic System() application 0
func_cdr.so CDR dialplan function 0
app_senddtmf.so Send DTMF digits Application 0
app_random.so Random goto 0
142 modules loaded
SO NOW im at a cross roads. What else could be the problem? I am only testing for the internal calls phone to phone and phone to vm at this point. Not concerned with external dahdi or sip accounts.
Thanks