Summary: | ASTERISK-02878: [new_app] WaitIVR | ||
Reporter: | Anthony Minessale (anthm) | Labels: | |
Date Opened: | 2004-11-23 17:59:44.000-0600 | Date Closed: | 2011-06-07 14:05:11 |
Priority: | Major | Regression? | No |
Status: | Closed/Complete | Components: | Core/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) app_waitivr.c | |
Description: | I was looking at SWait in bug 2984 and I started to fix a few issues I saw and I started re-factoring and re-refactoring and ended up with a new app...... [Synopsis]: IVR Helper Application [Description]: WaitIVR(<timeout>[ms]|<count>|[m]<valid_dtmf>[|[[<context>|]<extension>|]<priority>] Wait for <timeout> seconds (express as milliseconds with trailing 'ms') If an extension of length <count> composed of digits listed in <valid_dtmf> is entered The application will send the channel to that extension regardless of it's existance. The occurance of 'm' anywhere in <valid_dtmf> will play music whilst waiting. <timeout>, <valid_dtmf> and <count> are required but <context>, <exten> and <priority> are optional values to override the location of where to go if a timeout is encountered [ala Goto()] e.g. Wait 5 seconds for a 1 digit extension either 1 or 2 WaitIVR(5|1|12) Wait 5 seconds while playing MOH for a 1 digit extension either 1 or 2 WaitIVR(5|1|m12) Wait 10 seconds for a 2 digit extension containing any digits in [1234567890] - WaitIVR(10|2|1234567890) Wait 1.5 seconds for a 2 digit extension containing any digits in [1234567890] - WaitIVR(1500ms|3|1234567890) Wait 1.5 seconds for a 2 digit extension containing any digits in [1234567890] if no extension in entered then goto exten 'myto,1' in the current context. - WaitIVR(1500ms|2|1234567890|${CONTEXT}|myto|1) ****** ADDITIONAL INFORMATION ****** Disclaimer on file anthmct@yahoo.com | ||
Comments: | By: Mark Spencer (markster) 2004-11-23 23:22:57.000-0600 How is this any different from a context and WaitExten? By: Anthony Minessale (anthm) 2004-11-24 09:04:33.000-0600 whatever.. maybe it's stupid? I don't care at all about this app making it was like doing crossword puzzle for me .... |