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

Per Jessen per at computer.org
Thu Feb 4 10:06:48 CST 2010


Danny Nicholas wrote:

> Set the emailaddr into a channel variable.  Since I'm there, just make
> your h exten do the system if ${WAV} and ${emailaddr} are longer than
> 1.  Like this.
> 
> - exten = h,1,noop(hangup logic)
> - exten = h,n,Gotoif($["${LEN(${WAV})}" < "4"]?just_hangup)
> - exten = h,n,Gotoif($["${LEN(${emailaddr})}" < "4"]?just_hangup)
> - exten = h,n,System(send-recorded-conversation ${WAV}.wav ${EXTEN:1}
> ${emailaddr})
> - exten = h,n(just_hangup),Hangup
> --
> Danny Nicholas

Thanks Danny.


/Per Jessen, Zürich




More information about the asterisk-users mailing list