Hi list,<br><br>I am running TDM11b + Asterisk-1.4.9 + Zaptel-1.4.4 + Libpri-1.4.1 on CentOS 5. <br><br>I am having trouble to make my simple IVR extension work, here is relevant config:<br><br>zapata.conf<br>----<br>context=incoming
<br>signalling=fxs_ks<br>channel => 4<br><br>context=internal<br>signalling=fxo_ks<br>channel => 1<br>-----<br><br>extensions.conf:<br>----<br><br>[office]<br>exten => s,1,Dial(Zap/1,30)<br><br>[home]<br>exten => s,1,Macro(stdexten,106,SIP/ht286,t)
<br><br><br><br>[incoming]<br><br>; incoming calls from the FXO port are directed to this context from zapata.conf<br><br>exten => s,1,Answer<br>exten => s,1,Background(enter-ext-of-person)<br>exten => s,n,WaitExten(20)
<br>exten => 100,1,Dial(Zap/1,30)<br>exten => 106,1,Macro(stdexten,106,SIP/ht286)<br>exten => 101,1,Macro(stdexten,101,SIP/vli)<br>exten => 107,1,AGI(math.agi)<br>exten => 108,1,Playback(12)<br>;exten => s,1,GotoIfTime(9:00-16:30|mon-fri|*|*?office,s,1)
<br>;exten => s,n,GotoIfTime(17:00-9:00|*|*|*?home,s,1)<br><br>When I call my PSTN number, I can hear the "enter-ext-of-person" message, but once I press any one of the extension number, Asterisk sometime execute the relevant extension application, sometime not at all. If I comment the IVR extensions config and simply use :
<br><br>exten => s,1,GotoIfTime(9:00-16:30|mon-fri|*|*?office,s,1)<br>
exten => s,n,GotoIfTime(17:00-9:00|*|*|*?home,s,1)<br>
<br>I can always get call<br><br><br>My console message: ( Asterisk did not execute relevant extension in the last two call after I entered the extension digit)<br> <br>----------------------------<br> -- Starting simple switch on 'Zap/4-1'
<br>[Aug 2 13:46:38] NOTICE[4429]: chan_zap.c:6373 ss_thread: Got event 18 (Ring Begin)...<br>[Aug 2 13:46:40] NOTICE[4429]: chan_zap.c:6373 ss_thread: Got event 2 (Ring/Answered)...<br> -- Executing [s@incoming:1] Answer("Zap/4-1", "") in new stack
<br> -- Executing [s@incoming:2] BackGround("Zap/4-1", "enter-ext-of-person") in new stack<br> -- <Zap/4-1> Playing 'enter-ext-of-person' (language 'en')<br> -- Executing [
s@incoming:3] WaitExten("Zap/4-1", "20") in new stack<br> == CDR updated on Zap/4-1<br> -- Executing [101@incoming:1] Macro("Zap/4-1", "stdexten|101|SIP/vli|t") in new stack<br>
-- Executing [s@macro-stdexten:1] Dial("Zap/4-1", "SIP/vli|20") in new stack<br> -- Called vli<br> -- SIP/vli-08353298 is ringing<br> -- SIP/vli-08353298 answered Zap/4-1<br> == Spawn extension (macro-stdexten, s, 1) exited non-zero on 'Zap/4-1' in macro 'stdexten'
<br> == Spawn extension (macro-stdexten, s, 1) exited non-zero on 'Zap/4-1'<br> -- Hungup 'Zap/4-1'<br> -- Starting simple switch on 'Zap/4-1'<br>[Aug 2 13:47:32] NOTICE[4437]: chan_zap.c:6373 ss_thread: Got event 18 (Ring Begin)...
<br>[Aug 2 13:47:33] ERROR[4437]: callerid.c:564 callerid_feed: fsk_serie made mylen < 0 (-168)<br>[Aug 2 13:47:33] WARNING[4437]: chan_zap.c:6405 ss_thread: CallerID feed failed: Success<br>[Aug 2 13:47:33] WARNING[4437]: chan_zap.c:6505 ss_thread: CallerID returned with error on channel 'Zap/4-1'
<br> -- Executing [s@incoming:1] Answer("Zap/4-1", "") in new stack<br> -- Executing [s@incoming:2] BackGround("Zap/4-1", "enter-ext-of-person") in new stack<br> -- <Zap/4-1> Playing 'enter-ext-of-person' (language 'en')
<br> -- Executing [s@incoming:3] WaitExten("Zap/4-1", "20") in new stack<br> == CDR updated on Zap/4-1<br> -- Executing [100@incoming:1] Dial("Zap/4-1", "Zap/1|30") in new stack
<br> -- Called 1<br> -- Zap/1-1 is ringing<br> -- Zap/1-1 is ringing<br> -- Zap/1-1 answered Zap/4-1<br> -- Native bridging Zap/4-1 and Zap/1-1<br> -- Hungup 'Zap/1-1'<br> == Spawn extension (incoming, 100, 1) exited non-zero on 'Zap/4-1'
<br> -- Hungup 'Zap/4-1'<br> -- Starting simple switch on 'Zap/4-1'<br>[Aug 2 13:48:22] NOTICE[4444]: chan_zap.c:6373 ss_thread: Got event 18 (Ring Begin)...<br>[Aug 2 13:48:23] ERROR[4444]: callerid.c
:564 callerid_feed: fsk_serie made mylen < 0 (-9)<br>[Aug 2 13:48:23] WARNING[4444]: chan_zap.c:6405 ss_thread: CallerID feed failed: Success<br>[Aug 2 13:48:23] WARNING[4444]: chan_zap.c:6505 ss_thread: CallerID returned with error on channel 'Zap/4-1'
<br> -- Executing [s@incoming:1] Answer("Zap/4-1", "") in new stack<br> -- Executing [s@incoming:2] BackGround("Zap/4-1", "enter-ext-of-person") in new stack<br> -- <Zap/4-1> Playing 'enter-ext-of-person' (language 'en')
<br> -- Executing [s@incoming:3] WaitExten("Zap/4-1", "20") in new stack<br> == CDR updated on Zap/4-1<br> -- Executing [107@incoming:1] AGI("Zap/4-1", "math.agi") in new stack
<br> -- Launched AGI Script /var/lib/asterisk/agi-bin/math.agi<br> -- Playing 'math-game-welcome' (escape_digits=) (sample_offset 0)<br> -- Playing 'math-game-next' (escape_digits=) (sample_offset 0)
<br> -- <Zap/4-1> Playing 'digits/17' (language 'en')<br> -- Playing 'add' (escape_digits=) (sample_offset 0)<br> -- <Zap/4-1> Playing 'digits/15' (language 'en')
<br> -- <Zap/4-1> Playing 'equals' (language 'en')<br> -- Playing 'math-game-wrong' (escape_digits=) (sample_offset 0)<br> -- Playing 'math-game-your-answer' (escape_digits=) (sample_offset 0)
<br> -- <Zap/4-1> Playing 'digits/0' (language 'en')<br> -- Playing 'math-game-right-answer' (escape_digits=) (sample_offset 0)<br> -- <Zap/4-1> Playing 'digits/30' (language 'en')
<br> -- <Zap/4-1> Playing 'digits/2' (language 'en')<br> -- Playing 'math-game-next' (escape_digits=) (sample_offset 0)<br> -- <Zap/4-1> Playing 'digits/11' (language 'en')
<br> -- Playing 'minus' (escape_digits=) (sample_offset 0)<br> -- <Zap/4-1> Playing 'digits/2' (language 'en')<br> -- <Zap/4-1> Playing 'equals' (language 'en')
<br> -- Playing 'math-game-wrong' (escape_digits=) (sample_offset 0)<br> -- Playing 'math-game-your-answer' (escape_digits=) (sample_offset 0)<br> -- <Zap/4-1> Playing 'digits/1' (language 'en')
<br> -- Playing 'math-game-right-answer' (escape_digits=) (sample_offset 0)<br> -- <Zap/4-1> Playing 'digits/9' (language 'en')<br> -- Playing 'math-game-timesup' (escape_digits=) (sample_offset 0)
<br> -- <Zap/4-1> Playing 'digits/0' (language 'en')<br> -- Playing 'math-game-right' (escape_digits=) (sample_offset 0)<br> -- <Zap/4-1> Playing 'digits/2' (language 'en')
<br> -- Playing 'math-game-pct' (escape_digits=) (sample_offset 0)<br> -- <Zap/4-1> Playing 'digits/0' (language 'en')<br> -- AGI Script math.agi completed, returning 0<br> == Auto fallthrough, channel 'Zap/4-1' status is 'UNKNOWN'
<br> -- Hungup 'Zap/4-1'<br> -- Starting simple switch on 'Zap/4-1'<br>[Aug 2 13:49:56] NOTICE[4451]: chan_zap.c:6373 ss_thread: Got event 18 (Ring Begin)...<br>[Aug 2 13:49:56] ERROR[4451]: callerid.c
:564 callerid_feed: fsk_serie made mylen < 0 (-8)<br>[Aug 2 13:49:56] WARNING[4451]: chan_zap.c:6405 ss_thread: CallerID feed failed: Success<br>[Aug 2 13:49:56] WARNING[4451]: chan_zap.c:6505 ss_thread: CallerID returned with error on channel 'Zap/4-1'
<br> -- Executing [s@incoming:1] Answer("Zap/4-1", "") in new stack<br> -- Executing [s@incoming:2] BackGround("Zap/4-1", "enter-ext-of-person") in new stack<br> -- <Zap/4-1> Playing 'enter-ext-of-person' (language 'en')
<br> -- Executing [s@incoming:3] WaitExten("Zap/4-1", "20") in new stack<br> == CDR updated on Zap/4-1<br> -- Executing [101@incoming:1] Macro("Zap/4-1", "stdexten|101|SIP/vli|t") in new stack
<br> -- Executing [s@macro-stdexten:1] Dial("Zap/4-1", "SIP/vli|20") in new stack<br> -- Called vli<br> -- SIP/vli-08353638 is ringing<br> -- Nobody picked up in 20000 ms<br> -- Executing [
s@macro-stdexten:2] Goto("Zap/4-1", "s-NOANSWER|1") in new stack<br> -- Goto (macro-stdexten,s-NOANSWER,1)<br> -- Executing [s-NOANSWER@macro-stdexten:1] VoiceMail("Zap/4-1", "101|u") in new stack
<br> -- <Zap/4-1> Playing 'vm-theperson' (language 'en')<br> -- <Zap/4-1> Playing 'digits/1' (language 'en')<br> -- <Zap/4-1> Playing 'digits/0' (language 'en')
<br> -- <Zap/4-1> Playing 'digits/1' (language 'en')<br> -- <Zap/4-1> Playing 'vm-isunavail' (language 'en')<br> -- <Zap/4-1> Playing 'vm-intro' (language 'en')
<br> -- <Zap/4-1> Playing 'beep' (language 'en')<br> -- Recording the message<br> -- x=0, open writing: /var/spool/asterisk/voicemail/default/101/tmp/9ZgqbM format: wav49, 0x8352580<br> -- Recording automatically stopped after a silence of 6 seconds
<br> -- <Zap/4-1> Playing 'auth-thankyou' (language 'en')<br> -- Recording was 7 seconds long but needs to be at least 10 - abandoning<br> -- Executing [s-NOANSWER@macro-stdexten:2] Goto("Zap/4-1", "default|s|1") in new stack
<br> -- Goto (default,s,1)<br> == Channel 'Zap/4-1' jumping out of macro 'stdexten'<br>[Aug 2 13:50:46] WARNING[4451]: pbx.c:2450 __ast_pbx_run: Channel 'Zap/4-1' sent into invalid extension 's' in context 'default', but no invalid handler
<br> -- Hungup 'Zap/4-1'<br> -- Starting simple switch on 'Zap/4-1'<br>[Aug 2 13:51:21] NOTICE[4458]: chan_zap.c:6373 ss_thread: Got event 18 (Ring Begin)...<br>[Aug 2 13:51:22] ERROR[4458]: callerid.c
:564 callerid_feed: fsk_serie made mylen < 0 (-7)<br>[Aug 2 13:51:22] WARNING[4458]: chan_zap.c:6405 ss_thread: CallerID feed failed: Success<br>[Aug 2 13:51:22] WARNING[4458]: chan_zap.c:6505 ss_thread: CallerID returned with error on channel 'Zap/4-1'
<br> -- Executing [s@incoming:1] Answer("Zap/4-1", "") in new stack<br> -- Executing [s@incoming:2] BackGround("Zap/4-1", "enter-ext-of-person") in new stack<br> -- <Zap/4-1> Playing 'enter-ext-of-person' (language 'en')
<br> -- Executing [s@incoming:3] WaitExten("Zap/4-1", "20") in new stack<br> == CDR updated on Zap/4-1<br> -- Executing [100@incoming:1] Dial("Zap/4-1", "Zap/1|30") in new stack
<br> -- Called 1<br> -- Zap/1-1 is ringing<br> -- Zap/1-1 is ringing<br> -- Zap/1-1 answered Zap/4-1<br> -- Native bridging Zap/4-1 and Zap/1-1<br> -- Hungup 'Zap/1-1'<br> == Spawn extension (incoming, 100, 1) exited non-zero on 'Zap/4-1'
<br> -- Hungup 'Zap/4-1'<br> -- Starting simple switch on 'Zap/4-1'<br>[Aug 2 13:52:05] NOTICE[4465]: chan_zap.c:6373 ss_thread: Got event 18 (Ring Begin)...<br>[Aug 2 13:52:05] ERROR[4465]: callerid.c
:564 callerid_feed: fsk_serie made mylen < 0 (-4)<br>[Aug 2 13:52:05] WARNING[4465]: chan_zap.c:6405 ss_thread: CallerID feed failed: Success<br>[Aug 2 13:52:05] WARNING[4465]: chan_zap.c:6505 ss_thread: CallerID returned with error on channel 'Zap/4-1'
<br> -- Executing [s@incoming:1] Answer("Zap/4-1", "") in new stack<br> -- Executing [s@incoming:2] BackGround("Zap/4-1", "enter-ext-of-person") in new stack<br> -- <Zap/4-1> Playing 'enter-ext-of-person' (language 'en')
<br> -- Executing [s@incoming:3] WaitExten("Zap/4-1", "20") in new stack<br>[Aug 2 13:52:29] WARNING[4465]: pbx.c:5609 pbx_builtin_waitexten: Timeout but no rule 't' in context 'incoming'
<br> == Spawn extension (incoming, s, 3) exited non-zero on 'Zap/4-1'<br> -- Hungup 'Zap/4-1'<br> -- Starting simple switch on 'Zap/4-1'<br>[Aug 2 13:54:29] NOTICE[4472]: chan_zap.c:6373 ss_thread: Got event 18 (Ring Begin)...
<br>[Aug 2 13:54:30] ERROR[4472]: callerid.c:564 callerid_feed: fsk_serie made mylen < 0 (-18)<br>[Aug 2 13:54:30] WARNING[4472]: chan_zap.c:6405 ss_thread: CallerID feed failed: Success<br>[Aug 2 13:54:30] WARNING[4472]: chan_zap.c:6505 ss_thread: CallerID returned with error on channel 'Zap/4-1'
<br> -- Executing [s@incoming:1] Answer("Zap/4-1", "") in new stack<br> -- Executing [s@incoming:2] BackGround("Zap/4-1", "enter-ext-of-person") in new stack<br> -- <Zap/4-1> Playing 'enter-ext-of-person' (language 'en')
<br> -- Executing [s@incoming:3] WaitExten("Zap/4-1", "20") in new stack<br>[Aug 2 13:54:53] WARNING[4472]: pbx.c:5609 pbx_builtin_waitexten: Timeout but no rule 't' in context 'incoming'
<br> == Spawn extension (incoming, s, 3) exited non-zero on 'Zap/4-1'<br> -- Hungup 'Zap/4-1<br><br><br>--------------------------------<br>