[asterisk-users] How to configure Voice mail for multi users.

Anthony Messina amessina at messinet.com
Thu Mar 20 19:54:39 CDT 2008


On Thursday 20 March 2008 05:06:29 am Mian M Asif wrote:
> Hi eric,
> can you please tell me how can i save the value of EXTEN in a different
> variable before the Goto(s-${DIALSTATUS},1),
>
> thanks for you help,
>
> regards,
> Asif
>
>
> Message: 14
> Date: Wed, 19 Mar 2008 10:39:22 -0500
> From: Eric Wieling <eric at fnords.org>
> Subject: Re: [asterisk-users] How to configure Voice mail for multi
>        users.
> To: Asterisk Users Mailing List - Non-Commercial Discussion
>        <asterisk-users at lists.digium.com>
> Message-ID: <47E133AA.80704 at fnords.org>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Mian M Asif wrote:
> > Hi All,
> > i want to configure voice mail on Asterisk 1.4 for multiple users. let
> > me explain you the scenario.
> >
> > i have 10 users with the name of
> > 1000,2000,3000,4000,5000,6000,.......and these user can call to each
> > other. Now i want to configure separate voice mail box for separate
> > user.
> >
> > my extensions.conf ..... settings below..
> > [voicemail]
> > exten => _X.,1,Dial(SIP/${EXTEN})
> > exten => _X.,n,NoOp(Dial Status: ${DIALSTATUS})
> > exten => _X.,n,Goto(s-${DIALSTATUS},1)
> >
> > exten => s-NOANSWER,1,Background(vm-nobodyavail)
> > exten => s-NOANSWER,n,VoiceMail(${EXTEN}@usersmail)
> > exten => s-NOANSWER,n,Hangup()
>
> As I'm sure you know, ${EXTEN} is the value of the currently executing
> extension, in the example above your line would be parsed as:
> exten => s-NOANSWER,n,VoiceMail(s-NOANSWER at usersmail)  You would have
> seen this if you were watching the Asterisk console when a call failed
> to go to Voicemail.
>
> Find some other way.  You could save the value of EXTEN in a different
> variable before the Goto(s-${DIALSTATUS},1), but there are many, many,
> many other ways.

the variable setting i'm not helpful with, but how about:

[context]
exten => 2200,n,Dial(${DEVICE},20,kKotTwW)
exten => 2200,n,Goto(vm,${EXTEN},1)

[vm]
exten => _X.,1,Exec(${IF($["${DIALSTATUS}" 
= "BUSY"]?VoiceMail(${EXTEN},b):VoiceMail(${EXTEN},u))})
exten => _X.,n,Playback(vm-goodbye)
exten => _X.,n,Hangup()

the only part that gets repeated for each exten are the two lines in [context]

-- 
Anthony -  http://messinet.com - http://messinet.com/~amessina/gallery
8F89 5E72 8DF0 BCF0 10BE 9967 92DC 35DC B001 4A4E
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20080320/9b1b06b5/attachment.pgp 


More information about the asterisk-users mailing list