I use an AGI script I wrote. It's specific to my setup, but you can get a copy at http://www.fnords.org/~eric/asterisk/downloads/ You'd have to adapt it to your own needs, of course. Basically it does this: When called with no options it strips off the first 6 digits of the CallerID if the Caller*ID is more than 4 digits. When called with a phone number as an option it replaces the Caller*ID number with the option, but only if the Caller*ID is 4 digits long.
On Mon, 2004-04-05 at 17:53, Mark Hagler wrote: > What do you do when $CALLERIDNUM of the caller isn’t the 4-digit > extension? I set all of my users Caller ID entries to their > 10-digit phone # so that Caller ID appears correctly when I send their > call out the PRI to the public network. The side effect of this is > breaking convenient access to voicemail using this method, and I > haven’t found a way to fix it yet. > > > > > ______________________________________________________________________ > > From:[EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Glenn > Dalgliesh > Sent: Monday, April 05, 2004 3:26 PM > To: [EMAIL PROTECTED] > Subject: Re: [Asterisk-Users] Auto connect to voicemail > > > > I think this is what you are looking for > > > > Exten => 1000,1,Answer,1 > Exten => 1000,2,Wait,1 > Exten => 1000,3,Voicemailmain([EMAIL PROTECTED]) > > ----- Original Message ----- > > From: Mitchell S. Sharp > > To: [EMAIL PROTECTED] > > Sent: Monday, April 05, 2004 5:27 PM > > Subject: Re: [Asterisk-Users] Auto connect to voicemail > > > > On Mon, 2004-04-05 at 15:57, Brian Rathman wrote: > > I have the voicemail setup working in that I get the MWI and it emails the > message correctly. When I pressed the MWI button on my SNOM 200, it dials > into the voicemail system and prompts me for a mailbox and password. I know > there is a way to automatically connect directly into the mailbox via the > extension.conf file, but I can not find the documentation I am looking for > in reference to variables and macros for the extensions file. Can someone > please help me with this issue? > > Thanks, > Brian > > > Brian, > > At the CLI, type 'show application VoiceMailMain'. You can > use the CLI 'show applications' command to list all available > apps. If you hit tab, it acts just like BASH's auto > complete. Wonderful feature! > > Mitch Sharp > Innovative Solutions -- Eric Wieling * BTEL Consulting * 504-899-1387 x2111 "In a related story, the IRS has recently ruled that the cost of Windows upgrades can NOT be deducted as a gambling loss." _______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
