Gregory Wiktor - ADCom Corp.
2005-Apr-20 19:47 UTC
[Asterisk-Users] Queuing with busy detect
Hello All, I have a setup I would like to try as such: Call comes in. Rings to a sip extension, if busy, goes to menu If not busy, follows other procedures. My question is, I want asterisk to ring 3 extensions simultaneously, but if the first one is busy, to put the call into a queue. This is for example, I am the only one answering calls, but at three places. I want asterisk to know that if I am on the phone, to skip the ringing, go into a menu, then an immediate queue. If I use an & in the dial string, I do not get the busy status. Thanks, Greg This is my current setup: exten => ${ADCOMTELIAXNUM},1,SetVar(IncomingCID=${CALLERID}) exten => ${ADCOMTELIAXNUM},2,SetVar(IncomingLine=${EXTEN}) exten => ${ADCOMTELIAXNUM},3,SETCIDNUM(${CALLERIDNUM:2}) ;Set CID from teliax minus +1 exten => ${ADCOMTELIAXNUM},4,Goto(adcomincoming,s,1) exten => ${ADCOMTELIAXNUM2},1,SetVar(IncomingCID=${CALLERID}) exten => ${ADCOMTELIAXNUM2},2,SetVar(IncomingLine=${EXTEN}) exten => ${ADCOMTELIAXNUM2},3,NoOp("Cid already set") exten => ${ADCOMTELIAXNUM2},4,Goto(adcomincoming,s,9) exten => t,1,Goto(adcomincoming,s,1) exten => s,1,Dial(${INCOMINGADCOM},15,t);Dial dest for 5 seconds exten => s,2,GotoIf($["${DIALSTATUS}" = "BUSY"]?9:9) exten => s,9,Wait(.5) exten => s,10,Answer ; Answer the line exten => s,11,NVBackGroundDetect(adcom/adcom-welcome); Thank you for calling ADCOM Corp. exten => s,12,NVBackGroundDetect(adcom/adcom-options) . . . exten => 1,1,Playback(transfer) exten => 1,2,Dial(SIP/302,20,tT) exten => 1,3,GotoIf($["${DIALSTATUS}" = "BUSY"]?10:5) ;exten => 1,4,SetCallerID(ADCOM Emergency <800xxxxx>); exten => 1,4,NoOp("No CID try to transpose") exten => 1,5,GotoIf($["${IncomingLine}" = "${ADCOMTELIAXNUM2}"]?7:6) exten => 1,6,Dial(IAX2/xxxxx@teliax/1914xxxxxx,,Tt);infinite ring ;exten => 1,6,Dial(IAX2/xxx@voipjet/1914xxxxxx,,Tt) exten => 1,7,VoiceMail(u${VOICEMAIL-AC}) exten => 1,8,Goto(s,2) exten => 1,10,Playback(busy-pls-hold) exten => 1,11,Queue(callqueue)