[asterisk-users] Running a script after Dial() ?

Ben Dinnerville ben at voicelogic.com.au
Thu Feb 4 18:14:31 CST 2010


Per Jessen wrote:
> I have the following dialplan:
> 
> ; calls prefix by '8' are recorded
> exten = _8[01]./_251,1,Set(something=shortened)
> exten = _8[01]./_251,n,Set(WAV=filename)
> exten = _8[01]./_251,n,Monitor(wav,${WAV},mb)
> exten = _8[01]./_251,n,Dial(mISDN/2/${EXTEN:1},,g)
> exten = _8[01]./_251,n,System(send-recorded-conversation ${WAV}.wav
> ${EXTEN:1} emailaddr)
> exten = _8[01]./_251,n,Hangup()
> 
> The idea is that the caller may opt to record a conversation by
> prefixing the dialled number with '8'. The wav file would then be
> emailed to him when the call finishes. 
> The recording works fine, but the emailing doesn't - only when the
> called party hangs up first, but if the caller hangs up, the
> System(script) isn't called.  What am I missing here?
> 
> 
> /Per Jessen, Zürich
> 
Sorry, Monitor also has the "flag" param which allows you to execute a 
command post recording if you want to stick with Monitor and not MixMonitor.


Cheers,

Ben




More information about the asterisk-users mailing list