VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
g.stewart at horwits.c... Guest
|
Posted: Fri Mar 07, 2008 3:34 am Post subject: [asterisk-users] Silencing VoiceMail() app in * 1.4.10 |
|
|
Hi there,
Googling through the archives it looks like I'm the ferst person to want
this...
My aim is to set up a voicemail application with a custom greeting before
*AND AFTER* the punter has left the message.
Right now the relevant section of my dialplan is like this:
exten => 2,1,Playback(/media/asterisk/answerphone-en)
exten => 2,n,VoiceMail(2000,s)
exten => 2,n,Playback(/media/asterisk/thankyou-en)
exten => 2,n,Hangup()
The 's' option to VoiceMail() silences the prompt, leaves the beep just
before going into 'record' mode, but also plays back auth-thankyou after
the user hits the # key.
How can I suppress playback of auth-thankyou at the end or get VoiceMail()
to play back a different file?
Thanks in advance,
--
Godwin Stewart - Horwich IT services |
|
Back to top |
|
|
mkezys at gmail.com Guest
|
Posted: Fri Mar 07, 2008 5:10 am Post subject: [asterisk-users] Silencing VoiceMail() app in * 1.4.10 |
|
|
Hello,
Just find this file in /var/lib/asterisk/sounds and change it to anything
you like.
Regards,
Mindaugas Kezys
http://www.kolmisoft.com
MOR PRO - Advanced Billing for Asterisk PBX
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Horwich IT
Services (Godwin Stewart)
Sent: Friday, March 07, 2008 10:35 AM
To: asterisk-users at lists.digium.com
Subject: [asterisk-users] Silencing VoiceMail() app in * 1.4.10
Hi there,
Googling through the archives it looks like I'm the ferst person to want
this...
My aim is to set up a voicemail application with a custom greeting before
*AND AFTER* the punter has left the message.
Right now the relevant section of my dialplan is like this:
exten => 2,1,Playback(/media/asterisk/answerphone-en)
exten => 2,n,VoiceMail(2000,s)
exten => 2,n,Playback(/media/asterisk/thankyou-en)
exten => 2,n,Hangup()
The 's' option to VoiceMail() silences the prompt, leaves the beep just
before going into 'record' mode, but also plays back auth-thankyou after
the user hits the # key.
How can I suppress playback of auth-thankyou at the end or get VoiceMail()
to play back a different file?
Thanks in advance,
--
Godwin Stewart - Horwich IT services
_______________________________________________
-- 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 |
|
Back to top |
|
|
g.stewart at horwits.c... Guest
|
Posted: Fri Mar 07, 2008 6:07 am Post subject: [asterisk-users] Silencing VoiceMail() app in * 1.4.10 |
|
|
On Fri, 7 Mar 2008 12:10:37 +0200, "Mindaugas Kezys" <mkezys at gmail.com>
wrote:
Quote: | Just find this file in /var/lib/asterisk/sounds and change it to anything
you like.
|
But that will break other applications that use the auth-thankyou sound,
Authenticate() for a start (which I use elsewhere in order to remote check
the voicemailbox).
--
Godwin Stewart - Horwich IT services |
|
Back to top |
|
|
mkezys at gmail.com Guest
|
Posted: Fri Mar 07, 2008 9:08 am Post subject: [asterisk-users] Silencing VoiceMail() app in * 1.4.10 |
|
|
Hello,
Then you can change channel language in front of VoiceMail() app and in
appropriate place put auth-thankyou file which is recorded/made by you.
Regards,
Mindaugas Kezys
http://www.kolmisoft.com
MOR PRO - Advanced Billing for Asterisk PBX
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Horwich IT
Services (Godwin Stewart)
Sent: Friday, March 07, 2008 1:07 PM
To: asterisk-users at lists.digium.com
Subject: Re: [asterisk-users] Silencing VoiceMail() app in * 1.4.10
On Fri, 7 Mar 2008 12:10:37 +0200, "Mindaugas Kezys" <mkezys at gmail.com>
wrote:
Quote: | Just find this file in /var/lib/asterisk/sounds and change it to anything
you like.
|
But that will break other applications that use the auth-thankyou sound,
Authenticate() for a start (which I use elsewhere in order to remote check
the voicemailbox).
--
Godwin Stewart - Horwich IT services
_______________________________________________
-- 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 |
|
Back to top |
|
|
g.stewart at horwits.c... Guest
|
Posted: Sun Mar 09, 2008 8:11 am Post subject: [asterisk-users] Silencing VoiceMail() app in * 1.4.10 |
|
|
On Fri, 7 Mar 2008 16:08:31 +0200, "Mindaugas Kezys" <mkezys at gmail.com>
wrote:
Quote: | Then you can change channel language in front of VoiceMail() app and in
appropriate place put auth-thankyou file which is recorded/made by you.
|
Much as I dislike this "kludge" because of the potential for b0rkage when
Asterisk is updated, for now I've backed up the original auth-thankyou.gsm
and symlinked silence/1.gsm to auth-thankyou.gsm.
--
Godwin Stewart - Horwich IT services |
|
Back to top |
|
|
atis at iq-labs.net Guest
|
Posted: Sun Mar 09, 2008 9:22 am Post subject: [asterisk-users] Silencing VoiceMail() app in * 1.4.10 |
|
|
On 3/9/08, Godwin Stewart Horwich IT Services <g.stewart at horwits.co.uk> wrote:
Quote: | On Fri, 7 Mar 2008 16:08:31 +0200, "Mindaugas Kezys" <mkezys at gmail.com>
wrote:
Quote: | Then you can change channel language in front of VoiceMail() app and in
appropriate place put auth-thankyou file which is recorded/made by you.
|
Much as I dislike this "kludge" because of the potential for b0rkage when
Asterisk is updated, for now I've backed up the original auth-thankyou.gsm
and symlinked silence/1.gsm to auth-thankyou.gsm.
|
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.
Regards,
Atis
--
Atis Lezdins,
VoIP Project Manager / Developer,
atis at iq-labs.net
Skype: atis.lezdins
Cell Phone: +371 28806004
Cell Phone: +1 800 7300689
Work phone: +1 800 7502835 |
|
Back to top |
|
|
g.stewart at horwits.c... Guest
|
Posted: Sun Mar 09, 2008 1:09 pm Post subject: [asterisk-users] Silencing VoiceMail() app in * 1.4.10 |
|
|
On Sun, 9 Mar 2008 16:22:35 +0200, "Atis Lezdins" <atis at iq-labs.net> wrote:
Quote: | 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 |
|
Back to top |
|
|
atis at iq-labs.net Guest
|
Posted: Sun Mar 09, 2008 2:49 pm Post subject: [asterisk-users] Silencing VoiceMail() app in * 1.4.10 |
|
|
On 3/9/08, Godwin Stewart Horwich IT Services <g.stewart at horwits.co.uk> wrote:
Quote: | On Sun, 9 Mar 2008 16:22:35 +0200, "Atis Lezdins" <atis at iq-labs.net> wrote:
Quote: | 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,
atis at iq-labs.net
Skype: atis.lezdins
Cell Phone: +371 28806004
Cell Phone: +1 800 7300689
Work phone: +1 800 7502835 |
|
Back to top |
|
|
g.stewart at horwits.c... Guest
|
Posted: Sun Mar 09, 2008 3:54 pm Post subject: [asterisk-users] Silencing VoiceMail() app in * 1.4.10 |
|
|
On Sun, 9 Mar 2008 21:49:34 +0200, "Atis Lezdins" <atis at iq-labs.net> wrote:
Quote: | Maybe you should ask for best way for this in asterisk-dev.
|
Good point. I'll probably do that tomorrow.
Quote: | 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.
|
The thing is there are multiple applications that use these functions and
that are liable to want to say "thank you" afterwards. With that in mind,
it does make more sense to have the message sent out from the common
denominator rather than from each application that uses that common
denominator. However, I also agree with your statement that the 's' option
should silence *everything* with the exception, perhaps, of the beep before
recording starts.
--
Godwin Stewart - Horwich IT services |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|