[Home]

Summary:ASTERISK-00551: [patch] Added option 'i' to voicemail to play only instructions, skipping greeting/intro message
Reporter:connor (connor)Labels:
Date Opened:2003-11-20 16:48:43.000-0600Date Closed:2011-06-07 14:04:55
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) instructonly.patch
Description:If the extension is preceded by a 'i' then the instructions for leaving the message will be played, but the gretting/intro message will be skipped.

****** ADDITIONAL INFORMATION ******

exten => _xxx,1,Voicemail2(i${exten})
Comments:By: km (km) 2003-11-22 15:00:54.000-0600

Patch works for me in normal environment.   Code is simple, probably not many ways to "screw this one up"

By: Brian West (bkw918) 2003-11-23 14:46:17.000-0600

haha true.

By: Tilghman Lesher (tilghman) 2003-11-23 16:20:24.000-0600

I don't know if this is the right way to do this.  I think it might be better to convert all the boolean parameters into a single argument, whereby the function is called with VM_INSTRUCTONLY | VM_BUSY, for example.  In the future, there's probably going to be more such flags without arguments, and this makes the function more extensible.

By: Brian West (bkw918) 2003-11-23 16:25:42.000-0600

This patch isn't even needed.  If you call Voicemail(${EXTEN}) without a u or a b it will just play the instructions.