asterisk-mod-app.lua 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391
  1. cbimap = Map("asterisk", "asterisk", "")
  2. module = cbimap:section(TypedSection, "module", "Modules", "")
  3. module.anonymous = true
  4. app_alarmreceiver = module:option(ListValue, "app_alarmreceiver", "Alarm Receiver Application", "")
  5. app_alarmreceiver:value("yes", "Load")
  6. app_alarmreceiver:value("no", "Do Not Load")
  7. app_alarmreceiver:value("auto", "Load as Required")
  8. app_alarmreceiver.rmempty = true
  9. app_authenticate = module:option(ListValue, "app_authenticate", "Authentication Application", "")
  10. app_authenticate:value("yes", "Load")
  11. app_authenticate:value("no", "Do Not Load")
  12. app_authenticate:value("auto", "Load as Required")
  13. app_authenticate.rmempty = true
  14. app_cdr = module:option(ListValue, "app_cdr", "Make sure asterisk doesn't save CDR", "")
  15. app_cdr:value("yes", "Load")
  16. app_cdr:value("no", "Do Not Load")
  17. app_cdr:value("auto", "Load as Required")
  18. app_cdr.rmempty = true
  19. app_chanisavail = module:option(ListValue, "app_chanisavail", "Check if channel is available", "")
  20. app_chanisavail:value("yes", "Load")
  21. app_chanisavail:value("no", "Do Not Load")
  22. app_chanisavail:value("auto", "Load as Required")
  23. app_chanisavail.rmempty = true
  24. app_chanspy = module:option(ListValue, "app_chanspy", "Listen in on any channel", "")
  25. app_chanspy:value("yes", "Load")
  26. app_chanspy:value("no", "Do Not Load")
  27. app_chanspy:value("auto", "Load as Required")
  28. app_chanspy.rmempty = true
  29. app_controlplayback = module:option(ListValue, "app_controlplayback", "Control Playback Application", "")
  30. app_controlplayback:value("yes", "Load")
  31. app_controlplayback:value("no", "Do Not Load")
  32. app_controlplayback:value("auto", "Load as Required")
  33. app_controlplayback.rmempty = true
  34. app_cut = module:option(ListValue, "app_cut", "Cuts up variables", "")
  35. app_cut:value("yes", "Load")
  36. app_cut:value("no", "Do Not Load")
  37. app_cut:value("auto", "Load as Required")
  38. app_cut.rmempty = true
  39. app_db = module:option(ListValue, "app_db", "Database access functions", "")
  40. app_db:value("yes", "Load")
  41. app_db:value("no", "Do Not Load")
  42. app_db:value("auto", "Load as Required")
  43. app_db.rmempty = true
  44. app_dial = module:option(ListValue, "app_dial", "Dialing Application", "")
  45. app_dial:value("yes", "Load")
  46. app_dial:value("no", "Do Not Load")
  47. app_dial:value("auto", "Load as Required")
  48. app_dial.rmempty = true
  49. app_dictate = module:option(ListValue, "app_dictate", "Virtual Dictation Machine Application", "")
  50. app_dictate:value("yes", "Load")
  51. app_dictate:value("no", "Do Not Load")
  52. app_dictate:value("auto", "Load as Required")
  53. app_dictate.rmempty = true
  54. app_directed_pickup = module:option(ListValue, "app_directed_pickup", "Directed Call Pickup Support", "")
  55. app_directed_pickup:value("yes", "Load")
  56. app_directed_pickup:value("no", "Do Not Load")
  57. app_directed_pickup:value("auto", "Load as Required")
  58. app_directed_pickup.rmempty = true
  59. app_directory = module:option(ListValue, "app_directory", "Extension Directory", "")
  60. app_directory:value("yes", "Load")
  61. app_directory:value("no", "Do Not Load")
  62. app_directory:value("auto", "Load as Required")
  63. app_directory.rmempty = true
  64. app_disa = module:option(ListValue, "app_disa", "DISA (Direct Inward System Access) Application", "")
  65. app_disa:value("yes", "Load")
  66. app_disa:value("no", "Do Not Load")
  67. app_disa:value("auto", "Load as Required")
  68. app_disa.rmempty = true
  69. app_dumpchan = module:option(ListValue, "app_dumpchan", "Dump channel variables Application", "")
  70. app_dumpchan:value("yes", "Load")
  71. app_dumpchan:value("no", "Do Not Load")
  72. app_dumpchan:value("auto", "Load as Required")
  73. app_dumpchan.rmempty = true
  74. app_echo = module:option(ListValue, "app_echo", "Simple Echo Application", "")
  75. app_echo:value("yes", "Load")
  76. app_echo:value("no", "Do Not Load")
  77. app_echo:value("auto", "Load as Required")
  78. app_echo.rmempty = true
  79. app_enumlookup = module:option(ListValue, "app_enumlookup", "ENUM Lookup", "")
  80. app_enumlookup:value("yes", "Load")
  81. app_enumlookup:value("no", "Do Not Load")
  82. app_enumlookup:value("auto", "Load as Required")
  83. app_enumlookup.rmempty = true
  84. app_eval = module:option(ListValue, "app_eval", "Reevaluates strings", "")
  85. app_eval:value("yes", "Load")
  86. app_eval:value("no", "Do Not Load")
  87. app_eval:value("auto", "Load as Required")
  88. app_eval.rmempty = true
  89. app_exec = module:option(ListValue, "app_exec", "Executes applications", "")
  90. app_exec:value("yes", "Load")
  91. app_exec:value("no", "Do Not Load")
  92. app_exec:value("auto", "Load as Required")
  93. app_exec.rmempty = true
  94. app_externalivr = module:option(ListValue, "app_externalivr", "External IVR application interface", "")
  95. app_externalivr:value("yes", "Load")
  96. app_externalivr:value("no", "Do Not Load")
  97. app_externalivr:value("auto", "Load as Required")
  98. app_externalivr.rmempty = true
  99. app_forkcdr = module:option(ListValue, "app_forkcdr", "Fork The CDR into 2 separate entities", "")
  100. app_forkcdr:value("yes", "Load")
  101. app_forkcdr:value("no", "Do Not Load")
  102. app_forkcdr:value("auto", "Load as Required")
  103. app_forkcdr.rmempty = true
  104. app_getcpeid = module:option(ListValue, "app_getcpeid", "Get ADSI CPE ID", "")
  105. app_getcpeid:value("yes", "Load")
  106. app_getcpeid:value("no", "Do Not Load")
  107. app_getcpeid:value("auto", "Load as Required")
  108. app_getcpeid.rmempty = true
  109. app_groupcount = module:option(ListValue, "app_groupcount", "Group Management Routines", "")
  110. app_groupcount:value("yes", "Load")
  111. app_groupcount:value("no", "Do Not Load")
  112. app_groupcount:value("auto", "Load as Required")
  113. app_groupcount.rmempty = true
  114. app_ices = module:option(ListValue, "app_ices", "Encode and Stream via icecast and ices", "")
  115. app_ices:value("yes", "Load")
  116. app_ices:value("no", "Do Not Load")
  117. app_ices:value("auto", "Load as Required")
  118. app_ices.rmempty = true
  119. app_image = module:option(ListValue, "app_image", "Image Transmission Application", "")
  120. app_image:value("yes", "Load")
  121. app_image:value("no", "Do Not Load")
  122. app_image:value("auto", "Load as Required")
  123. app_image.rmempty = true
  124. app_lookupblacklist = module:option(ListValue, "app_lookupblacklist", "Look up Caller*ID name/number from black", "")
  125. app_lookupblacklist:value("yes", "Load")
  126. app_lookupblacklist:value("no", "Do Not Load")
  127. app_lookupblacklist:value("auto", "Load as Required")
  128. app_lookupblacklist.rmempty = true
  129. app_lookupcidname = module:option(ListValue, "app_lookupcidname", "Look up CallerID Name from local databas", "")
  130. app_lookupcidname:value("yes", "Load")
  131. app_lookupcidname:value("no", "Do Not Load")
  132. app_lookupcidname:value("auto", "Load as Required")
  133. app_lookupcidname.rmempty = true
  134. app_macro = module:option(ListValue, "app_macro", "Extension Macros", "")
  135. app_macro:value("yes", "Load")
  136. app_macro:value("no", "Do Not Load")
  137. app_macro:value("auto", "Load as Required")
  138. app_macro.rmempty = true
  139. app_math = module:option(ListValue, "app_math", "A simple math Application", "")
  140. app_math:value("yes", "Load")
  141. app_math:value("no", "Do Not Load")
  142. app_math:value("auto", "Load as Required")
  143. app_math.rmempty = true
  144. app_md5 = module:option(ListValue, "app_md5", "MD5 checksum Application", "")
  145. app_md5:value("yes", "Load")
  146. app_md5:value("no", "Do Not Load")
  147. app_md5:value("auto", "Load as Required")
  148. app_md5.rmempty = true
  149. app_milliwatt = module:option(ListValue, "app_milliwatt", "Digital Milliwatt (mu-law) Test Application", "")
  150. app_milliwatt:value("yes", "Load")
  151. app_milliwatt:value("no", "Do Not Load")
  152. app_milliwatt:value("auto", "Load as Required")
  153. app_milliwatt.rmempty = true
  154. app_mixmonitor = module:option(ListValue, "app_mixmonitor", "Record a call and mix the audio during the recording", "")
  155. app_mixmonitor:value("yes", "Load")
  156. app_mixmonitor:value("no", "Do Not Load")
  157. app_mixmonitor:value("auto", "Load as Required")
  158. app_mixmonitor.rmempty = true
  159. app_parkandannounce = module:option(ListValue, "app_parkandannounce", "Call Parking and Announce Application", "")
  160. app_parkandannounce:value("yes", "Load")
  161. app_parkandannounce:value("no", "Do Not Load")
  162. app_parkandannounce:value("auto", "Load as Required")
  163. app_parkandannounce.rmempty = true
  164. app_playback = module:option(ListValue, "app_playback", "Trivial Playback Application", "")
  165. app_playback:value("yes", "Load")
  166. app_playback:value("no", "Do Not Load")
  167. app_playback:value("auto", "Load as Required")
  168. app_playback.rmempty = true
  169. app_privacy = module:option(ListValue, "app_privacy", "Require phone number to be entered", "")
  170. app_privacy:value("yes", "Load")
  171. app_privacy:value("no", "Do Not Load")
  172. app_privacy:value("auto", "Load as Required")
  173. app_privacy.rmempty = true
  174. app_queue = module:option(ListValue, "app_queue", "True Call Queueing", "")
  175. app_queue:value("yes", "Load")
  176. app_queue:value("no", "Do Not Load")
  177. app_queue:value("auto", "Load as Required")
  178. app_queue.rmempty = true
  179. app_random = module:option(ListValue, "app_random", "Random goto", "")
  180. app_random:value("yes", "Load")
  181. app_random:value("no", "Do Not Load")
  182. app_random:value("auto", "Load as Required")
  183. app_random.rmempty = true
  184. app_read = module:option(ListValue, "app_read", "Read Variable Application", "")
  185. app_read:value("yes", "Load")
  186. app_read:value("no", "Do Not Load")
  187. app_read:value("auto", "Load as Required")
  188. app_read.rmempty = true
  189. app_readfile = module:option(ListValue, "app_readfile", "Read in a file", "")
  190. app_readfile:value("yes", "Load")
  191. app_readfile:value("no", "Do Not Load")
  192. app_readfile:value("auto", "Load as Required")
  193. app_readfile.rmempty = true
  194. app_realtime = module:option(ListValue, "app_realtime", "Realtime Data Lookup/Rewrite", "")
  195. app_realtime:value("yes", "Load")
  196. app_realtime:value("no", "Do Not Load")
  197. app_realtime:value("auto", "Load as Required")
  198. app_realtime.rmempty = true
  199. app_record = module:option(ListValue, "app_record", "Trivial Record Application", "")
  200. app_record:value("yes", "Load")
  201. app_record:value("no", "Do Not Load")
  202. app_record:value("auto", "Load as Required")
  203. app_record.rmempty = true
  204. app_sayunixtime = module:option(ListValue, "app_sayunixtime", "Say time", "")
  205. app_sayunixtime:value("yes", "Load")
  206. app_sayunixtime:value("no", "Do Not Load")
  207. app_sayunixtime:value("auto", "Load as Required")
  208. app_sayunixtime.rmempty = true
  209. app_senddtmf = module:option(ListValue, "app_senddtmf", "Send DTMF digits Application", "")
  210. app_senddtmf:value("yes", "Load")
  211. app_senddtmf:value("no", "Do Not Load")
  212. app_senddtmf:value("auto", "Load as Required")
  213. app_senddtmf.rmempty = true
  214. app_sendtext = module:option(ListValue, "app_sendtext", "Send Text Applications", "")
  215. app_sendtext:value("yes", "Load")
  216. app_sendtext:value("no", "Do Not Load")
  217. app_sendtext:value("auto", "Load as Required")
  218. app_sendtext.rmempty = true
  219. app_setcallerid = module:option(ListValue, "app_setcallerid", "Set CallerID Application", "")
  220. app_setcallerid:value("yes", "Load")
  221. app_setcallerid:value("no", "Do Not Load")
  222. app_setcallerid:value("auto", "Load as Required")
  223. app_setcallerid.rmempty = true
  224. app_setcdruserfield = module:option(ListValue, "app_setcdruserfield", "CDR user field apps", "")
  225. app_setcdruserfield:value("yes", "Load")
  226. app_setcdruserfield:value("no", "Do Not Load")
  227. app_setcdruserfield:value("auto", "Load as Required")
  228. app_setcdruserfield.rmempty = true
  229. app_setcidname = module:option(ListValue, "app_setcidname", "load => .so ; Set CallerID Name", "")
  230. app_setcidname:value("yes", "Load")
  231. app_setcidname:value("no", "Do Not Load")
  232. app_setcidname:value("auto", "Load as Required")
  233. app_setcidname.rmempty = true
  234. app_setcidnum = module:option(ListValue, "app_setcidnum", "load => .so ; Set CallerID Number", "")
  235. app_setcidnum:value("yes", "Load")
  236. app_setcidnum:value("no", "Do Not Load")
  237. app_setcidnum:value("auto", "Load as Required")
  238. app_setcidnum.rmempty = true
  239. app_setrdnis = module:option(ListValue, "app_setrdnis", "Set RDNIS Number", "")
  240. app_setrdnis:value("yes", "Load")
  241. app_setrdnis:value("no", "Do Not Load")
  242. app_setrdnis:value("auto", "Load as Required")
  243. app_setrdnis.rmempty = true
  244. app_settransfercapability = module:option(ListValue, "app_settransfercapability", "Set ISDN Transfer Capability", "")
  245. app_settransfercapability:value("yes", "Load")
  246. app_settransfercapability:value("no", "Do Not Load")
  247. app_settransfercapability:value("auto", "Load as Required")
  248. app_settransfercapability.rmempty = true
  249. app_sms = module:option(ListValue, "app_sms", "SMS/PSTN handler", "")
  250. app_sms:value("yes", "Load")
  251. app_sms:value("no", "Do Not Load")
  252. app_sms:value("auto", "Load as Required")
  253. app_sms.rmempty = true
  254. app_softhangup = module:option(ListValue, "app_softhangup", "Hangs up the requested channel", "")
  255. app_softhangup:value("yes", "Load")
  256. app_softhangup:value("no", "Do Not Load")
  257. app_softhangup:value("auto", "Load as Required")
  258. app_softhangup.rmempty = true
  259. app_stack = module:option(ListValue, "app_stack", "Stack Routines", "")
  260. app_stack:value("yes", "Load")
  261. app_stack:value("no", "Do Not Load")
  262. app_stack:value("auto", "Load as Required")
  263. app_stack.rmempty = true
  264. app_system = module:option(ListValue, "app_system", "Generic System() application", "")
  265. app_system:value("yes", "Load")
  266. app_system:value("no", "Do Not Load")
  267. app_system:value("auto", "Load as Required")
  268. app_system.rmempty = true
  269. app_talkdetect = module:option(ListValue, "app_talkdetect", "Playback with Talk Detection", "")
  270. app_talkdetect:value("yes", "Load")
  271. app_talkdetect:value("no", "Do Not Load")
  272. app_talkdetect:value("auto", "Load as Required")
  273. app_talkdetect.rmempty = true
  274. app_test = module:option(ListValue, "app_test", "Interface Test Application", "")
  275. app_test:value("yes", "Load")
  276. app_test:value("no", "Do Not Load")
  277. app_test:value("auto", "Load as Required")
  278. app_test.rmempty = true
  279. app_transfer = module:option(ListValue, "app_transfer", "Transfer", "")
  280. app_transfer:value("yes", "Load")
  281. app_transfer:value("no", "Do Not Load")
  282. app_transfer:value("auto", "Load as Required")
  283. app_transfer.rmempty = true
  284. app_txtcidname = module:option(ListValue, "app_txtcidname", "TXTCIDName", "")
  285. app_txtcidname:value("yes", "Load")
  286. app_txtcidname:value("no", "Do Not Load")
  287. app_txtcidname:value("auto", "Load as Required")
  288. app_txtcidname.rmempty = true
  289. app_url = module:option(ListValue, "app_url", "Send URL Applications", "")
  290. app_url:value("yes", "Load")
  291. app_url:value("no", "Do Not Load")
  292. app_url:value("auto", "Load as Required")
  293. app_url.rmempty = true
  294. app_userevent = module:option(ListValue, "app_userevent", "Custom User Event Application", "")
  295. app_userevent:value("yes", "Load")
  296. app_userevent:value("no", "Do Not Load")
  297. app_userevent:value("auto", "Load as Required")
  298. app_userevent.rmempty = true
  299. app_verbose = module:option(ListValue, "app_verbose", "Send verbose output", "")
  300. app_verbose:value("yes", "Load")
  301. app_verbose:value("no", "Do Not Load")
  302. app_verbose:value("auto", "Load as Required")
  303. app_verbose.rmempty = true
  304. app_voicemail = module:option(ListValue, "app_voicemail", "Voicemail", "")
  305. app_voicemail:value("yes", "Load")
  306. app_voicemail:value("no", "Do Not Load")
  307. app_voicemail:value("auto", "Load as Required")
  308. app_voicemail.rmempty = true
  309. app_waitforring = module:option(ListValue, "app_waitforring", "Waits until first ring after time", "")
  310. app_waitforring:value("yes", "Load")
  311. app_waitforring:value("no", "Do Not Load")
  312. app_waitforring:value("auto", "Load as Required")
  313. app_waitforring.rmempty = true
  314. app_waitforsilence = module:option(ListValue, "app_waitforsilence", "Wait For Silence Application", "")
  315. app_waitforsilence:value("yes", "Load")
  316. app_waitforsilence:value("no", "Do Not Load")
  317. app_waitforsilence:value("auto", "Load as Required")
  318. app_waitforsilence.rmempty = true
  319. app_while = module:option(ListValue, "app_while", "While Loops and Conditional Execution", "")
  320. app_while:value("yes", "Load")
  321. app_while:value("no", "Do Not Load")
  322. app_while:value("auto", "Load as Required")
  323. app_while.rmempty = true
  324. return cbimap