[asterisk-users] Measuring audio file legth

Suity Zsolt suich at yunord.net
Thu Apr 12 04:28:24 MST 2007


Hi,

I have to set call length to 3min, but before hangup have to warn 
caller. There are many IVRmenu and submenu options with different 
warning audio.
I have to measure somehow the audio file length and subtract it from 3 
minutes.

exten => _X.,1,Set(_AudioLegth=MeasureAudioLength(WarningAudioX))
exten => _X.,n,Set(TIMEOUT(absolute)=${${MaxCallDuration}-${AudioLength}})


Any idea?



Thank you!
--
Suich


More information about the asterisk-users mailing list