Changeset 2072

Show
Ignore:
Timestamp:
06/21/06 07:48:50 (7 years ago)
Author:
qldrob
Message:

Stage one of ring groups with confirmation. Still have to write the code for the module, but this works.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/trunk/amp_conf/astetc/extensions.conf

    r2048 r2072  
    691691exten => s,n,Goto(ext-did,${DID},1) 
    692692 
     693; ## Ring Groups Confirmation ## 
     694[macro-dial-confirm] 
     695exten => s,1,Set(NBRS=${ARG3}) 
     696exten => s,n(loop),GotoIf($["${NBRS}"=""]?dodial) 
     697exten => s,n,Set(THISONE=${CUT(NBRS,-,1)}) 
     698exten => s,n,Set(DIALSTR=${DIALSTR}&Local/RG-${ARG2}-${THISONE}@grps) 
     699exten => s,n,Set(NBRS=${CUT(NBRS,-,2-)}) 
     700exten => s,n,Goto(loop) 
     701exten => s,n(dodial),Set(DIALSTR=${CUT(DIALSTR,&,2-)}) 
     702exten => s,n,Set(DB(RG/${ARG2}/${CHANNEL})=RINGING) 
     703exten => s,n,Set(__UNIQCHAN=${CHANNEL}) 
     704exten => s,n,Dial(${DIALSTR}) 
     705 
     706[macro-confirm] 
     707exten => s,1,Set(LOOPCOUNT=0) 
     708exten => s,n,Set(TIMEOUT(digit=2)) 
     709exten => s,n(start),Read(INPUT|${ARG1}|1||1|1) 
     710exten => s,n,GotoIf(${DB_EXISTS(RG/${ARG3}/${UNIQCHAN})}?check:toolate) 
     711exten => s,n(check),GotoIf($[ ${INPUT} = 1 ]?ok) 
     712exten => s,n,Set(LOOPCOUNT=$[ ${LOOPCOUNT} + 1 ]) 
     713exten => s,n,GotoIf($[ ${LOOPCOUNT} < 5 ]?start) 
     714exten => s,n(noanswer),Set(MACRO_RESULT=CONTINUE) 
     715exten => s,n,Goto(Fin) 
     716exten => s,n(toolate),Playback(${ARG2}) 
     717exten => s,n,Goto(noanswer) 
     718exten => s,n(ok),DBDel(RG/${ARG3}/${UNIQCHAN}) 
     719exten => s,n(fin),NoOp(Finished) 
     720 
    693721 
    694722; ############################################################################