On 3/9/08, Godwin Stewart Horwich IT Services <[EMAIL PROTECTED]> wrote:
> On Sun, 9 Mar 2008 16:22:35 +0200, "Atis Lezdins" <[EMAIL PROTECTED]> 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.

Maybe you should ask for best way for this in asterisk-dev. I checked
wat you're saying and it seems to me that more logical would be to
play "auth-thankyou" in application, not __ast_play_and_record(), but
it may break some concept.

Regards,
Atis
-- 
Atis Lezdins,
VoIP Project Manager / Developer,
[EMAIL PROTECTED]
Skype: atis.lezdins
Cell Phone: +371 28806004
Cell Phone: +1 800 7300689
Work phone: +1 800 7502835

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to