Displaying 3 results from an estimated 3 matches for "leave_msg".
Did you mean:
leave_mm
2007 Nov 21
1
[1.4 - Record] How to tell if user did leave a msg?
...e ATOF 2nd Ed: When using the Record()
application, I need to know how it ended: Did the user leave a
message, or did he hang up?
If the latter, Asterisk stops right there, while I need to run some
other commands before hanging up:
========
exten => _[1-4],n,Playback(/root/asterisk_sound_files/leave_msg)
exten => _[1-4],n,Set(CALLTIME=${STRFTIME(${EPOCH},,%d-%b-%Y-%Hh%M)})
;check if left message : if nothing, script ends there!
exten => _[1-4],n,Record(/tmp/${CALLTIME}.wav,3,30)
exten => _[1-4],n,TrySystem(mv /tmp/${CALLTIME}.wav
/srv/www/lighttpd/asterisk)
exten => _[1-4],n,ExecIf($...
2007 Nov 25
1
[Record() function] Script stops if user doesn't hit # after msg
...th the Record() function: If the
user either hangs up during the prompt (ie. doesn't leave a message at
all), or does leave a message but forgets to hit the # key at the
end... Asterisk stops right there, so the rest of the script doesn't
run:
========
[internal]
exten => 777,1,Playback(leave_msg)
exten => 777,n,Record(/tmp/test.wav,3,30)
;Verbose() not run
exten => 777,n,Verbose(Here we are)
========
Am I doing it wrong? Is there a way to solve this?
Thank you.
2007 Nov 10
2
Record() : How to get filename created with %d?
...ten => _[1-4],n,Set(SOFTWARE=${IF($[${EXTEN}=2]?excel)})
exten => _[1-4],n,Set(SOFTWARE=${IF($[${EXTEN}=3]?powerpoint)})
exten => _[1-4],n,Set(SOFTWARE=${IF($[${EXTEN}=4]?support)})
exten => _[1-4],n,Verbose(Choice = ${SOFTWARE})
exten => _[1-4],n,Playback(/root/asterisk_sound_files/leave_msg)
exten => _[1-4],n,Record(/tmp/msg%d.wav,3,30)
;move wav to lighttpd's htdocs
;How to get filename?
exten => _[1-4],n,TrySystem(mv /tmp/msg%d.wav /var/www/asterisk/)
;ExecIf fails running Verbose()
exten => _[1-4],n,ExecIf($[ ${SYSTEMSTATUS} != "SUCCESS"
],Verbose,Failed mov...