daily pastebin goal
27%
SHARE
TWEET

Untitled

a guest Jun 23rd, 2018 73 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  1. // BEGIN FessBox
  2. [fessbox]
  3. exten => 96,1,Answer
  4. ;exten => 96,n,Set(CHANNEL(musicclass)=default)
  5. exten => 96,n,MusicOnHold()
  6.  
  7. ;exten => 97,1,Hangup
  8. exten => 97,1,Goto(app-blackhole,hangup,1)
  9.  
  10. exten => 98,1,Wait(100)
  11. exten => 98,n,Goto(app-blackhole,hangup,1)
  12.  
  13. exten => 91,1,Macro(user-callerid,)
  14. exten => 91,n,Wait(2)
  15. exten => 91,n,Macro(openrecording,dorecord2,${EPOCH}-${CALLERID(num)})
  16.  
  17.  
  18. ;exten => 94,1,Progress
  19. ;exten => 94,1,RetryDial(,1,1,console/alsa,,eg)
  20. ;exten => 94,2,RetryDial(,1,1,console/alsa,,aeg)
  21. exten => 94,1,Monitor(wav,,mb)
  22. exten => 94,n,Noop(Debug: monitor ${EPOCH}-${CALLERID(num)})
  23. exten => 94,n,Dial(console/alsa,,egF)
  24. ;exten => 94,n,Confbridge(2666,default_bridge,dialout_user)
  25. exten => 94,n,Goto(app-blackhole,hangup,1)
  26.  
  27. ;exten => 94,1,Dial(console/alsa)
  28. ;exten => 94,1,RetryDial(,1,1,console/alsa)
  29. ;exten => 94,n,Noop(Debug: console/alsa ended)
  30. ;exten => 94,n,Confbridge(2666,default_bridge,default_user)
  31. ;exten => 94,n,Goto(app-blackhole,hangup,1)
  32.  
  33. ;exten => 95,1,Set(CHANNEL(musicclass)=ringing)
  34. ;exten => 95,1,Dial(console/alsa,,g)
  35. ;exten => 95,1,Ringing
  36. exten => 95,1,Confbridge(2666,default_bridge,default_user)
  37. ;exten => 95,n,Playback(thank-you-for-participating)
  38. exten => 95,n,Goto(app-blackhole,hangup,1)
  39.  
  40. exten => 92,1,Confbridge(2666,default_bridge,console_user)
  41. exten => 92,n,Goto(app-blackhole,hangup,1)
  42.  
  43. [macro-openrecording]
  44. exten => s,1,Set(RECFILE=${IF($["${ARG2}" = ""]?/var/spool/asterisk/tmp/${AMPUSER}-ivrrecording:${ARG2})})
  45. exten => s,n,ExecIf($["${ARG3}" != ""]?Authenticate(${ARG3}))
  46. exten => s,n,Goto(${ARG1},1)
  47.  
  48. exten => dorecord2,1,Playback(pm-to-record-phrase)
  49. exten => dorecord2,n,GotoIf($["${ARG2}" = ""]?skipremove)
  50. exten => dorecord2,n,System(rm ${ASTVARLIBDIR}/sounds/${RECFILE}.*)
  51. exten => dorecord2,n(skipremove),Record(${RECFILE}.wav,,,k)
  52. exten => dorecord2,n,Wait(1)
  53. exten => dorecord2,n,Goto(confmenu2,1)
  54.  
  55. exten => docheck2,1,Playback(beep)
  56. exten => docheck2,n(dc_start),Background(${RECFILE},m,${CHANNEL(language)},macro-openrecording)
  57. exten => docheck2,n,Wait(1)
  58. exten => docheck2,n,Goto(confmenu2,1)
  59.  
  60. exten => confmenu2,1,Background(to-listen-to-it&press-1&to-rerecord-it&press-star&astcc-followed-by-pound,m,${CHANNEL(language)},macro-openrecording)
  61. exten => confmenu2,n,Read(RECRESULT,,1,,,4)
  62. exten => confmenu2,n,GotoIf($["x${RECRESULT}"="x*"]?dorecord2,1)
  63. exten => confmenu2,n,GotoIf($["x${RECRESULT}"="x1"]?docheck2,2)
  64. exten => confmenu2,n,Goto(1)
  65.  
  66. ;# // BEGIN from internal
  67. [from-internal]
  68. include => fessbox
  69. exten => _NXX,1,Dial(SIP/${EXTEN})
  70. exten => _NXXX,1,Dial(SIP/${EXTEN})
  71. exten => _NXXXX,1,Dial(SIP/${EXTEN})
  72. exten => _NXXXXXX,1,Dial(SIP/389002/${EXTEN}) ; fessbox
  73. exten => _NXXNXXXXXX,1,Goto(outbound-allroutes,${EXTEN},1)
  74. exten => _1NXXNXXXXXX,1,Goto(outbound-allroutes,${EXTEN:1},1)
  75. ;# // END from internal
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top