[asterisk-users] Silencing VoiceMail() app in * 1.4.10

Horwich IT Services (Godwin Stewart) g.stewart at horwits.co.uk
Sun Mar 9 13:09:57 CDT 2008


On Sun, 9 Mar 2008 16:22:35 +0200, "Atis Lezdins" <atis at iq-labs.net> wrote:

> I think that giving 's' argument should silence all prompts including
> auth-thankyou. You should report a bug on http://bugs.digium.com ,
> fixing this should be trivial.

It isn't that trivial.

I've looked at the source and the "silent" flag is not passed all the way
down the chain to the function that actually does the recording.

In apps/app_voicemail.c, the option is parsed by vm_exec() and passed on to
leave_voicemail().

leave_voicemail(), however, doesn't pass it down to play_record_review().
So by the time the call stack goes through ast_play_and_record_full() and
__ast_play_and_record() in main/app.c, where we see the foillowing code,
the status of the "silent" option is long lost:

if (outmsg == 2) {
	ast_stream_and_wait(chan, "auth-thankyou", chan->language,"");
}

I will, however, work on a patch to pass the silent option down the chain
to this function, but it's going to mean a major overhaul.

-- 
Godwin Stewart - Horwich IT services



More information about the asterisk-users mailing list