Show
Ignore:
Timestamp:
03/01/07 23:31:11 (6 years ago)
Author:
p_lindheimer
Message:

macro-exten-vm + macro-simple-dial : preserve the state of DIALSTATUS when trying CFB & CFU which can both be effected by the dial attempts, and the ultimate DIALSTATUS that should be returned should be from the original call attempt.

Files:

Legend:

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

    r3806 r3837  
    104104 
    105105exten => s,n,Macro(dial,${RT},${DIAL_OPTIONS},${EXTTOCALL}) 
    106 exten => s,n,GosubIf($[$["${DIALSTATUS}"="NOANSWER"] & $["foo${CFUEXT}"!="foo"]]?docfu,1) ; check for CFU in use on no answer 
    107 exten => s,n,GosubIf($[$["${DIALSTATUS}"="BUSY"] & $["foo${CFBEXT}"!="foo"]]?docfb,1) ; check for CFB in use on busy 
     106exten => s,n,Set(SV_DIALSTATUS=${DIALSTATUS}) 
     107exten => s,n,GosubIf($[$["${SV_DIALSTATUS}"="NOANSWER"] & $["foo${CFUEXT}"!="foo"]]?docfu,1) ; check for CFU in use on no answer 
     108exten => s,n,GosubIf($[$["${SV_DIALSTATUS}"="BUSY"] & $["foo${CFBEXT}"!="foo"]]?docfb,1) ; check for CFB in use on busy 
     109exten => s,n,Set(DIALSTATUS=${SV_DIALSTATUS}) 
    108110exten => s,n,NoOp(Voicemail is '${VMBOX}') 
    109111exten => s,n,GotoIf($["${VMBOX}" = "novm"]?s-${DIALSTATUS},1) ; no voicemail in use for this extension 
     
    215217; if we return, thus no answer, and they have a CFU setting, then  we try that next 
    216218; 
    217 exten => s,n,GosubIf($[$["${DIALSTATUS}"="NOANSWER"] & $["foo${CFUEXT}"!="foo"]]?docfu,1) ; check for CFU in use on no answer 
    218 exten => s,n,GosubIf($[$["${DIALSTATUS}"="BUSY"] & $["foo${CFBEXT}"!="foo"]]?docfb,1) ; check for CFB in use on busy 
     219exten => s,n,GosubIf($[$["${PR_DIALSTATUS}"="NOANSWER"] & $["foo${CFUEXT}"!="foo"]]?docfu,1) ; check for CFU in use on no answer 
     220exten => s,n,GosubIf($[$["${PR_DIALSTATUS}"="BUSY"] & $["foo${CFBEXT}"!="foo"]]?docfb,1) ; check for CFB in use on busy 
     221exten => s,n,Set(DIALSTATUS=${PR_DIALSTATUS}) 
    219222 
    220223; Nothing yet, then go to the end (which will just return, but in case we decide to do something with certain