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
On Thu, 2007-04-12 at 13:28 +0200, Suity Zsolt wrote:> 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.I have not tried this, so I may be off - but do you really have to do this? The documentation I have indicates that if there is an extension T in the context, that extension is used at the absolute timeout. So, would: exten => T,1,<play your warning message> exten => T,n,Hangup work? HTH, -- Bob Smither <smither@c-c-i.com>
Bob Smither wrote:> On Thu, 2007-04-12 at 13:28 +0200, Suity Zsolt wrote: >> 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. > > I have not tried this, so I may be off - but do you really have to do > this? The documentation I have indicates that if there is an extension > T in the context, that extension is used at the absolute timeout. So, > would: > > exten => T,1,<play your warning message> > exten => T,n,HangupWhat if he wants to warn the caller with 30 seconds remaining? Then 15? Then 5? -Stephen-