IVR does not continue after call ends

I have created an ivr in extensions.conf whenever a call is establish we connect to an agent whenever agent cut or hang the call the IVR also ends but i want to play another sound or ivr for agent rating from user i have tried many times but nothing is working

; outside user dails it for communication with ivr or agent

[incoming]
exten => 10020012,1,Answer
same =>n,Goto(tutorial,200,1)

[tutorial]
exten => 200,1, NoOp(AGI Custom IVR)
same => n,agi(agi://192.168.211.1:4573/customivr,${CHANNEL})
same => n,Answer()
same =>n,Goto(tutorial,111,1)

;then from my code an ivr is played and it forward it to 1000 or 1001 on the basis of user selection
; 1 or 2 when the call is establish with the agents in team after the call is cut by agent it ends and the
; ends on both the side but i want to play another ivr or sound that take input from user rating

exten => 1000,1,NoOp(Support Team)
Queue(queuename[,options[,URL[,announceoverride[,timeout[,AGI[,macro[,gosub[,rul
e[,position]]]]]]]]])
same =>n,Queue(support,120)
same =>n,Goto(tutorial,111,1)

exten =>1001,1,NoOp(Support Team1)
Queue(queuename[,options[,URL[,announceoverride[,timeout[,AGI[,macro[,gosub[,rul
e[,position]]]]]]]]])
same =>n,Queue(support1,120)

; i want to forward client to this extension after call cut by agent

exten => 111,1,Play(Demo-congrats)
same => n,2,Hangup();

To create this behaviour, I used the Dial application with the g-option, when the callee terminates the call, the caller drops back into the IVR. (F-option if you want the callee to continue in IVR when the caller terminates).

I do not use queues, so I have no idea how to implement it that way.

This information might point you to a solution for your problem.

1 Like

Thanks pay123 for your reply

;Dial(Technology/Resource&[Technology2/Resource2[&…]],[timeout,[options,[URL]]])
;i have found this synatx format for writing F extension

exten => 113,1,Dail(SIP/401 ,[20,[F(tutorial,111,1)]])

;after & Technology2/Resource is optional in above syntax
;but it is giving error no call is establish
;Iam doing any mistake

Or you can provide me any other syntax for executing extension F i will be very Thankful to you

Use Dial, rather than Dail, and do not include any square brackets (they are meta characters, dating to the days of COBOL, indicating optional elements).

It would probably be advisable to lose the space before the comma.

1 Like

Thanks David and Pay any idea how to use it with a Queue because when the agent in my Support Team which are in queue.conf file will terminate the call then i have to start my new ivr for feedback

;any idea how to use it with a Queue

exten => 1000,1,NoOp(Support Team)
Queue(queuename[,options[,URL[,announceoverride[,timeout[,AGI[,macro[,gosub[,rul
e[,position]]]]]]]]])
same =>n,Queue(support,120)

exten =>1000,1,Dial(SIP/Support Team,10,g)
Queue(queuename[,options[,URL[,announceoverride[,timeout[,AGI[,macro[,gosub[,rul
e[,position]]]]]]]]])
same =>n,Queue(support,120)
same=> n,Goto(ivr,112,1)
i have tried this but not working

https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Application_Queue

Check option c
c - Continue in the dialplan if the callee hangs up.

–Satish Barot

2 Likes

Sorry Saji, no experience with queue.

1 Like