Ivr hungup

hello :smile:
i using trixbox and have problem with it .
iam trying use ivr and make zaptel incoming calls go to ivr but it hung up

[Apr 27 20:36:24] VERBOSE[11377] logger.c: – Starting simple switch on ‘Zap/1-1’
[Apr 27 20:36:26] VERBOSE[11377] logger.c: – Executing [s@from-zaptel:1] NoOp(“Zap/1-1”, "Entering from-zaptel with DID == ") in new stack
[Apr 27 20:36:26] VERBOSE[11377] logger.c: – Executing [s@from-zaptel:2] Ringing(“Zap/1-1”, “”) in new stack
[Apr 27 20:36:26] DEBUG[11377] chan_zap.c: Requested indication 3 on channel Zap/1-1
[Apr 27 20:36:26] VERBOSE[11377] logger.c: – Executing [s@from-zaptel:3] Set(“Zap/1-1”, “DID=s”) in new stack
[Apr 27 20:36:26] VERBOSE[11377] logger.c: – Executing [s@from-zaptel:4] NoOp(“Zap/1-1”, “DID is now s”) in new stack
[Apr 27 20:36:26] VERBOSE[11377] logger.c: – Executing [s@from-zaptel:5] GotoIf(“Zap/1-1”, “1?zapok:notzap”) in new stack
[Apr 27 20:36:26] VERBOSE[11377] logger.c: – Goto (from-zaptel,s,8)
[Apr 27 20:36:26] VERBOSE[11377] logger.c: – Executing [s@from-zaptel:8] NoOp(“Zap/1-1”, “Is a Zaptel Channel”) in new stack
[Apr 27 20:36:26] VERBOSE[11377] logger.c: – Executing [s@from-zaptel:9] Set(“Zap/1-1”, “CHAN=1-1”) in new stack
[Apr 27 20:36:26] VERBOSE[11377] logger.c: – Executing [s@from-zaptel:10] Set(“Zap/1-1”, “CHAN=1”) in new stack
[Apr 27 20:36:26] VERBOSE[11377] logger.c: – Executing [s@from-zaptel:11] Macro(“Zap/1-1”, “from-zaptel-1|s|1”) in new stack
[Apr 27 20:36:26] VERBOSE[11377] logger.c: – Executing [s@macro-from-zaptel-1:1] NoOp(“Zap/1-1”, “Entering macro-from-zaptel-1 with DID = s”) in new stack
[Apr 27 20:36:26] VERBOSE[11377] logger.c: – Executing [s@macro-from-zaptel-1:2] Gosub(“Zap/1-1”, “app-blacklist-check|s|1”) in new stack
[Apr 27 20:36:26] VERBOSE[11377] logger.c: == Channel ‘Zap/1-1’ jumping out of macro ‘from-zaptel-1’
[Apr 27 20:36:26] VERBOSE[11377] logger.c: – Executing [s@app-blacklist-check:1] LookupBlacklist(“Zap/1-1”, “”) in new stack
[Apr 27 20:36:26] DEBUG[11377] db.c: Unable to find key ‘026708679’ in family ‘blacklist’
[Apr 27 20:36:26] DEBUG[11377] db.c: Unable to find key ‘’ in family ‘blacklist’
[Apr 27 20:36:26] VERBOSE[11377] logger.c: – Executing [s@app-blacklist-check:2] GotoIf(“Zap/1-1”, “0?blacklisted”) in new stack
[Apr 27 20:36:26] VERBOSE[11377] logger.c: – Executing [s@app-blacklist-check:3] Return(“Zap/1-1”, “”) in new stack
[Apr 27 20:36:26] VERBOSE[11377] logger.c: – Executing [s@macro-from-zaptel-1:3] Set(“Zap/1-1”, “FROM_DID=s”) in new stack
[Apr 27 20:36:26] VERBOSE[11377] logger.c: – Executing [s@macro-from-zaptel-1:4] Goto(“Zap/1-1”, “ivr-2|s|1”) in new stack
[Apr 27 20:36:26] VERBOSE[11377] logger.c: – Goto (ivr-2,s,1)
[Apr 27 20:36:26] VERBOSE[11377] logger.c: – Executing [s@ivr-2:1] Set(“Zap/1-1”, “LOOPCOUNT=0”) in new stack
[Apr 27 20:36:26] VERBOSE[11377] logger.c: – Executing [s@ivr-2:2] Set(“Zap/1-1”, “__DIR-CONTEXT=”) in new stack
[Apr 27 20:36:26] VERBOSE[11377] logger.c: – Executing [s@ivr-2:3] Answer(“Zap/1-1”, “”) in new stack
[Apr 27 20:36:26] DEBUG[11377] chan_zap.c: Took Zap/1-1 off hook
[Apr 27 20:36:26] DEBUG[11377] chan_zap.c: Enabled echo cancellation on channel 1
[Apr 27 20:36:26] DEBUG[11377] chan_zap.c: Engaged echo training on channel 1
[Apr 27 20:36:26] VERBOSE[11377] logger.c: – Executing [s@ivr-2:4] Wait(“Zap/1-1”, “1”) in new stack
[Apr 27 20:36:27] VERBOSE[11377] logger.c: – Executing [s@ivr-2:5] Set(“Zap/1-1”, “TIMEOUT(digit)=3”) in new stack
[Apr 27 20:36:27] VERBOSE[11377] logger.c: – Digit timeout set to 3
[Apr 27 20:36:27] VERBOSE[11377] logger.c: – Executing [s@ivr-2:6] Set(“Zap/1-1”, “TIMEOUT(response)=10”) in new stack
[Apr 27 20:36:27] VERBOSE[11377] logger.c: – Response timeout set to 10
[Apr 27 20:36:27] VERBOSE[11377] logger.c: – Executing [s@ivr-2:7] BackGround(“Zap/1-1”, “custom/amr”) in new stack
[Apr 27 20:36:27] VERBOSE[11377] logger.c: – Playing ‘custom/amr’ (language ‘en’)
[Apr 27 20:36:38] VERBOSE[11377] logger.c: == Auto fallthrough, channel ‘Zap/1-1’ status is ‘UNKNOWN’
[Apr 27 20:36:38] VERBOSE[11377] logger.c: – Executing [h@ivr-2:1] Hangup(“Zap/1-1”, “”) in new stack
[Apr 27 20:36:38] VERBOSE[11377] logger.c: == Spawn extension (ivr-2, h, 1) exited non-zero on ‘Zap/1-1’
[Apr 27 20:36:38] DEBUG[11377] cdr_addon_mysql.c: cdr_mysql: inserting a CDR record.
[Apr 27 20:36:38] DEBUG[11377] cdr_addon_mysql.c: cdr_mysql: SQL command as follows: INSERT INTO cdr (calldate,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,accountcode) VALUES (‘2007-04-27 20:36:26’,‘026708679’,‘026708679’,‘s’,‘ivr-2’, ‘Zap/1-1’,’’,‘Hangup’,’’,12,12,‘ANSWERED’,3,’’)
[Apr 27 20:36:38] DEBUG[11377] chan_zap.c: Hangup: channel: 1 index = 0, normal = 20, callwait = -1, thirdcall = -1
[Apr 27 20:36:38] DEBUG[11377] chan_zap.c: disabled echo cancellation on channel 1
[Apr 27 20:36:38] DEBUG[11377] chan_zap.c: Set option TDD MODE, value: OFF(0) on Zap/1-1
[Apr 27 20:36:38] DEBUG[11377] chan_zap.c: Updated conferencing on 1, with 0 conference users
[Apr 27 20:36:38] VERBOSE[11377] logger.c: – Hungup ‘Zap/1-1’
[Apr 27 20:36:58] DEBUG[10934] chan_iax2.c: Raw Hangup 10.0.0.5:4569, src=3, dst=22648
[Apr 27 20:37:02] DEBUG[11371] manager.c: Manager received command ‘Command’
[Apr 27 20:37:02] DEBUG[11371] manager.c: Manager received command ‘Command’
[Apr 27 20:37:02] DEBUG[11371] manager.c: Manager received command ‘Command’
[Apr 27 20:37:56] DEBUG[11388] manager.c: Manager received command ‘login’
[Apr 27 20:37:56] VERBOSE[11388] logger.c: == Parsing ‘/etc/asterisk/manager.conf’: [Apr 27 20:37:56] VERBOSE[11388] logger.c: Found
[Apr 27 20:37:56] VERBOSE[11388] logger.c: == Parsing ‘/etc/asterisk/manager_custom.conf’: [Apr 27 20:37:56] VERBOSE[11388] logger.c: Found
[Apr 27 20:37:56] VERBOSE[11388] logger.c: == Manager ‘admin’ logged on from 127.0.0.1
[Apr 27 20:37:56] VERBOSE[11388] logger.c: == Manager ‘admin’ logged off from 127.0.0.1
[Apr 27 20:37:58] DEBUG[10935] chan_iax2.c: Raw Hangup 10.0.0.5:4569, src=1, dst=22653
[Apr 27 20:38:04] DEBUG[11389] manager.c: Manager received command ‘login’
[Apr 27 20:38:04] VERBOSE[11389] logger.c: == Parsing ‘/etc/asterisk/manager.conf’: [Apr 27 20:38:04] VERBOSE[11389] logger.c: Found
[Apr 27 20:38:04] VERBOSE[11389] logger.c: == Parsing ‘/etc/asterisk/manager_custom.conf’: [Apr 27 20:38:04] VERBOSE[11389] logger.c: Found
[Apr 27 20:38:04] VERBOSE[11389] logger.c: == Manager ‘admin’ logged on from 127.0.0.1
[Apr 27 20:38:04] VERBOSE[11389] logger.c: == Manager ‘admin’ logged off from 127.0.0.1
[Apr 27 20:38:04] VERBOSE[11389] logger.c: == Manager ‘admin’ logged off from 127.0.0.1

[ivr-2]
include => ivr-2-custom
include => ext-findmefollow
include => ext-local
exten => h,1,Hangup
exten => s,1,Set(LOOPCOUNT=0)
exten => s,n,Set(__DIR-CONTEXT=)
exten => s,n,Answer
exten => s,n,Wait(1)
exten => s,n(begin),Set(TIMEOUT(digit)=3)
exten => s,n,Set(TIMEOUT(response)=10)
exten => s,n,Background(custom/amr)
exten => hang,1,Playback(vm-goodbye)
exten => hang,n,Hangup
exten => 1,1,Goto(ext-recordings,recording-2,1)
exten => 2,1,Goto(ext-queues,12,1)
exten => 4,1,Goto(callback,1,1)
exten => i,1,Playback(invalid)
exten => i,n,Goto(loop,1)
exten => t,1,Goto(loop,1)
exten => loop,1,Set(LOOPCOUNT=$[${LOOPCOUNT} + 1])
exten => loop,n,GotoIf($[${LOOPCOUNT} > 2]?hang,1)
exten => loop,n,Goto(ivr-2,s,begin)
exten => fax,1,Goto(ext-fax,in_fax,1)

; end of [ivr-2]

help please

Regards ,

I have similar problem as yours; try adding a background() function in ivr just after the wait(1) and press an extn as soon as you hear the annoucement. the call should flow as expected; if the ivr ends before u dial anything the call just hangs up. But this not a workaround just a diag method. I m still finding answer for this behaviour. pls let me kow if u find any.

hi,
i am a newbie with asterisk, only know theoretical stuff. i need to build an ivr system and want to use asterisk for that. can smeone help me go about it?
thanks

building ivr is simple; the working principle of asterisk with respect to calls is that it uses context in which the calls land or are generated. contexts can be viewed as groups with specific permissions; for example, if a call lands in “from-sip-external” context it encounters a hangup unless calls from unathenticated peers are allowed (because of the code in this context). just read asterisk handbook for dialplan functions, do a little r&d and u will b thru.