Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Check-Room-Status]
- exten => _X.,1,Answer
- exten => _X.,n,Set(Answertime=${STRFTIME(${EPOCH},,%Y%m%d)}${STRFTIME(${EPOCH},,%H%M%S)})
- exten => _X.,n,Set(CALLFILENAME=${EXTEN:1}-${Answertime})
- exten => _X.,n,Monitor(wav,${CALLFILENAME},m))
- exten => _X.,n,Set(debug=0)
- exten => _X.,n,Wait(8)
- exten => _X.,n,SendDTMF(1)
- exten => _X.,n,Wait(4)
- exten => _X.,n,SendDTMF(9)
- exten => _X.,n,Wait(5)
- exten => _X.,n,SendDTMF(14959381#)
- exten => _X.,n,Wait(3)
- exten => _X.,n,SendDTMF(1)
- exten => _X.,n,Wait(13)
- exten => _X.,n,SendDTMF(8)
- exten => _X.,n,Wait(10)
- exten => _X.,n,SendDTMF(2)
- exten => _X.,n,Wait(30)
- exten => _X.,n,StopMonitor())
- exten => _X.,n,SendDTMF(0)
- exten => _X.,n,Wait(1)
- exten => _X.,n,SendDTMF(0)
- exten => _X.,n,Hangup()
- exten => h,1,Set(Disconnecttime=${STRFTIME(${EPOCH},,%Y%m%d)}${STRFTIME(${EPOCH},,%H%M%S)})
- exten => h,n,Set(PhoneTime=$[${Disconnecttime}-${Answertime}])
- 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 ))
- exten => h,n,System("chown -R asterisk:asterisk /var/spool/asterisk/monitor/ && rm -rf /var/spool/asterisk/monitor/${CALLFILENAME}.wav" ))
- ######################################################################################################################
- -- Executing [12604374171@Check-Room-Status:1] Answer("Motif/12604374171@voice.google.com-ed69", "") in new stack
- -- Executing [12604374171@Check-Room-Status:2] Set("Motif/12604374171@voice.google.com-ed69", "Answertime=20151114192312") in new stack
- -- Executing [12604374171@Check-Room-Status:3] Set("Motif/12604374171@voice.google.com-ed69", "CALLFILENAME=2604374171-20151114192312") in new stack
- -- Executing [12604374171@Check-Room-Status:4] Monitor("Motif/12604374171@voice.google.com-ed69", "wav,2604374171-20151114192312,m)") in new stack
- -- Executing [12604374171@Check-Room-Status:5] Set("Motif/12604374171@voice.google.com-ed69", "debug=0") in new stack
- -- Executing [12604374171@Check-Room-Status:6] Wait("Motif/12604374171@voice.google.com-ed69", "8") in new stack
- -- Executing [12604374171@Check-Room-Status:7] SendDTMF("Motif/12604374171@voice.google.com-ed69", "1") in new stack
- -- Executing [12604374171@Check-Room-Status:8] Wait("Motif/12604374171@voice.google.com-ed69", "4") in new stack
- -- Executing [12604374171@Check-Room-Status:17] SendDTMF("Motif/12604374171@voice.google.com-ed69", "2") in new stack
- -- Executing [12604374171@Check-Room-Status:18] Wait("Motif/12604374171@voice.google.com-ed69", "30") in new stack
- -- Executing [12604374171@Check-Room-Status:19] StopMonitor("Motif/12604374171@voice.google.com-ed69", ")") in new stack
- -- Executing [12604374171@Check-Room-Status:20] SendDTMF("Motif/12604374171@voice.google.com-ed69", "0") in new stack
- -- Executing [12604374171@Check-Room-Status:21] Wait("Motif/12604374171@voice.google.com-ed69", "1") in new stack
- -- Executing [12604374171@Check-Room-Status:22] SendDTMF("Motif/12604374171@voice.google.com-ed69", "0") in new stack
- -- Executing [12604374171@Check-Room-Status:23] Hangup("Motif/12604374171@voice.google.com-ed69", "") in new stack
- -- 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