extensions_additional.conf

From Beige Wolf, 2 Months ago, written in Plain Text, viewed 3 times. This paste will bite the big one in 8 Months.
URL https://pastebin.freepbx.org/view/fd2244f4 Embed
Download Paste or View Raw
  1. include => macro-confirm-custom
  2. exten => s,1,Set(LOOPCOUNT=0)
  3. exten => s,n,Set(__MACRO_RESULT=ABORT)
  4. exten => s,n,Noop(${ALT_CONFIRM_MSG} and arv= ${ARG1})
  5. exten => s,n,ExecIf($["${ALT_CONFIRM_MSG}"="default"]?Set(ARG1=))
  6. exten => s,n,ExecIf($["${ALT_CONFIRM_MSG}"="default"]?Set(ALT_CONFIRM_MSG=))
  7. exten => s,n,Set(MSG1=${IF($["${ARG1}${ALT_CONFIRM_MSG}"=""]?incoming-call-1-accept-2-decline:${IF($[${LEN(${ALT_CONFIRM_MSG})}>0]?${ALT_CONFIRM_MSG}:${ARG1})})})
  8. exten => s,n(start),Background(${MSG1},m,${CHANNEL(language)},macro-confirm)
  9. exten => s,n,Read(INPUT,,1,,,4)
  10. exten => s,n,GotoIf($[${LEN(${INPUT})} > 0]?${INPUT},1:t,1)
  11.  
  12. exten => 1,1,GotoIf($["${DB_EXISTS(RG/${ARG3}/${UNIQCHAN})}"="0" & "${SHARED(ANSWER_STATUS,${FORCE_CONFIRM})}"=""]?toolate,1)
  13. exten => 1,n,Noop(Deleting: RG/${ARG3}/${UNIQCHAN} ${DB_DELETE(RG/${ARG3}/${UNIQCHAN})})
  14. exten => 1,n,Macro(blkvm-clr,)
  15. exten => 1,n,Set(SHARED(ANSWER_STATUS,${FORCE_CONFIRM})=)
  16. exten => 1,n(skip),Set(__MACRO_RESULT=)
  17. exten => 1,n,ExecIf($[("${MOHCLASS}"!="default") & ("${MOHCLASS}"!="")]?Set(CHANNEL(musicclass)=${MOHCLASS}))
  18. exten => 1,n(exitopt1),MacroExit()
  19.  
  20. exten => 2,1,Goto(noanswer,1)
  21.  
  22. exten => 3,1,SayDigits(${CALLCONFIRMCID})
  23. exten => 3,n,GotoIf($["${DB_EXISTS(RG/${ARG3}/${UNIQCHAN})}"="0" & "${SHARED(ANSWER_STATUS,${FORCE_CONFIRM})}"=""]?toolate,1:s,start)
  24.  
  25. exten => t,1,GotoIf($["${DB_EXISTS(RG/${ARG3}/${UNIQCHAN})}"="0" & "${SHARED(ANSWER_STATUS,${FORCE_CONFIRM})}"=""]?toolate,1)
  26. exten => t,n,Set(LOOPCOUNT=$[ ${LOOPCOUNT} + 1 ])
  27. exten => t,n,GotoIf($[ ${LOOPCOUNT} < 5 ]?s,start:noanswer,1)
  28.  
  29. exten => _X,1,Background(invalid,m,${CHANNEL(language)},macro-confirm)
  30. exten => _X,n,GotoIf($["${DB_EXISTS(RG/${ARG3}/${UNIQCHAN})}"="0" | "${SHARED(ANSWER_STATUS,${FORCE_CONFIRM})}"=""]?toolate,1)
  31. exten => _X,n,Set(LOOPCOUNT=$[ ${LOOPCOUNT} + 1 ])
  32. exten => _X,n,GotoIf($[ ${LOOPCOUNT} < 5 ]?s,start:noanswer,1)
  33.  
  34. exten => noanswer,1,Set(__MACRO_RESULT=ABORT)
  35. exten => noanswer,n(exitnoanswer),MacroExit()
  36.  
  37. exten => toolate,1,Set(MSG2=${IF($["foo${ARG2}" != "foo"]?${ARG2}:"incoming-call-no-longer-avail")})
  38. exten => toolate,n,Playback(${MSG2})
  39. exten => toolate,n,Set(__MACRO_RESULT=ABORT)
  40. exten => toolate,n(exittoolate),MacroExit()
  41.  
  42. exten => h,1,Macro(hangupcall,)
  43.  
  44. ;--== end of [macro-confirm] ==--;

Reply to "extensions_additional.conf"

Here you can reply to the paste above