Changeset 3166

Show
Ignore:
Timestamp:
11/22/06 21:59:25 (6 years ago)
Author:
p_lindheimer
Message:

add NODEST to macro-vm and dialout-trunk which is set by ringgroups and queueus so that calls and other destinations don't get called but subsequent transfers on answered calls does. This will need the new ringgroups, queues and findmefollow coming next

Files:

Legend:

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

    r3113 r3166  
    9292[macro-exten-vm] 
    9393exten => s,1,Macro(user-callerid) 
     94 
     95; Don't go to destinations like vm if NODEST is set 
     96; 
     97exten => s,n,Noop(CAME FROM: ${NODEST}) 
     98exten => s,n,Set(RRNODEST=${NODEST}) 
     99exten => s,n,Set(_NODEST=) 
     100 
    94101exten => s,n,Set(FROMCONTEXT=exten-vm) 
    95102exten => s,n,Set(VMBOX=${ARG1}) 
     
    98105exten => s,n,Set(RT=${IF($[$["${VMBOX}"!="novm"] | $["foo${CFUEXT}"!="foo"]]?${RINGTIMER}:"")}) 
    99106exten => s,n,Macro(record-enable,${EXTTOCALL},IN) 
    100 exten => s,n,GotoIf($["${CHANNEL:0:5}" = "Local"]?dolocaldial,1) ; if the channel is Local 
     107 
     108 
     109; If NODEST then bypass voicemail regardless 
     110
     111;exten => s,n,GotoIf($["${CHANNEL:0:5}" = "Local"]?dolocaldial,1) ; if the channel is Local 
     112exten => s,n,GotoIf($["foo${RRNODEST}" != "foo"]?dolocaldial,1) ; don't do voicemail 
     113 
    101114exten => s,n,Macro(dial,${RT},${DIAL_OPTIONS},${EXTTOCALL}) 
    102115exten => s,n,GosubIf($[$["${DIALSTATUS}"="NOANSWER"] & $["foo${CFUEXT}"!="foo"]]?docfu,1) ; check for CFU in use on no answer 
     
    335348[macro-dialout-trunk] 
    336349exten => s,1,Set(DIAL_TRUNK=${ARG1}) 
     350 
     351; If NODEST is set, clear it. No point in remembering since dialout-trunk will just end in the 
     352; bit bucket. But if answered by an outside line with transfer capability, we want NODEST to be 
     353; clear so a subsequent transfer to an internal extension works and goes to voicmail or other 
     354; destinations. 
     355; 
     356exten => s,n,Set(_NODEST=) 
     357 
    337358exten => s,n,Set(DIAL_NUMBER=${ARG2}) 
    338359exten => s,n,Set(ROUTE_PASSWD=${ARG3})