Damon Estep
2005-Aug-02 06:33 UTC
[Asterisk-Users] priority "a" in macro to access voicemail
I have added the following to a macro that is used for all extensions so a user can access voicemailmain by pressing * during the voicemail prompt ; check voicemail exten => a,1,voicemailmain(${macro_exten}) exten => a,2,hangup The behavior is a little weird, the * key is not recognized during the portion of the greeting where the extension number is being played back, after it is played back, for the duration of the greeting, the * key is recognized and works as expected. Any ideas? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050802/2d8cac00/attachment.htm
Moises Silva
2005-Aug-02 08:56 UTC
[Asterisk-Users] priority "a" in macro to access voicemail
i think may be you should read this: http://www.voip-info.org/tiki-index.php?page=Asterisk%20cmd%20Macro On 8/2/05, Damon Estep <damon@suburbanbroadband.net> wrote:> > > > I have added the following to a macro that is used for all extensions so a > user can access voicemailmain by pressing * during the voicemail prompt > > > > ; check voicemail > > exten => a,1,voicemailmain(${macro_exten}) > > exten => a,2,hangup > > > > The behavior is a little weird, the * key is not recognized during the > portion of the greeting where the extension number is being played back, > after it is played back, for the duration of the greeting, the * key is > recognized and works as expected. > > > > Any ideas? > > > > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > > http://lists.digium.com/mailman/listinfo/asterisk-users > >-- "Su nombre es GNU/Linux, no solamente Linux, mas info en http://www.gnu.org"
Damon Estep
2005-Aug-02 17:16 UTC
[Asterisk-Users] priority "a" in macro to access voicemail
I missed the part of that page that has anything to do with the question. The portion of the dialplan I posted is a small snipet of a huge macro, that part that sends you to voicemailmain when * is pressed. It works, but has a small bug as previously stated; "The behavior is a little weird, the * key is not recognized during the portion of the greeting where the extension number is being played back, after it is played back, for the duration of the greeting, the * key is recognized and works as expected."> > i think may be you should read this: > > http://www.voip-info.org/tiki-index.php?page=Asterisk%20cmd%20Macro > > On 8/2/05, Damon Estep <damon@suburbanbroadband.net> wrote: > > > > > > > > I have added the following to a macro that is used for allextensions so> a > > user can access voicemailmain by pressing * during the voicemailprompt> > > > > > > > ; check voicemail > > > > exten => a,1,voicemailmain(${macro_exten}) > > > > exten => a,2,hangup > > > > > > > > The behavior is a little weird, the * key is not recognized duringthe> > portion of the greeting where the extension number is being playedback,> > after it is played back, for the duration of the greeting, the * keyis> > recognized and works as expected. > > > > > > > > Any ideas? > >
Trevor Peirce
2005-Aug-03 13:09 UTC
[Asterisk-Users] priority "a" in macro to access voicemail
Damon Estep wrote:> The behavior is a little weird, the * key is not recognized during the > portion of the greeting where the extension number is being played > back, after it is played back, for the duration of the greeting, the * > key is recognized and works as expected. >res = ast_streamfile(chan, "vm-theperson", chan->language); if (res) return -1; res = ast_waitstream(chan, ecodes); if (res) return res; res = ast_say_digit_str(chan, ext, ecodes, chan->language); if (res) return res; My guess would be that ast_say_digit_str does not handle exiting on * like ast_waitstream does. Fixing is beyond my abilities at the moment, but that's where I would start looking...