Advertisement
Guest User

Untitled

a guest
Nov 14th, 2015
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.54 KB | None | 0 0
  1. [Check-Room-Status]
  2.  
  3. exten => _X.,1,Answer
  4. exten => _X.,n,Set(Answertime=${STRFTIME(${EPOCH},,%Y%m%d)}${STRFTIME(${EPOCH},,%H%M%S)})
  5. exten => _X.,n,Set(CALLFILENAME=${EXTEN:1}-${Answertime})
  6. exten => _X.,n,Monitor(wav,${CALLFILENAME},m))
  7. exten => _X.,n,Set(debug=0)
  8. exten => _X.,n,Wait(8)
  9. exten => _X.,n,SendDTMF(1)
  10. exten => _X.,n,Wait(4)
  11. exten => _X.,n,SendDTMF(9)
  12. exten => _X.,n,Wait(5)
  13. exten => _X.,n,SendDTMF(14959381#)
  14. exten => _X.,n,Wait(3)
  15. exten => _X.,n,SendDTMF(1)
  16. exten => _X.,n,Wait(13)
  17. exten => _X.,n,SendDTMF(8)
  18. exten => _X.,n,Wait(10)
  19. exten => _X.,n,SendDTMF(2)
  20. exten => _X.,n,Wait(30)
  21. exten => _X.,n,StopMonitor())
  22. exten => _X.,n,SendDTMF(0)
  23. exten => _X.,n,Wait(1)
  24. exten => _X.,n,SendDTMF(0)
  25. exten => _X.,n,Hangup()
  26. exten => h,1,Set(Disconnecttime=${STRFTIME(${EPOCH},,%Y%m%d)}${STRFTIME(${EPOCH},,%H%M%S)})
  27.  
  28. exten => h,n,Set(PhoneTime=$[${Disconnecttime}-${Answertime}])
  29. exten => h,n,System(echo " Call lasted ${PhoneTime} seconds" | mutt -a "/var/spool/asterisk/monitor/${CALLFILENAME}.wav" -s "Chat Room Results ${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}" -c "test@ktcsg.com" -- test@cyfordtechnologies.com ))
  30. exten => h,n,System("chown -R asterisk:asterisk /var/spool/asterisk/monitor/ && rm -rf /var/spool/asterisk/monitor/${CALLFILENAME}.wav" ))
  31.  
  32. ######################################################################################################################
  33.  
  34.  
  35. -- Executing [12604374171@Check-Room-Status:1] Answer("Motif/12604374171@voice.google.com-ed69", "") in new stack
  36. -- Executing [12604374171@Check-Room-Status:2] Set("Motif/12604374171@voice.google.com-ed69", "Answertime=20151114192312") in new stack
  37. -- Executing [12604374171@Check-Room-Status:3] Set("Motif/12604374171@voice.google.com-ed69", "CALLFILENAME=2604374171-20151114192312") in new stack
  38. -- Executing [12604374171@Check-Room-Status:4] Monitor("Motif/12604374171@voice.google.com-ed69", "wav,2604374171-20151114192312,m)") in new stack
  39. -- Executing [12604374171@Check-Room-Status:5] Set("Motif/12604374171@voice.google.com-ed69", "debug=0") in new stack
  40. -- Executing [12604374171@Check-Room-Status:6] Wait("Motif/12604374171@voice.google.com-ed69", "8") in new stack
  41.  
  42. -- Executing [12604374171@Check-Room-Status:7] SendDTMF("Motif/12604374171@voice.google.com-ed69", "1") in new stack
  43. -- Executing [12604374171@Check-Room-Status:8] Wait("Motif/12604374171@voice.google.com-ed69", "4") in new stack
  44.  
  45. -- Executing [12604374171@Check-Room-Status:17] SendDTMF("Motif/12604374171@voice.google.com-ed69", "2") in new stack
  46. -- Executing [12604374171@Check-Room-Status:18] Wait("Motif/12604374171@voice.google.com-ed69", "30") in new stack
  47.  
  48. -- Executing [12604374171@Check-Room-Status:19] StopMonitor("Motif/12604374171@voice.google.com-ed69", ")") in new stack
  49. -- Executing [12604374171@Check-Room-Status:20] SendDTMF("Motif/12604374171@voice.google.com-ed69", "0") in new stack
  50.  
  51. -- Executing [12604374171@Check-Room-Status:21] Wait("Motif/12604374171@voice.google.com-ed69", "1") in new stack
  52.  
  53. -- Executing [12604374171@Check-Room-Status:22] SendDTMF("Motif/12604374171@voice.google.com-ed69", "0") in new stack
  54. -- Executing [12604374171@Check-Room-Status:23] Hangup("Motif/12604374171@voice.google.com-ed69", "") in new stack
  55.  
  56. -- Executing [h@Check-Room-Status:3] System("Motif/12604374171@voice.google.com-ed69", "echo " Call lasted 120 seconds" | mutt -a "/var/spool/asterisk/monitor/2604374171-20151114192312.wav" -s "Chat Room Results 20151114-192432" -c "test@ktcsg.com" -- test@cyfordtechnologies.com )")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement