Calling from outside receive the following at the console

Executing Wait(“Zap/4-1”,"") in new stack
Executing Answer(“Zap/4-1”, “”) in new stack
Executing Set(“Zap/4-1”,"", TIMEOUT(digit=5") in new stack
Digit timeout set to 5
Executing Set(“Zap/4-1”,"", TIMEOUT(digit=10") in new stack
Response timeout set to 10
Executing Background(“Zap/4-1”,"", “demo-congrats”) in new stack
Playing ‘demo congrats’ (language ‘en’)
Executing Background(“Zap/4-1”,"", “demo-instruct”) in new stack
Playing ‘demo congrats’ (language ‘en’)
==Spawn extension (default,s,6) exited non-zero on ‘Zap/4-1’
–Hungup ‘Zap/4-1’

I do not want to be given the answers just some direction to the right answer would be greatly appreciated.

Chu

Well it would help if you explained what the problem is…

I see no problem here. except that obviously you want something different to happen

Ian

If I call from outside the analog phone does not ring. However, while looking at the console screen I received the posted log from the call.

  1. The phone does not ring

  2. If I do not pickup the phone the demo message plays to caller on the other end.

  3. Something is happening but I cannot put my finger on it.

  4. I want the phone to ring, I want to dial an outside number once the telephone (pstn) is plugged into Zap/4 and I want to be able to dial the analog phone to ring from using the dial command at the console.

Thanks,

Could you post the relevant part of your extensions.conf?

[general]
static=yes
writeprotect=no
autofallthrough=yes
clearglobalvars=no
priorityjumping=no
;
[globals]
CONSOLE=Console/dsp
CONSOLE=Zap/1
CONSOLE=Phone/phone0
IAXINFO=guest
;IAXINFO=myuser:mypass
TRUNK=Zap/g2
;
[demo]
;
exten => s,1,Wait,1
exten => s,n,Answer
exten => s,n,Set(TIMEOUT(digit)=5)
exten => s,n,Set(TIMEOUT(response)=10)
exten => s,n(restart),BackGround(demo-congrats)
exten => s,n(instruct),BackGround(demo-instruct)
exten => s,n,WaitExten
exten => 2,1,BackGround(demo-moreinfo)
exten => 2,n,Goto(s,instruct)
exten => 3,1,Set(LANGUAGE()=en)
exten => 3,n,Goto(s,restart)
exten => 1000,1,Goto(default,s,1)
;
exten => 1234,1,Playback(transfer,skip)
exten => 1234,n,Macro(stdexten,1234,${CONSOLE})
exten => 1235,1,Voicemail(u1234)
exten => 1236,1,Dial(Console/dsp)
exten => 1236,n,Voicemail(u1234)
exten => #,1,Playback(demo-thanks)
exten => #,n,Hangup
exten => t,1,Goto(#,1)
exten => i,1,Playback(invalid)
;
; Create an extension, 500, for dialing the
; Asterisk demo.
;
exten => 500,1,Playback(demo-abouttotry)
exten => 500,n,Dial(IAX2/guest@misery.digium.com/s@default )
exten => 500,n,Playback(demo-nogo)
exten => 500,n,Goto(s,6)
;
; Create an extension, 600, for evaluating echo latency.
;
exten => 600,1,Playback(demo-echotest)
exten => 600,n,Echo
exten => 600,n,Playback(demo-echodone)
exten => 600,n,Goto(s,6)
;
; Give voicemail at extension 8500
;
exten => 8500,1,VoicemailMain
exten => 8500,n,Goto(s,6)
;
[incoming]
exten => s,1,Answer()
exten => s,2,Background(1237)
exten => 1237,1,Dial(Zap/1,15,r)
exten => 1237,2,Playback(vm-nobodyavail)
exten => 1237,3,Hangup()
exten => 1237,1238,Playback(tt-allbusy)
exten => 1237,1238,Hangup()
exten => 1237,1,Dial(Zap/4/12126996099)
;
[default]

Hmm… My guess is you want

[incoming]

exten => s,1,Answer()

to execute instead of

[demo]

exten => s,1,Wait,1

Am I correct?

Ok now we can see more , It seems you have the context demo set in the zapata.conf and not incoming.

Ian

Made the changes as suggested and listed the log info afterwards from the console. This is asterisk 1.2.15 and the type the dial 1237 and receive the following:

No such extension ‘1237’ in context local

[general]
static=yes
writeprotect=no
autofallthrough=yes
clearglobalvars=no
priorityjumping=no
;
[globals]
CONSOLE=Console/dsp
CONSOLE=Zap/1
CONSOLE=Phone/phone0
IAXINFO=guest
;IAXINFO=myuser:mypass
TRUNK=Zap/g2
;
[incoming]
;
exten => s,n,Answer()
exten => s,n,Set(TIMEOUT(digit)=5)
exten => s,n,Set(TIMEOUT(response)=10)
exten => s,n(restart),BackGround(demo-congrats)
exten => s,n(instruct),BackGround(demo-instruct)
exten => s,n,WaitExten
exten => 2,1,BackGround(demo-moreinfo)
exten => 2,n,Goto(s,instruct)
exten => 3,1,Set(LANGUAGE()=en)
exten => 3,n,Goto(s,restart)
exten => 1000,1,Goto(default,s,1)
;
exten => 1234,1,Playback(transfer,skip)
exten => 1234,n,Macro(stdexten,1234,${CONSOLE})
exten => 1235,1,Voicemail(u1234)
exten => 1236,1,Dial(Console/dsp)
exten => 1236,n,Voicemail(u1234)
exten => #,1,Playback(demo-thanks)
exten => #,n,Hangup
exten => t,1,Goto(#,1)
exten => i,1,Playback(invalid)
;
exten => s,1,Answer()
exten => s,2,Background(1237)
exten => 1237,1,Dial(Zap/1,15,r)
exten => 1237,2,Playback(vm-nobodyavail)
exten => 1237,3,Hangup()
exten => 1237,1238,Playback(tt-allbusy)
exten => 1237,1238,Hangup()
exten => 1237,1,Dial(Zap/4/12126996099)
; Create an extension, 500, for dialing the
; Asterisk demo.
;
exten => 500,1,Playback(demo-abouttotry)
exten => 500,n,Dial(IAX2/guest@misery.digium.com/s@default )
exten => 500,n,Playback(demo-nogo)
exten => 500,n,Goto(s,6)
;
; Create an extension, 600, for evaluating echo latency.
;
exten => 600,1,Playback(demo-echotest)
exten => 600,n,Echo
exten => 600,n,Playback(demo-echodone)
exten => 600,n,Goto(s,6)
;
; Give voicemail at extension 8500
;
exten => 8500,1,VoicemailMain
exten => 8500,n,Goto(s,6)
;
[default]

LOG INFO

Sep 22 08:24:23 WARNING[3330] config.c: parse error: No category context for line 1 of /etc/asterisk/extensions.conf
Sep 22 08:24:23 WARNING[3330] pbx.c: Requested contexts didn’t get merged
Sep 22 08:31:49 VERBOSE[3365] logger.c: == Parsing ‘/etc/asterisk/extensions.conf’: Sep 22 08:31:49 VERBOSE[3365] logger.c: == Parsing ‘/etc/asterisk/extensions.conf’: Found
Sep 22 08:31:49 VERBOSE[3365] logger.c: == Setting global variable ‘CONSOLE’ to 'Console/dsp’
Sep 22 08:31:49 VERBOSE[3365] logger.c: == Setting global variable ‘CONSOLE’ to 'Zap/1’
Sep 22 08:31:49 VERBOSE[3365] logger.c: == Setting global variable ‘CONSOLE’ to 'Phone/phone0’
Sep 22 08:31:49 VERBOSE[3365] logger.c: == Setting global variable ‘IAXINFO’ to 'guest’
Sep 22 08:31:49 VERBOSE[3365] logger.c: == Setting global variable ‘TRUNK’ to 'Zap/g2’
Sep 22 08:31:49 VERBOSE[3365] logger.c: – Registered extension context 'incoming’
Sep 22 08:31:49 WARNING[3365] pbx_config.c: Can’t use ‘next’ priority on the first entry!
Sep 22 08:31:49 VERBOSE[3365] logger.c: – Added extension ‘s’ priority -2 to incoming
Sep 22 08:31:49 WARNING[3365] pbx_config.c: Can’t use ‘next’ priority on the first entry!
Sep 22 08:31:49 WARNING[3365] pbx.c: Unable to register extension ‘s’, priority -2 in ‘incoming’, already in use
Sep 22 08:31:49 WARNING[3365] pbx_config.c: Unable to register extension at line 18
Sep 22 08:31:49 WARNING[3365] pbx_config.c: Can’t use ‘next’ priority on the first entry!
Sep 22 08:31:49 WARNING[3365] pbx.c: Unable to register extension ‘s’, priority -2 in ‘incoming’, already in use
Sep 22 08:31:49 WARNING[3365] pbx_config.c: Unable to register extension at line 19
Sep 22 08:31:49 WARNING[3365] pbx_config.c: Can’t use ‘next’ priority on the first entry!
Sep 22 08:31:49 WARNING[3365] pbx.c: Unable to register extension ‘s’, priority -2 in ‘incoming’, already in use
Sep 22 08:31:49 WARNING[3365] pbx_config.c: Unable to register extension at line 20
Sep 22 08:31:49 WARNING[3365] pbx_config.c: Can’t use ‘next’ priority on the first entry!
Sep 22 08:31:49 WARNING[3365] pbx.c: Unable to register extension ‘s’, priority -2 in ‘incoming’, already in use
Sep 22 08:31:49 WARNING[3365] pbx_config.c: Unable to register extension at line 21
Sep 22 08:31:49 WARNING[3365] pbx_config.c: Can’t use ‘next’ priority on the first entry!
Sep 22 08:31:49 WARNING[3365] pbx.c: Unable to register extension ‘s’, priority -2 in ‘incoming’, already in use
Sep 22 08:31:49 WARNING[3365] pbx_config.c: Unable to register extension at line 22
Sep 22 08:31:49 VERBOSE[3365] logger.c: – Added extension ‘2’ priority 1 to incoming
Sep 22 08:31:49 VERBOSE[3365] logger.c: – Added extension ‘2’ priority 2 to incoming
Sep 22 08:31:49 VERBOSE[3365] logger.c: – Added extension ‘3’ priority 1 to incoming
Sep 22 08:31:49 VERBOSE[3365] logger.c: – Added extension ‘3’ priority 2 to incoming
Sep 22 08:31:49 VERBOSE[3365] logger.c: – Added extension ‘1000’ priority 1 to incoming
Sep 22 08:31:49 VERBOSE[3365] logger.c: – Added extension ‘1234’ priority 1 to incoming
Sep 22 08:31:49 VERBOSE[3365] logger.c: – Added extension ‘1234’ priority 2 to incoming
Sep 22 08:31:49 VERBOSE[3365] logger.c: – Added extension ‘1235’ priority 1 to incoming
Sep 22 08:31:49 VERBOSE[3365] logger.c: – Added extension ‘1236’ priority 1 to incoming
Sep 22 08:31:49 VERBOSE[3365] logger.c: – Added extension ‘1236’ priority 2 to incoming
Sep 22 08:31:49 VERBOSE[3365] logger.c: – Added extension ‘#’ priority 1 to incoming
Sep 22 08:31:49 VERBOSE[3365] logger.c: – Added extension ‘#’ priority 2 to incoming
Sep 22 08:31:49 VERBOSE[3365] logger.c: – Added extension ‘t’ priority 1 to incoming
Sep 22 08:31:49 VERBOSE[3365] logger.c: – Added extension ‘i’ priority 1 to incoming
Sep 22 08:31:49 VERBOSE[3365] logger.c: – Added extension ‘s’ priority 1 to incoming
Sep 22 08:31:49 VERBOSE[3365] logger.c: – Added extension ‘s’ priority 2 to incoming
Sep 22 08:31:49 VERBOSE[3365] logger.c: – Added extension ‘1237’ priority 1 to incoming
Sep 22 08:31:49 VERBOSE[3365] logger.c: – Added extension ‘1237’ priority 2 to incoming
Sep 22 08:31:49 VERBOSE[3365] logger.c: – Added extension ‘1237’ priority 3 to incoming
Sep 22 08:31:49 VERBOSE[3365] logger.c: – Added extension ‘1237’ priority 1238 to incoming
Sep 22 08:31:49 WARNING[3365] pbx.c: Unable to register extension ‘1237’, priority 1238 in ‘incoming’, already in use
Sep 22 08:31:49 WARNING[3365] pbx_config.c: Unable to register extension at line 45
Sep 22 08:31:49 WARNING[3365] pbx.c: Unable to register extension ‘1237’, priority 1 in ‘incoming’, already in use
Sep 22 08:31:49 WARNING[3365] pbx_config.c: Unable to register extension at line 46
Sep 22 08:31:49 VERBOSE[3365] logger.c: – Added extension ‘500’ priority 1 to incoming
Sep 22 08:31:49 VERBOSE[3365] logger.c: – Added extension ‘500’ priority 2 to incoming
Sep 22 08:31:49 VERBOSE[3365] logger.c: – Added extension ‘500’ priority 3 to incoming
Sep 22 08:31:49 VERBOSE[3365] logger.c: – Added extension ‘500’ priority 4 to incoming
Sep 22 08:31:49 VERBOSE[3365] logger.c: – Added extension ‘600’ priority 1 to incoming
Sep 22 08:31:49 VERBOSE[3365] logger.c: – Added extension ‘600’ priority 2 to incoming
Sep 22 08:31:49 VERBOSE[3365] logger.c: – Added extension ‘600’ priority 3 to incoming
Sep 22 08:31:49 VERBOSE[3365] logger.c: – Added extension ‘600’ priority 4 to incoming
Sep 22 08:31:49 VERBOSE[3365] logger.c: – Added extension ‘8500’ priority 1 to incoming
Sep 22 08:31:49 VERBOSE[3365] logger.c: – Added extension ‘8500’ priority 2 to incoming
Sep 22 08:31:49 VERBOSE[3365] logger.c: – Registered extension context 'default’
Sep 22 08:32:20 VERBOSE[3366] logger.c: – Starting simple switch on 'Zap/1-1’
Sep 22 08:32:24 DEBUG[3366] chan_zap.c: DTMF digit: 1 on Zap/1-1
Sep 22 08:32:24 DEBUG[3366] chan_zap.c: Hangup: channel: 1 index = 0, normal = 23, callwait = -1, thirdcall = -1
Sep 22 08:32:24 DEBUG[3366] chan_zap.c: disabled echo cancellation on channel 1
Sep 22 08:32:24 DEBUG[3366] chan_zap.c: Set option TDD MODE, value: OFF(0) on Zap/1-1
Sep 22 08:32:24 DEBUG[3366] chan_zap.c: Updated conferencing on 1, with 0 conference users
Sep 22 08:32:24 VERBOSE[3366] logger.c: – Hungup 'Zap/1-1’
Sep 22 08:32:27 VERBOSE[3369] logger.c: – Starting simple switch on 'Zap/1-1’
Sep 22 08:32:33 DEBUG[3369] chan_zap.c: Exception on 23, channel 1
Sep 22 08:32:33 DEBUG[3369] chan_zap.c: Got event On hook(1) on channel 1 (index 0)
Sep 22 08:32:33 DEBUG[3369] chan_zap.c: disabled echo cancellation on channel 1
Sep 22 08:32:33 DEBUG[3369] chan_zap.c: waitfordigit returned < 0…
Sep 22 08:32:33 DEBUG[3369] chan_zap.c: Hangup: channel: 1 index = 0, normal = 23, callwait = -1, thirdcall = -1
Sep 22 08:32:33 DEBUG[3369] chan_zap.c: disabled echo cancellation on channel 1
Sep 22 08:32:33 DEBUG[3369] chan_zap.c: Set option TDD MODE, value: OFF(0) on Zap/1-1
Sep 22 08:32:33 DEBUG[3369] chan_zap.c: Updated conferencing on 1, with 0 conference users
Sep 22 08:32:33 VERBOSE[3369] logger.c: – Hungup 'Zap/1-1’
Sep 22 08:32:37 VERBOSE[3372] logger.c: – Starting simple switch on 'Zap/1-1’
Sep 22 08:32:40 DEBUG[3372] chan_zap.c: Exception on 23, channel 1
Sep 22 08:32:40 DEBUG[3372] chan_zap.c: Got event On hook(1) on channel 1 (index 0)
Sep 22 08:32:40 DEBUG[3372] chan_zap.c: disabled echo cancellation on channel 1
Sep 22 08:32:40 DEBUG[3372] chan_zap.c: waitfordigit returned < 0…
Sep 22 08:32:40 DEBUG[3372] chan_zap.c: Hangup: channel: 1 index = 0, normal = 23, callwait = -1, thirdcall = -1
Sep 22 08:32:40 DEBUG[3372] chan_zap.c: disabled echo cancellation on channel 1
Sep 22 08:32:40 DEBUG[3372] chan_zap.c: Set option TDD MODE, value: OFF(0) on Zap/1-1
Sep 22 08:32:40 DEBUG[3372] chan_zap.c: Updated conferencing on 1, with 0 conference users
Sep 22 08:32:40 VERBOSE[3372] logger.c: – Hungup 'Zap/1-1’
Sep 22 08:33:19 VERBOSE[3378] logger.c: – Starting simple switch on 'Zap/4-1’
Sep 22 08:33:20 VERBOSE[3378] logger.c: – Executing Answer(“Zap/4-1”, “”) in new stack
Sep 22 08:33:20 DEBUG[3378] chan_zap.c: Took Zap/4-1 off hook
Sep 22 08:33:20 DEBUG[3378] chan_zap.c: Enabled echo cancellation on channel 4
Sep 22 08:33:20 DEBUG[3378] chan_zap.c: No echo training requested
Sep 22 08:33:20 VERBOSE[3378] logger.c: – Executing BackGround(“Zap/4-1”, “1237”) in new stack
Sep 22 08:33:20 WARNING[3378] file.c: File 1237 does not exist in any format
Sep 22 08:33:20 WARNING[3378] file.c: Unable to open 1237 (format unknown): No such file or directory
Sep 22 08:33:20 WARNING[3378] pbx.c: ast_streamfile failed on Zap/4-1 for 1237
Sep 22 08:33:20 VERBOSE[3378] logger.c: == Auto fallthrough, channel ‘Zap/4-1’ status is 'UNKNOWN’
Sep 22 08:33:20 DEBUG[3378] pbx.c: Function result is '“Chu,Katsuodo” <2129292200>'
Sep 22 08:33:20 DEBUG[3378] pbx.c: Function result is '2129292200’
Sep 22 08:33:20 DEBUG[3378] pbx.c: Function result is 's’
Sep 22 08:33:20 DEBUG[3378] pbx.c: Function result is 'incoming’
Sep 22 08:33:20 DEBUG[3378] pbx.c: Function result is 'Zap/4-1’
Sep 22 08:33:20 DEBUG[3378] pbx.c: Function result is '(null)'
Sep 22 08:33:20 DEBUG[3378] pbx.c: Function result is 'BackGround’
Sep 22 08:33:20 DEBUG[3378] pbx.c: Function result is '1237’
Sep 22 08:33:20 DEBUG[3378] pbx.c: Function result is '2007-09-22 08:33:20’
Sep 22 08:33:20 DEBUG[3378] pbx.c: Function result is '2007-09-22 08:33:20’
Sep 22 08:33:20 DEBUG[3378] pbx.c: Function result is '2007-09-22 08:33:20’
Sep 22 08:33:20 DEBUG[3378] pbx.c: Function result is '0’
Sep 22 08:33:20 DEBUG[3378] pbx.c: Function result is '0’
Sep 22 08:33:20 DEBUG[3378] pbx.c: Function result is 'ANSWERED’
Sep 22 08:33:20 DEBUG[3378] pbx.c: Function result is 'DOCUMENTATION’
Sep 22 08:33:20 DEBUG[3378] pbx.c: Function result is '(null)'
Sep 22 08:33:20 DEBUG[3378] pbx.c: Function result is '1190464399.3’
Sep 22 08:33:20 DEBUG[3378] pbx.c: Function result is '(null)'
Sep 22 08:33:20 DEBUG[3378] chan_zap.c: Hangup: channel: 4 index = 0, normal = 24, callwait = -1, thirdcall = -1
Sep 22 08:33:20 DEBUG[3378] chan_zap.c: disabled echo cancellation on channel 4
Sep 22 08:33:20 DEBUG[3378] chan_zap.c: Set option TDD MODE, value: OFF(0) on Zap/4-1
Sep 22 08:33:20 DEBUG[3378] chan_zap.c: Updated conferencing on 4, with 0 conference users
Sep 22 08:33:20 VERBOSE[3378] logger.c: – Hungup 'Zap/4-1’
Sep 22 08:35:09 VERBOSE[3365] logger.c: Executing last minute cleanups
Sep 22 08:35:09 VERBOSE[3365] logger.c: == Destroying musiconhold processes
Sep 22 08:35:09 DEBUG[3365] res_musiconhold.c: killing 3335!
Sep 22 08:35:10 DEBUG[3365] res_musiconhold.c: mpg123 pid 3335 and child died after 0 bytes read

Perhaps you could explain this

[quote]incoming]
exten => s,1,Answer()
exten => s,2,Background(1237)
exten => 1237,1,Dial(Zap/1,15,r)
exten => 1237,2,Playback(vm-nobodyavail)
exten => 1237,3,Hangup()
exten => 1237,1238,Playback(tt-allbusy)
exten => 1237,1238,Hangup()
exten => 1237,1,Dial(Zap/4/12126996099) [/quote]

?

After beginning to explain line by line I noticed the following:

1st line:

under [incoming] context:
exten=>s,1,Answer()

Here: The first priority is to answer the phone once it rings. Now, is:

exten=>s,1,Answer() equivalent to exten=>1237,1,Answer()


2nd line:

exten=>s,2,Background(1237)

Here: the second priority after the first one is to activate Background(). I have listed here Background(1237). Asterisk did not design a record sound 1237 so this is not going to work.

Now there are many thing not clear from what I want/need to do here. I want to be able to dial an extension from the console so the analog phone plugged into port 1 on a tdm400p card will ring. Second, I need to have the analog dial a outside cell number once the pstn connection is plugged into port 4.

Note: I am going to use an ATA in the future but for now I want/need to understand the basics without an ATA and this involves understanding how to have contexts, applications and priorities work in sync.

Just from these two lines and reconsideration needs to take place here. moving in the right direction correct?

OK basicly I wanted you to look at this and see that it is not going to work

what you have is

[quote]exten => s,1,Answer()
exten => s,2,Background(1237)[/quote]

This will answer your line and then play a nonexistant file and then… Well proberly hangup, but fail anyway

[quote]exten => 1237,1,Dial(Zap/1,15,r)
exten => 1237,2,Playback(vm-nobodyavail)
exten => 1237,3,Hangup()[/quote]

Well if 1237 was dialed it would call the fxs port Zap/1 for 15 seconds then hangup

[quote]exten => 1237,1238,Playback(tt-allbusy)
exten => 1237,1238,Hangup()[/quote]

Well what can I say, this will do nothing.

This will either its self fail on a reload or cause the other priority 1 to fail

“show dialplan incoming” will give you an idea of which has loaded.

Ian

You are/were correct the first two lines will do nothing. I realized most of lines underneath this context will not work the way I wish. I created another extensions.conf including outbound trunking, internal context, global context and 911. I will turn on ethereal, test the new conf, dial 1237 from console, look at log, dial an outside number and post here for others to learn.

Muchos Gracias Maestro Ianplain

You do not need ethereal. you jsut need to look at the cli output and simple diagnostic command and logic. armed with these you should be able to see whats happening and why.

personaly I would use a couple of REAL PHONES be they softphones or hardphones/ATAs .

What ZAP hardware is in the server?

Ian

Thanks,

There is a real analog phone connected to port 4 of a TDM400P card.
I am looking to attach an ATA from mediatrix or audiocodes.
I will update this ticket today after testing.

Gracias,

Katsuodo

Maestro,

This is my latest extensions.conf:

[general]

static=yes

writeprotect=no

autofallthrough=yes

clearglobalvars=no

priorityjumping=no

;

[globals]

CONSOLE=Console/dsp

CONSOLE=Zap/1

CONSOLE=Phone/phone0

OUTBOUNDTRUNK=Zap/4

;

[default]

exten => 1237,1,Answer()

exten => 1237,2,Dial(Zap/1,15,r)

exten => 1237,3,Playback(vm-nobodyavail)

exten => 1237,4,Hangup()

;

[incoming]

exten => s,n,Answer()

exten => s,n,Set(TIMEOUT(digit)=5)

exten => s,n,Set(TIMEOUT(response)=10)

exten => s,n(restart),BackGround(demo-congrats)

exten => s,n(instruct),BackGround(demo-instruct)

exten => s,n,WaitExten

exten => 2,1,BackGround(demo-moreinfo)

exten => 2,n,Goto(s,instruct)

exten => 3,1,Set(LANGUAGE()=en)

exten => 3,n,Goto(s,restart)

exten => 1000,1,Goto(default,s,1)

;

exten => 1234,1,Playback(transfer,skip)

exten => 1234,n,Macro(stdexten,1234,${CONSOLE})

exten => 1235,1,Voicemail(u1234)

exten => 1236,1,Dial(Console/dsp)

exten => 1236,n,Voicemail(u1234)

exten => #,1,Playback(demo-thanks)

exten => #,n,Hangup

exten => t,1,Goto(#,1)

exten => i,1,Playback(invalid)

;

[internal]

include => OUTBOUND-LOCAL

;

[outbound-local]

exten => _1NXXXXXX,1,Dial(${OUTBOUNDTRUNK}/${EXTEN:1})

exten => _1NXXXXXX,2,Congestion()

exten => 911,1,Dial(${OUTBOUNDTRUNK}/911)

A couple of noticeable issues:

I was able to dial at the console and get the attached analog phone to ring internally. Now, the telephone connection is not direct. I have a device that allows me to plug in two telephones on one line. Next, I dial either 911 or an outside line and I get the statements below. At the very what you will read is what happens when I pickup an incoming call on the other phone.

This says that I am receiving incoming calls but I do not hear anything once I pickup.

[Sep 24 17:40:04] NOTICE[5886] cdr.c: CDR simple logging enabled.
[Sep 24 17:40:04] NOTICE[5886] loader.c: 154 modules will be loaded.
[Sep 24 17:40:04] WARNING[5886] res_config_pgsql.c: Postgresql RealTime: No database socket found, using ‘/tmp/pgsql.sock’ as default.
[Sep 24 17:40:04] ERROR[5886] res_config_pgsql.c: Postgresql RealTime: Failed to connect database server asterisk on 127.0.0.1. Check debug for more info.
[Sep 24 17:40:04] WARNING[5886] res_config_pgsql.c: Postgresql RealTime: Couldn’t establish connection. Check debug.
[Sep 24 17:40:04] NOTICE[5886] config.c: Registered Config Engine pgsql
[Sep 24 17:40:04] NOTICE[5886] config.c: Registered Config Engine odbc
[Sep 24 17:40:04] NOTICE[5886] res_odbc.c: Adding ENV var: INFORMIXSERVER=my_special_database
[Sep 24 17:40:04] NOTICE[5886] res_odbc.c: Adding ENV var: INFORMIXDIR=/opt/informix
[Sep 24 17:40:04] NOTICE[5886] res_odbc.c: Connecting asterisk
[Sep 24 17:40:04] WARNING[5886] res_odbc.c: res_odbc: Error SQLConnect=-1 errno=0 [unixODBC][Driver Manager]Data source name not found, and no default driver specified
[Sep 24 17:40:04] WARNING[5886] res_odbc.c: Failed to connect to asterisk
[Sep 24 17:40:04] NOTICE[5886] res_odbc.c: Registered ODBC class ‘asterisk’ dsn->[asterisk]
[Sep 24 17:40:04] NOTICE[5886] res_odbc.c: res_odbc loaded.
[Sep 24 17:40:04] WARNING[5886] res_smdi.c: No SMDI interfaces are available to listen on, not starting SDMI listener.
[Sep 24 17:40:04] NOTICE[5886] pbx_ael.c: Starting AEL load process.
[Sep 24 17:40:04] NOTICE[5886] pbx_ael.c: AEL load process: calculated config file name ‘/etc/asterisk/extensions.ael’.
[Sep 24 17:40:04] WARNING[5886] ael.y: ==== File: /etc/asterisk/extensions.ael, Line 112, Cols: 34-34: Warning! The empty context ael-dundi-e164-canonical will be IGNORED!
[Sep 24 17:40:04] WARNING[5886] ael.y: ==== File: /etc/asterisk/extensions.ael, Line 120, Cols: 34-34: Warning! The empty context ael-dundi-e164-customers will be IGNORED!
[Sep 24 17:40:04] WARNING[5886] ael.y: ==== File: /etc/asterisk/extensions.ael, Line 128, Cols: 33-33: Warning! The empty context ael-dundi-e164-via-pstn will be IGNORED!
[Sep 24 17:40:04] NOTICE[5886] pbx_ael.c: AEL load process: parsed config file name ‘/etc/asterisk/extensions.ael’.
[Sep 24 17:40:04] WARNING[5886] pbx_ael.c: Warning: file /etc/asterisk/extensions.ael, line 141-145: The included context ‘ael-dundi-e164-canonical’ cannot be found.
[Sep 24 17:40:04] WARNING[5886] pbx_ael.c: Warning: file /etc/asterisk/extensions.ael, line 141-145: The included context ‘ael-dundi-e164-customers’ cannot be found.
[Sep 24 17:40:04] WARNING[5886] pbx_ael.c: Warning: file /etc/asterisk/extensions.ael, line 141-145: The included context ‘ael-dundi-e164-via-pstn’ cannot be found.
[Sep 24 17:40:04] WARNING[5886] pbx_ael.c: Warning: file /etc/asterisk/extensions.ael, line 276-283: The included context ‘ael-parkedcalls’ cannot be found.
[Sep 24 17:40:04] NOTICE[5886] pbx_ael.c: AEL load process: checked config file name ‘/etc/asterisk/extensions.ael’.
[Sep 24 17:40:04] NOTICE[5886] pbx_ael.c: AEL load process: compiled config file name ‘/etc/asterisk/extensions.ael’.
[Sep 24 17:40:04] NOTICE[5886] pbx_ael.c: AEL load process: merged config file name ‘/etc/asterisk/extensions.ael’.
[Sep 24 17:40:04] WARNING[5886] pbx.c: Context ‘ael-local’ tries includes nonexistent context ‘ael-parkedcalls’
[Sep 24 17:40:04] WARNING[5886] pbx.c: Context ‘ael-dundi-e164-local’ tries includes nonexistent context ‘ael-dundi-e164-canonical’
[Sep 24 17:40:04] WARNING[5886] pbx.c: Context ‘ael-dundi-e164-local’ tries includes nonexistent context ‘ael-dundi-e164-customers’
[Sep 24 17:40:04] WARNING[5886] pbx.c: Context ‘ael-dundi-e164-local’ tries includes nonexistent context ‘ael-dundi-e164-via-pstn’
[Sep 24 17:40:04] NOTICE[5886] pbx_ael.c: AEL load process: verified config file name ‘/etc/asterisk/extensions.ael’.
[Sep 24 17:40:20] WARNING[5916] chan_zap.c: zt hook failed: Device or resource busy
[Sep 24 17:40:39] WARNING[5924] pbx.c: Channel ‘Zap/4-1’ sent into invalid extension ‘s’ in context ‘default’, but no invalid handler
[Sep 24 17:40:48] NOTICE[5926] chan_zap.c: Got event 18 (Ring Begin)…
[Sep 24 17:40:50] NOTICE[5926] chan_zap.c: Got event 2 (Ring/Answered)…
[Sep 24 17:40:50] WARNING[5926] pbx.c: Channel ‘Zap/4-1’ sent into invalid extension ‘s’ in context ‘default’, but no invalid handler
[Sep 24 17:41:53] WARNING[5928] pbx.c: Channel ‘Zap/4-1’ sent into invalid extension ‘s’ in context ‘default’, but no invalid handler
[Sep 24 17:42:01] NOTICE[5930] chan_zap.c: Got event 18 (Ring Begin)…
[Sep 24 17:42:04] NOTICE[5930] chan_zap.c: Got event 2 (Ring/Answered)…
[Sep 24 17:42:04] WARNING[5930] pbx.c: Channel ‘Zap/4-1’ sent into invalid extension ‘s’ in context ‘default’, but no invalid handler
[Sep 24 17:42:16] WARNING[5932] chan_zap.c: CallerID returned with error on channel ‘Zap/4-1’
[Sep 24 17:42:16] WARNING[5932] pbx.c: Channel ‘Zap/4-1’ sent into invalid extension ‘s’ in context ‘default’, but no invalid handler

What gives?