[Asterisk-Users] Extension Logic Question

Kevin Asterisk at gtcus.com
Tue May 4 10:26:05 MST 2004


I have an extension context that performs an assisted ParkandAnnounce
page. I create a temporary sound file to be played but I would like to
delete it after being used in the page park application.  I cant figure
out how to delete the file after it is used in the context
ParkandAnnounce.

Can anyone offer a suggestion?

Thanks,

Kevin




exten => _7XXXX,1,Answer
exten => _7XXXX,2,Wait(1)
exten => _7XXXX,3,Playback(paging)
exten =>
_7XXXX,4,Playback(/var/spool/asterisk/voicemail/default/${EXTEN:1}/greet
)
exten => _7XXXX,5,Playback(presspound)
exten => _7XXXX,6,Record(/tmp/pageperson%d:wav)
exten => _7XXXX,7,Wait(1)
exten => _7XXXX,8,Playback(${RECORDED_FILE}})
exten => _7XXXX,9,Wait(1)
exten =>
_7XXXX,10,ParkAndAnnounce(beep:beep:beep:/var/spool/asterisk/voicemail/d
efault/${EXTEN:1}/greet:${RECORDED_FILE}:hldonext:PARKED|60|Console/dsp|
extensions,${EXTEN:1},1) ^M
exten => _7XXXX,11,System(rm ${RECORDED_FILE})
exten => _7XXXX,12,Hangup
^





More information about the asterisk-users mailing list