Soporte & Consultoria

Soporte Remoto y Consultoria skype : ambiorixg12.
Nota no se brinda ningun tipo de consulta o soporte fuera del blog de forma gratuita

martes, 27 de diciembre de 2016

custom lot

  1. [myucstom]
  2. exten=>_x.,1,Set(__outnum=${SHELL(php /var/www/html/file.php)})
  3. same => n,GotoIf($[${outnum}!=FALSE]?OK)
  4. same=>n,Playback(im-sorry)
  5. same=>n,hangup()
  6. same=>n(OK),Set(GLOBAL(caller)=${CHANNEL})
  7. same=>n,Set(__callercid=${CALLERID(num)})
  8. same=>n,Dial(Local/s@moh&Local/s@response)
  9. exten=>h,1,Set(GLOBAL(caller)=hangup)
  10.  
  11. [moh]
  12. exten=>s,1,Noop(///${caller}///)
  13. same=>n,Answer()
  14. same=n,Playback(/var/www/travel/sounds/welcome)
  15. same=>n,MusicOnHold(default)
  16. same=>n,Hangup()
  17.  
  18. [response]
  19.  exten=>s,1,Noop(///${caller}***${outnum}***)
  20. same=>n,System(/usr/sbin/asterisk -x "channel originate Local/${callercid}@cid extension s@hello")
  21.  
  22.  
  23. [cid]
  24. exten=>_x.,1,Set(CALLERID(num)=${EXTEN})
  25. same=>n,Set(__outnum=${SHELL(php /var/www/html/file.php)})
  26. same=>n,Set(GLOBAL(operator)=${CHANNEL})
  27. same=>n,Dial(SIP/602,5)
  28. ;same=>n,Dial(SIP/0011101306932454266@sbc.voxbeam.com,15)
  29. same => n,GotoIf($[${DIALSTATUS}="ANSWER"]?anws)
  30. same=>n,System(/usr/sbin/asterisk -x "channel redirect ${caller} messages,s,message-8-1")
  31. same=>n,hangup()
  32. same=>n(answ),GotoIf($[$["${DIALSTATUS}"= "ANSWER"] && $["${op-in}"= "YES"]]?op-hangup-conf:op-no-conf)
  33. same=>n,Hangup()
  34. same=>n(op-hangup-conf),System(/usr/sbin/asterisk -x "channel redirect ${caller} messages,s,message-14-2")
  35. same=>n,hangup()
  36. same=>n(op-no-conf),System(/usr/sbin/asterisk -x "channel redirect ${caller} messages,s,message-10-2")
  37. same=>n,hangup()
  38.  
  39. [messages]
  40. exten=>s,1,Noop(do nothing)
  41. same=>n,hangup()
  42.  
  43. same=>n(message-8-1),Playback(/var/www/travel/sounds/8)
  44. same=>n,hangup()
  45. same=>n(message-10-1),Playback(/var/www/travel/sounds/10-1)
  46. same=>n,hangup()
  47.  
  48. same=>n(message-10-2),Playback(/var/www/travel/sounds/10-2)
  49. same=>n,hangup()
  50.  
  51. same=>n(message-14-1),Playback(/var/www/travel/sounds/14-1)
  52. same=>n,hangup()
  53.  
  54. same=>n(message-14-2),Playback(/var/www/travel/sounds/14-2)
  55. same=>n,hangup()
  56.  
  57. same=>n(message-11-2),Playback(/var/www/travel/sounds/11-2)
  58. same=>n,System(/usr/sbin/asterisk -x "channel redirect ${caller} hello,s,bridge")
  59.  
  60. [hello]
  61. exten=>s,1,Answer()
  62. same=>n(message),playback(/var/www/travel/sounds/messagetopo)
  63. same=>n,MixMonitor(/var/www/travel/${EXTEN}.wav)
  64. same=>n,Wait(5)
  65. same=>n(op-pre-message),Playback(/var/www/travel/sounds/11-2)
  66. same=>n,System(/usr/sbin/asterisk -x "channel redirect ${caller} messages,s,message-11-2")
  67. same=>n,wait(5)
  68. same=>n(op-in),Set(GLOBAL(op-in)=YES)
  69. same=>n(bridge),Bridge(${caller})
  70. same=>n,Noop(Playing sound to  ${caller} / ${CHANNEL})
  71. same=>n,GotoIf($["${caller}"="${CHANNEL}"]?messages,s,message-14-2)
  72. ;same=>n,Playback(/var/www/travel/sounds/14-1)
  73. same=>n,Noop( caller var ${caller})
  74. same=>n,GotoIf($["${caller}"="hangup"]?messages,s,message-10-1)
  75. same=>n,Playback(goodbye)
  76. exten=>h,1,System(/usr/sbin/asterisk -x "channel redirect ${caller} messages,s,message-10-2")
RAW Paste Data

No hay comentarios:

Publicar un comentario