Displaying 4 results from an estimated 4 matches for "asterisk_sound_files".
2007 Nov 09
3
How to get ten-digit number?
...Returning and then jumping forth to the "cid" extension:
========
exten => 777,1,Set(CALLERIDNUM=${CALLERID(num)})
exten => 777,n,GosubIf($[${LEN(${CALLERIDNUM})} != 10 ]?nocid,1:cid,1)
;prompt user for 10-digit #, and Return to GosubIf()
exten =>
nocid,1,Read(CALLERIDNUM,/root/asterisk_sound_files/no_cid,10)
exten => nocid,n,Verbose(User typed ${CALLERIDNUM})
;Why does it hang up instead of jumping back to GosubIf?
exten => nocid,n,Return
exten => cid,1,Set(CALLERIDNAME = ${DB(cidname/${CALLERIDNUM})})
exten => cid,n,Background(/root/asterisk_sound_files/main_menu)
exten => c...
2007 Nov 21
1
[1.4 - Record] How to tell if user did leave a msg?
...find the answer in the 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],...
2007 Oct 21
2
Prompting for number when CID number not sent?
...(ten digits).
OTOH, those who call without hiding their CID number are sent directly
to the main menu.
How would I go about prompting users for their phone number?
Here's what I have at this point:
========
exten => s,1,Answer
;CID sent : go to main_menu
exten => s,n,Background(/root/asterisk_sound_files/main_menu)
;CID hidden : prompt for CID and loop until ok
exten => s/,n,Playback(/root/asterisk_sound_files/no_cid)
exten =>
_[1-4],1,Playback(/root/asterisk_sound_files/you_can_record_msg)
exten => _[1-4],n,Record(/tmp/asterisk-msg:wav)
exten => _[1-4],n,Wait(1)
exten => _[1-4],n,P...
2007 Nov 10
2
Record() : How to get filename created with %d?
...an listen to the file through their web
browser (ie. with no need to be connected to *), and used TryExec() to
do this:
===========
exten => cid,1,Set(CALLERIDNAME = ${DB(cidname/${CALLERIDNUM})})
;Is there a way to use Background() without using _[1-4] below?
exten => cid,n,Background(/root/asterisk_sound_files/main_menu)
exten => cid,n,Hangup()
exten => _[1-4],1,Set(SOFTWARE=${IF($[${EXTEN}=1]?word)})
exten => _[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...