While setting my first couple IP phones, I set their voicemail buttons to an extension that runs VoicemailMain. exten => 8500,1,Wait(1) ; voicemail exten => 8500,2,VoicemailMain ; exten => 8500,3,Hangup ; I would like to be able to pass the mailbox number allowing each phone to go in directly but I'd rather tno have a bunch of different extensions with the mailbox number hard coded: exten => 8500,1,Wait(1) ; voicemail exten => 8500,2,VoicemailMain(${VMBOX}) ; exten => 8500,3,Hangup ; The hitch is, I'm not sure how to identify the voicemail box associated with the channel. Is there an way to get the current channel's "mailbox=" value from the iax|sip|zapata.conf files as a variable for use in the dialplan? Thanks, Paul -- Paul A. Dugas Dugas Enterprises, LLC email: paul@dugasenterprises.com 1711 Indian Ridge Drive phone: 404.932.1355 fax: 770.516-4841 Woodstock, GA 30189 USA [ onsite at the Georgia DOT's West Annex, 404.463.2860 x158 ]
; Voice Mail exten => *98,1,Answer exten => *98,2,VoiceMailMain(s${CALLERIDNUM}) exten => *98,3,Hangup -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Paul Dugas Sent: Friday, October 08, 2004 8:17 AM To: Asterisk-Users@lists.digium.com Subject: [Asterisk-Users] Bypass VoiceMail Mailbox prompt While setting my first couple IP phones, I set their voicemail buttons to an extension that runs VoicemailMain. exten => 8500,1,Wait(1) ; voicemail exten => 8500,2,VoicemailMain ; exten => 8500,3,Hangup ; I would like to be able to pass the mailbox number allowing each phone to go in directly but I'd rather tno have a bunch of different extensions with the mailbox number hard coded: exten => 8500,1,Wait(1) ; voicemail exten => 8500,2,VoicemailMain(${VMBOX}) ; exten => 8500,3,Hangup ; The hitch is, I'm not sure how to identify the voicemail box associated with the channel. Is there an way to get the current channel's "mailbox=" value from the iax|sip|zapata.conf files as a variable for use in the dialplan? Thanks, Paul -- Paul A. Dugas Dugas Enterprises, LLC email: paul@dugasenterprises.com 1711 Indian Ridge Drive phone: 404.932.1355 fax: 770.516-4841 Woodstock, GA 30189 USA [ onsite at the Georgia DOT's West Annex, 404.463.2860 x158 ] _______________________________________________ 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
> -----Original Message----- > From: Paul Dugas [mailto:Paul@DugasEnterprises.com] > Sent: Friday, October 08, 2004 9:17 AM > To: Asterisk-Users@lists.digium.com > Subject: [Asterisk-Users] Bypass VoiceMail Mailbox prompt > > > The hitch is, I'm not sure how to identify the voicemail box > associated with the channel. Is there an way to get the > current channel's "mailbox=" value from the > iax|sip|zapata.conf files as a variable for use in the dialplan? >Our Mailbox numbers correspond with the caller id so we use the ${CALLERIDNUM} variable to pass to VoiceMailMain. It would be nice to be able to grab the mailbox= value from the channels respective config file. Right now all I can think of would be to either patch app_voicemail to use that value (maybe using a flag or something) or to execute a res_perl script to get the mailbox number from the channel and make it available in the dialplan. Just my .02 cents worth. Good luck, Robert Jackson