Asterisk Queue Call Disconnetion Issue

Hi,

I am using asterisk for calling purpose. When some one calls on our board line number, ivr plays with
dial 1 for sale, 2 for support & 3 for call and trade options

When client selects any of the option,call disconnected automatically.

I am using queue for same.[I am not facing this issue with ring group.]

How can i resolve this issue ?

Thanks,
Dipti

You need to post the relevant dialplan part here and some denug information describing Your problem for an example call (set at least core set verbose 5 in CLI).
Otherwise noone will be able to assist You.

Thanks for suggestion.But i am not able to attach log file.So i am pasting part of my log file here.

eg 999999444 is client’s number.
1150 is queue used for web call back.8000 is my inbound route

[INSERT INTO cel (eventtype,eventtime,userdeftype,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,peeraccount,uniqueid,linkedid,userfield,peer) VALUES (‘CHAN_START’,{ ts ‘2015-02-11 20:17:12’ },’’,’’,‘9999999444’,’’,’’,’’,‘8000’,‘from-pstn’,‘DAHDI/i1/9999999444-2126’,’’,’’,3,’’,’’,‘1423666032.200765’,‘1423666032.200765’,’’,’’)]

-- Accepting call from '9999999444' to '8000' on channel 0/19, span 1

-- Executing [8000@from-pstn:1] Set("DAHDI/i1/9999999444-2126", "__FROM_DID=8000") in new stack

-- Executing [8000@from-pstn:2] Gosub("DAHDI/i1/9999999444-2126", "app-blacklist-check,s,1") in new stack

-- Executing [s@app-blacklist-check:1] GotoIf("DAHDI/i1/9999999444-2126", "0?blacklisted") in new stack

-- Executing [s@app-blacklist-check:2] Set("DAHDI/i1/9999999444-2126", "CALLED_BLACKLIST=1") in new stack

-- Executing [s@app-blacklist-check:3] Return("DAHDI/i1/9999999444-2126", "") in new stack
-- Executing [8000@from-pstn:3] ExecIf("DAHDI/i1/9999999444-2126", "1 ?Set(CALLERID(name)=9999999444)") in new stack
-- Executing [8000@from-pstn:4] Set("DAHDI/i1/9999999444-2126", "__CALLINGPRES_SV=allowed") in new stack
-- Executing [8000@from-pstn:5] Set("DAHDI/i1/9999999444-2126", "CALLERPRES()=allowed_not_screened") in new stack
-- Executing [8000@from-pstn:6] Goto("DAHDI/i1/9999999444-2126", "ivr-5,s,1") in new stack
-- Goto (ivr-5,s,1)
-- Executing [s@ivr-5:1] Set("DAHDI/i1/9999999444-2126", "MSG=custom/Welcome4") in new stack
-- Executing [s@ivr-5:2] Set("DAHDI/i1/9999999444-2126", "LOOPCOUNT=0") in new stack
-- Executing [s@ivr-5:3] Set("DAHDI/i1/9999999444-2126", "__DIR-CONTEXT=") in new stack
-- Executing [s@ivr-5:4] Set("DAHDI/i1/9999999444-2126", "_IVR_CONTEXT_ivr-5=") in new stack
-- Executing [s@ivr-5:5] Set("DAHDI/i1/9999999444-2126", "_IVR_CONTEXT=ivr-5") in new stack
-- Executing [s@ivr-5:6] GotoIf("DAHDI/i1/9999999444-2126", "0?begin") in new stack
-- Executing [s@ivr-5:7] Answer("DAHDI/i1/9999999444-2126", "") in new stack
   > [INSERT INTO cel (eventtype,eventtime,userdeftype,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,peeraccount,uniqueid,linkedid,userfield,peer) VALUES ('ANSWER',{ ts '2015-02-11 20:17:12' },'','9999999444','9999999444','9999999444','','8000','s','ivr-5','DAHDI/i1/9999999444-2126','Answer','',3,'','','1423666032.200765','1423666032.200765','','')]

-- Executing [s@ivr-5:8] Wait("DAHDI/i1/9999999444-2126", "1") in new stack

-- Executing [s@ivr-5:9] Set("DAHDI/i1/9999999444-2126", "TIMEOUT(digit)=3") in new stack
-- Digit timeout set to 3.000
-- Executing [s@ivr-5:10] Set("DAHDI/i1/9999999444-2126", "TIMEOUT(response)=5") in new stack

-- Response timeout set to 5.000

-- Executing [s@ivr-5:11] Set("DAHDI/i1/9999999444-2126", "__IVR_RETVM=") in new stack

-- Executing [s@ivr-5:12] ExecIf("DAHDI/i1/9999999444-2126", "1?Background(custom/Welcome4)") in new stack

-- <DAHDI/i1/9999999444-2126> Playing 'custom/Welcome4.slin' (language 'en')

== CDR updated on DAHDI/i1/9999999444-2126
– Executing [3@ivr-5:1] Macro(“DAHDI/i1/9999999444-2126”, “blkvm-clr,”) in new stack

-- Executing [s@macro-blkvm-clr:1] Set("DAHDI/i1/9999999444-2126", "SHARED(BLKVM,)=") in new stack
-- Executing [s@macro-blkvm-clr:2] Set("DAHDI/i1/9999999444-2126", "GOSUB_RETVAL=") in new stack
-- Executing [s@macro-blkvm-clr:3] MacroExit("DAHDI/i1/9999999444-2126", "") in new stack
-- Executing [3@ivr-5:2] Set("DAHDI/i1/9999999444-2126", "__NODEST=") in new stack
-- Executing [3@ivr-5:3] Goto("DAHDI/i1/9999999444-2126", "ext-queues,604,1") in new stack
-- Goto (ext-queues,604,1)
-- Executing [604@ext-queues:1] Macro("DAHDI/i1/9999999444-2126", "user-callerid,") in new stack
-- Executing [s@macro-user-callerid:1] Set("DAHDI/i1/9999999444-2126", "AMPUSER=9999999444") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("DAHDI/i1/9999999444-2126", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("DAHDI/i1/9999999444-2126", "1?Set(REALCALLERIDNUM=9999999444)") in new stack
-- Executing [s@macro-user-callerid:4] Set("DAHDI/i1/9999999444-2126", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:5] Set("DAHDI/i1/9999999444-2126", "AMPUSERCIDNAME=") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("DAHDI/i1/9999999444-2126", "1?report") in new stack
-- Goto (macro-user-callerid,s,11)
-- Executing [s@macro-user-callerid:11] GotoIf("DAHDI/i1/9999999444-2126", "0?continue") in new stack
-- Executing [s@macro-user-callerid:12] Set("DAHDI/i1/9999999444-2126", "__TTL=64") in new stack
-- Executing [s@macro-user-callerid:13] GotoIf("DAHDI/i1/9999999444-2126", "1?continue") in new stack
-- Goto (macro-user-callerid,s,24)
-- Executing [s@macro-user-callerid:24] Set("DAHDI/i1/9999999444-2126", "CALLERID(number)=9999999444") in new stack
-- Executing [s@macro-user-callerid:25] Set("DAHDI/i1/9999999444-2126", "CALLERID(name)=9999999444") in new stack
-- Executing [s@macro-user-callerid:26] Set("DAHDI/i1/9999999444-2126", "CHANNEL(language)=en") in new stack
-- Executing [604@ext-queues:2] Answer("DAHDI/i1/9999999444-2126", "") in new stack
-- Executing [604@ext-queues:3] Macro("DAHDI/i1/9999999444-2126", "blkvm-set,reset") in new stack
-- Executing [s@macro-blkvm-set:1] ExecIf("DAHDI/i1/9999999444-2126", "1?Set(__BLKVM_CHANNEL=DAHDI/i1/9999999444-2126)") in new stack
-- Executing [s@macro-blkvm-set:2] Set("DAHDI/i1/9999999444-2126", "SHARED(BLKVM,DAHDI/i1/9999999444-2126)=TRUE") in new stack
-- Executing [s@macro-blkvm-set:3] Set("DAHDI/i1/9999999444-2126", "GOSUB_RETVAL=TRUE") in new stack
-- Executing [s@macro-blkvm-set:4] MacroExit("DAHDI/i1/9999999444-2126", "") in new stack
-- Executing [604@ext-queues:4] ExecIf("DAHDI/i1/9999999444-2126", "1?Set(_DIAL_OPTIONS=trM(auto-blkvm))") in new stack
-- Executing [604@ext-queues:5] Set("DAHDI/i1/9999999444-2126", "__NODEST=604") in new stack
-- Executing [604@ext-queues:6] Set("DAHDI/i1/9999999444-2126", "MONITOR_FILENAME=/var/spool/asterisk/monitor/q604-20150211-201727-1423666032.200765") in new stack
-- Executing [604@ext-queues:7] Set("DAHDI/i1/9999999444-2126", "__CWIGNORE=TRUE") in new stack
-- Executing [604@ext-queues:8] Queue("DAHDI/i1/9999999444-2126", "604,t,,") in new stack
   > [INSERT INTO cel (eventtype,eventtime,userdeftype,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,peeraccount,uniqueid,linkedid,userfield,peer) VALUES ('ANSWER',{ ts '2015-02-11 20:17:27' },'','9999999444','9999999444','9999999444','','8000','604','ext-queues','DAHDI/i1/9999999444-2126','Answer','',3,'','','1423666032.200765','1423666032.200765','','')]
   > [INSERT INTO cel (eventtype,eventtime,userdeftype,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,peeraccount,uniqueid,linkedid,userfield,peer) VALUES ('APP_START',{ ts '2015-02-11 20:17:27' },'','9999999444','9999999444','9999999444','','8000','604','ext-queues','DAHDI/i1/9999999444-2126','Queue','604,t,,',3,'','','1423666032.200765','1423666032.200765','','')]


-- Started music on hold, class 'default', on DAHDI/i1/9999999444-2126

– Executing [s@macro-user-callerid:1] Set(“Local/303@from-queue-0001570d;2”, “AMPUSER=9999999444”) in new stack

-- Executing [s@macro-user-callerid:2] GotoIf("Local/303@from-queue-0001570d;2", "1?report") in new stack


-- Goto (macro-user-callerid,s,11)


-- Executing [s@macro-user-callerid:11] GotoIf("Local/303@from-queue-0001570d;2", "0?continue") in new stack


-- Executing [s@macro-user-callerid:12] Set("Local/303@from-queue-0001570d;2", "__TTL=63") in new stack


-- Executing [s@macro-user-callerid:13] GotoIf("Local/303@from-queue-0001570d;2", "1?continue") in new stack


-- Goto (macro-user-callerid,s,24)


-- Executing [s@macro-user-callerid:24] Set("Local/303@from-queue-0001570d;2", "CALLERID(number)=9999999444") in new stack


-- Executing [s@macro-user-callerid:25] Set("Local/303@from-queue-0001570d;2", "CALLERID(name)=9999999444") in new stack


-- Executing [s@macro-user-callerid:26] Set("Local/303@from-queue-0001570d;2", "CHANNEL(language)=en") in new stack


-- Executing [s@macro-exten-vm:2] Set("Local/303@from-queue-0001570d;2", "RingGroupMethod=none") in new stack


-- Executing [s@macro-exten-vm:3] Set("Local/303@from-queue-0001570d;2", "__EXTTOCALL=303") in new stack


-- Executing [s@macro-exten-vm:4] Set("Local/303@from-queue-0001570d;2", "__PICKUPMARK=303") in new stack


-- Executing [s@macro-exten-vm:5] Set("Local/303@from-queue-0001570d;2", "RT=""") in new stack


-- Executing [s@macro-exten-vm:6] Macro("Local/303@from-queue-0001570d;2", "record-enable,303,IN") in new stack


-- Executing [s@macro-record-enable:1] GotoIf("Local/303@from-queue-0001570d;2", "1?check") in new stack


-- Goto (macro-record-enable,s,4)


-- Executing [s@macro-record-enable:4] ExecIf("Local/303@from-queue-0001570d;2", "0?MacroExit()") in new stack


-- Executing [s@macro-record-enable:5] GotoIf("Local/303@from-queue-0001570d;2", "0?Group:OUT") in new stack


-- Goto (macro-record-enable,s,14)


-- Executing [s@macro-record-enable:14] GotoIf("Local/303@from-queue-0001570d;2", "1?IN") in new stack


-- Goto (macro-record-enable,s,18)


-- Executing [s@macro-record-enable:18] ExecIf("Local/303@from-queue-0001570d;2", "0?MacroExit()") in new stack


-- Executing [s@macro-record-enable:19] Set("Local/303@from-queue-0001570d;2", "CALLFILENAME=20150211-201727-1423666047.200767") in new stack


-- Executing [s@macro-record-enable:20] MixMonitor("Local/303@from-queue-0001570d;2", "20150211-201727-1423666047.200767.wav,,") in new stack


-- Executing [s@macro-record-enable:21] MacroExit("Local/303@from-queue-0001570d;2", "") in new stack


-- Executing [s@macro-exten-vm:7] Macro("Local/303@from-queue-0001570d;2", "dial-one,"",trM(auto-blkvm),303") in new stack


-- Executing [s@macro-dial-one:1] Set("Local/303@from-queue-0001570d;2", "DEXTEN=303") in new stack


-- Executing [s@macro-dial-one:2] Set("Local/303@from-queue-0001570d;2", "DIALSTATUS_CW=") in new stack


-- Executing [s@macro-dial-one:3] GosubIf("Local/303@from-queue-0001570d;2", "0?screen,1") in new stack


-- Executing [s@macro-dial-one:4] GosubIf("Local/303@from-queue-0001570d;2", "0?cf,1") in new stack


-- Executing [s@macro-dial-one:5] GotoIf("Local/303@from-queue-0001570d;2", "1?skip1") in new stack


-- Goto (macro-dial-one,s,8)


-- Executing [s@macro-dial-one:8] GotoIf("Local/303@from-queue-0001570d;2", "0?nodial") in new stack


-- Executing [s@macro-dial-one:9] GotoIf("Local/303@from-queue-0001570d;2", "0?continue") in new stack


-- Executing [s@macro-dial-one:10] Set("Local/303@from-queue-0001570d;2", "EXTHASCW=") in new stack


-- Executing [s@macro-dial-one:11] GotoIf("Local/303@from-queue-0001570d;2", "1?next1:cwinusebusy") in new stack


-- Goto (macro-dial-one,s,12)


-- Executing [s@macro-dial-one:12] GotoIf("Local/303@from-queue-0001570d;2", "0?docfu:skip3") in new stack


-- Goto (macro-dial-one,s,16)


-- Executing [s@macro-dial-one:16] GotoIf("Local/303@from-queue-0001570d;2", "1?next2:continue") in new stack


-- Goto (macro-dial-one,s,17)


-- Executing [s@macro-dial-one:17] GotoIf("Local/303@from-queue-0001570d;2", "1?continue") in new stack


-- Goto (macro-dial-one,s,25)


-- Executing [s@macro-dial-one:25] GotoIf("Local/303@from-queue-0001570d;2", "0?nodial") in new stack


-- Executing [s@macro-dial-one:26] GosubIf("Local/303@from-queue-0001570d;2", "1?dstring,1:dlocal,1") in new stack


-- Executing [dstring@macro-dial-one:1] Set("Local/303@from-queue-0001570d;2", "DSTRING=") in new stack


-- Executing [dstring@macro-dial-one:2] Set("Local/303@from-queue-0001570d;2", "DEVICES=303") in new stack


-- Executing [dstring@macro-dial-one:3] ExecIf("Local/303@from-queue-0001570d;2", "0?Return()") in new stack


-- Executing [dstring@macro-dial-one:4] ExecIf("Local/303@from-queue-0001570d;2", "0?Set(DEVICES=03)") in new stack


-- Executing [dstring@macro-dial-one:5] Set("Local/303@from-queue-0001570d;2", "LOOPCNT=1") in new stack


-- Executing [dstring@macro-dial-one:6] Set("Local/303@from-queue-0001570d;2", "ITER=1") in new stack


-- Executing [dstring@macro-dial-one:7] Set("Local/303@from-queue-0001570d;2", "THISDIAL=SIP/303") in new stack


-- Executing [dstring@macro-dial-one:8] GosubIf("Local/303@from-queue-0001570d;2", "1?zap2dahdi,1") in new stack


-- Executing [zap2dahdi@macro-dial-one:1] ExecIf("Local/303@from-queue-0001570d;2", "0?Return()") in new stack


-- Executing [zap2dahdi@macro-dial-one:2] Set("Local/303@from-queue-0001570d;2", "NEWDIAL=") in new stack


-- Executing [zap2dahdi@macro-dial-one:3] Set("Local/303@from-queue-0001570d;2", "LOOPCNT2=1") in new stack


-- Executing [zap2dahdi@macro-dial-one:4] Set("Local/303@from-queue-0001570d;2", "ITER2=1") in new stack


-- Executing [zap2dahdi@macro-dial-one:5] Set("Local/303@from-queue-0001570d;2", "THISPART2=SIP/303") in new stack

== Begin MixMonitor Recording Local/303@from-queue-0001570d;2

-- Executing [zap2dahdi@macro-dial-one:6] ExecIf("Local/303@from-queue-0001570d;2", "0?Set(THISPART2=DAHDI/303)") in new stack


-- Executing [zap2dahdi@macro-dial-one:7] Set("Local/303@from-queue-0001570d;2", "NEWDIAL=SIP/303&") in new stack


-- Executing [zap2dahdi@macro-dial-one:8] Set("Local/303@from-queue-0001570d;2", "ITER2=2") in new stack


-- Executing [zap2dahdi@macro-dial-one:9] GotoIf("Local/303@from-queue-0001570d;2", "0?begin2") in new stack


-- Executing [zap2dahdi@macro-dial-one:10] Set("Local/303@from-queue-0001570d;2", "THISDIAL=SIP/303") in new stack


-- Executing [zap2dahdi@macro-dial-one:11] Return("Local/303@from-queue-0001570d;2", "") in new stack


-- Executing [dstring@macro-dial-one:9] Set("Local/303@from-queue-0001570d;2", "DSTRING=SIP/303&") in new stack


-- Executing [dstring@macro-dial-one:10] Set("Local/303@from-queue-0001570d;2", "ITER=2") in new stack


-- Executing [dstring@macro-dial-one:11] GotoIf("Local/303@from-queue-0001570d;2", "0?begin") in new stack


-- Executing [dstring@macro-dial-one:12] Set("Local/303@from-queue-0001570d;2", "DSTRING=SIP/303") in new stack


-- Executing [dstring@macro-dial-one:13] Return("Local/303@from-queue-0001570d;2", "") in new stack


-- Executing [s@macro-dial-one:27] GotoIf("Local/303@from-queue-0001570d;2", "0?nodial") in new stack


-- Executing [s@macro-dial-one:28] GotoIf("Local/303@from-queue-0001570d;2", "1?skiptrace") in new stack


-- Goto (macro-dial-one,s,30)


-- Executing [s@macro-dial-one:30] Set("Local/303@from-queue-0001570d;2", "D_OPTIONS=trM(auto-blkvm)") in new stack


-- Executing [s@macro-dial-one:31] ExecIf("Local/303@from-queue-0001570d;2", "0?SIPAddHeader(Alert-Info: )") in new stack


-- Executing [s@macro-dial-one:32] ExecIf("Local/303@from-queue-0001570d;2", "0?SIPAddHeader()") in new stack


-- Executing [s@macro-dial-one:33] ExecIf("Local/303@from-queue-0001570d;2", "0?Set(CHANNEL(musicclass)=)") in new stack


-- Executing [s@macro-dial-one:34] GosubIf("Local/303@from-queue-0001570d;2", "0?qwait,1") in new stack


-- Executing [s@macro-dial-one:35] Set("Local/303@from-queue-0001570d;2", "__CWIGNORE=TRUE") in new stack


-- Executing [s@macro-dial-one:36] Set("Local/303@from-queue-0001570d;2", "__KEEPCID=TRUE") in new stack


-- Executing [s@macro-dial-one:37] GotoIf("Local/303@from-queue-0001570d;2", "0?usegoto,1") in new stack


-- Executing [s@macro-dial-one:38] GotoIf("Local/303@from-queue-0001570d;2", "0?godial") in new stack


-- Executing [s@macro-dial-one:39] Set("Local/303@from-queue-0001570d;2", "CONNECTEDLINE(name,i)=DEALING 3") in new stack


-- Executing [s@macro-dial-one:40] Set("Local/303@from-queue-0001570d;2", "CONNECTEDLINE(num)=303") in new stack


-- Executing [s@macro-dial-one:41] Set("Local/303@from-queue-0001570d;2", "D_OPTIONS=trM(auto-blkvm)I") in new stack


-- Executing [s@macro-dial-one:42] Dial("Local/303@from-queue-0001570d;2", "SIP/303,"",trM(auto-blkvm)I") in new stack


   > [INSERT INTO cel (eventtype,eventtime,userdeftype,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,peeraccount,uniqueid,linkedid,userfield,peer) VALUES ('APP_START',{ ts '2015-02-11 20:17:27' },'','9999999444','9999999444','9999999444','','','s','macro-dial-one','Local/303@from-queue-0001570d;2','Dial','SIP/303,"",trM(auto-blkvm)I',3,'','','1423666047.200767','1423666032.200765','','')]

[Feb 11 20:17:27] WARNING[12000]: app_dial.c:2345 dial_exec_full: Unable to create channel of type ‘SIP’ (cause 20 - Subscriber absent)

== Everyone is busy/congested at this time (1:0/0/1)

   > [INSERT INTO cel (eventtype,eventtime,userdeftype,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,peeraccount,uniqueid,linkedid,userfield,peer) VALUES ('APP_END',{ ts '2015-02-11 20:17:27' },'','9999999444','9999999444','9999999444','','','s','macro-dial-one','Local/303@from-queue-0001570d;2','Dial','SIP/303,"",trM(auto-blkvm)I',3,'','','1423666047.200767','1423666032.200765','','')]


-- Executing [s@macro-dial-one:43] ExecIf("Local/303@from-queue-0001570d;2", "0?Set(DIALSTATUS=)") in new stack

You seem to be using some UI to manage call flow in Asterisk.
Your logs show call going into Queue 604 and trying to dial 303 which is probably not available. Do you have 303 registered with your system?
What is the output of
asterisk -rx “sip show peers”?

–Satish Barot

303 extension is registered.

Name/username Host Dyn Forcerport
303/303 (Unspecified) D N A 0 UNKNOWN

Actually an UNKWOW is like a Schödringer status, the extension may be registered and maybe not but since in your output there is no IP address i think is not.

Actually this issue occurs with queue only.With ring group call is not getting disconnected.

Does 303 answer a call for your ringgroup?
Can you post the logs for ringgroup call and output of asterisk -rx “sip show peers”?

–Satish Barot

Name/username Host Dyn Forcerport
303/303 (Unspecified) D N A 0 UNKNOWN

is output of sip peer.

We are not using ring group right now.It is removed from the system.

Thanks,
Dipti

You just need to configure your system properly.Consult the people who developed the system. There doesn’t seem anything wrong with your Queue.
303 is not reachable and hence your incoming call gets disconnected.

–Satish Barot

Ok.

Thanks For the reply.Will check system.