Has anyone set it up so that an inside call and an outside call get different unavailable messages? j
Here is one way you could do it. Have your inside calls be busy and outside be unavailable. Then use CALLERID(num) to determine the source of the call then do Voicemail(blah,b) or Voicemail(blah,u) depending on the call source. Here's an example using the "ex-girlfriend" logic; 100 is unavailable, everyone else is busy - exten => s,1,Noop - exten => s,n/100,Voicemail(100,u) - exten => s,n,Voicemail(100,b) - exten => s,n,Hangup -----Original Message----- From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Jeff LaCoursiere Sent: Tuesday, June 09, 2009 8:33 AM To: asterisk-users at lists.digium.com Subject: [asterisk-users] voicemail Has anyone set it up so that an inside call and an outside call get different unavailable messages? j _______________________________________________ -- 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090609/e00d1f3a/attachment.htm
Jeff LaCoursiere schrieb:> Has anyone set it up so that an inside call and an outside call get > different unavailable messages?Yes. AGI() -- optional if(...){...}else{...} Philipp Kempgen -- AMOOMA GmbH - Bachstr. 126 - 56566 Neuwied -> http://www.amooma.de Gesch?ftsf?hrer: Stefan Wintermeyer, Handelsregister: Neuwied B14998 Asterisk: http://the-asterisk-book.com - http://das-asterisk-buch.de Videos of the AMOOCON VoIP conference 2009 -> http://www.amoocon.de --
On Tue, 9 Jun 2009, Philipp Kempgen wrote:> Jeff LaCoursiere schrieb: >> Has anyone set it up so that an inside call and an outside call get >> different unavailable messages? > > Yes. > AGI() -- optional > if(...){...}else{...} >I appreciate the sarcasm - I suppose I should have been a bit more clear. (and thanks, Danny, for the suggestion to re-use the busy message and some dialplan logic). The question should have read: "Has anyone patched the voicemail app such that inside/outside messages are CLEARLY supported", i.e. they have menu options for recording inside and outside greetings, and the app can accept some form of argument specifying an inside or outside call? This is something that is pretty standard on PBX systems, and I have been beaten up about it again this morning. Just wondering if anyone had taken the time to make such a patch. j
Since you restated this clearly, it seems to be a pretty simple 2 place patch; app_voicemail.c would need the option added to play the new messages (add an I and O option to the existing b,u,s,g and j options) and app_voicemailmain.c would need the option added to record them. Steve Edwards eats these patches for lunch. -----Original Message----- From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Jeff LaCoursiere Sent: Tuesday, June 09, 2009 9:04 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] voicemail On Tue, 9 Jun 2009, Philipp Kempgen wrote:> Jeff LaCoursiere schrieb: >> Has anyone set it up so that an inside call and an outside call get >> different unavailable messages? > > Yes. > AGI() -- optional > if(...){...}else{...} >I appreciate the sarcasm - I suppose I should have been a bit more clear. (and thanks, Danny, for the suggestion to re-use the busy message and some dialplan logic). The question should have read: "Has anyone patched the voicemail app such that inside/outside messages are CLEARLY supported", i.e. they have menu options for recording inside and outside greetings, and the app can accept some form of argument specifying an inside or outside call? This is something that is pretty standard on PBX systems, and I have been beaten up about it again this morning. Just wondering if anyone had taken the time to make such a patch. j _______________________________________________ -- 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
Jeff LaCoursiere schrieb:> "Has anyone patched the voicemail app such that inside/outside messages > are CLEARLY supported", i.e. they have menu options for recording inside > and outside greetings, and the app can accept some form of argument > specifying an inside or outside call?You could (ab)use the distinction between unavailable/busy for internal/external, i.e. modify the announcement in VoiceMailMain() and call VoiceMail(...,u) for internal calls and VoiceMail(...,b) for external calls. Or you could do something like Playback(...); VoiceMail(...,s); to play custom announcements for internal/external. You could either modify the announcement in VoiceMailMain() so users are not mislead or add extensions (*99, *98, whatever) to record the announcements. Or you could use MiniVM in Asterisk 1.6 I guess. Philipp Kempgen -- AMOOMA GmbH - Bachstr. 126 - 56566 Neuwied -> http://www.amooma.de Gesch?ftsf?hrer: Stefan Wintermeyer, Handelsregister: Neuwied B14998 Asterisk: http://the-asterisk-book.com - http://das-asterisk-buch.de Videos of the AMOOCON VoIP conference 2009 -> http://www.amoocon.de --