[Asterisk-Users] voicemail clients

2005-11-23 Thread Joao Pereira

Hello to all
I have clients registered with names (joao, manuel, etc...) and clients 
registered with numbers (123, 120,...).


To make the number clients receive voicemail, I have this:

exten = _X,1,Answer
exten = _X,2,Wait(1)
exten = _X,3,VoiceMail(u${EXTEN})
exten = _X,4,Playback(vm-goodbye)
exten = _X,5,Hangup


but for the name clients I need these 5 lines for each...

exten = pereira,1,Answer
exten = pereira,2,Wait(1)
exten = pereira,3,VoiceMail(u${EXTEN})
exten = pereira,4,Playback(vm-goodbye)
exten = pereira,5,Hangup

Is there any way I can solve this? making all calls that reach this 
point go to the voicemail?


Thanks
Joao




___
--Bandwidth and Colocation sponsored by Easynews.com --

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


Re: [Asterisk-Users] voicemail clients

2005-11-23 Thread Fred Blaise
Hello Joao, see inline.

On Wed, 2005-11-23 at 15:43 +, Joao Pereira wrote:
 Hello to all
 I have clients registered with names (joao, manuel, etc...) and clients 
 registered with numbers (123, 120,...).
 
 To make the number clients receive voicemail, I have this:
 
  exten = _X,1,Answer
  exten = _X,2,Wait(1)
  exten = _X,3,VoiceMail(u${EXTEN})
  exten = _X,4,Playback(vm-goodbye)
  exten = _X,5,Hangup
 
 
 but for the name clients I need these 5 lines for each...
 
 exten = pereira,1,Answer
 exten = pereira,2,Wait(1)
 exten = pereira,3,VoiceMail(u${EXTEN})
 exten = pereira,4,Playback(vm-goodbye)
 exten = pereira,5,Hangup
 
 Is there any way I can solve this? making all calls that reach this 
 point go to the voicemail?

 You can handle this by writing a macro.

Study this:
http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+Macro

 Thanks
 Joao
 
 
 ___
 --Bandwidth and Colocation sponsored by Easynews.com --
 
 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

-- 
[ - ]
[ idfred a.k.a chapeaurouge ]   
]
[ email chapeaurouge(at)madpenguin(dot)org  ]
[ sip   sip:fred(at)jaolin(dot)net  ]
[ web   http://madpenguin.org   ]
[ - ]

[ GPG info ]
Key fingerprint = 1674 7CBA 4F97 70D7 1A74  C7E9 333E 4335 75B1 4D02
Fetch key: gpg --keyserver pgp.mit.edu --recv-key 75B14D02
or http://madpenguin.org/pubkeys/fred_mp.key


signature.asc
Description: This is a digitally signed message part
___
--Bandwidth and Colocation sponsored by Easynews.com --

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

Re: [Asterisk-Users] voicemail clients

2005-11-23 Thread bbench
On Wednesday 23 November 2005 17:43, Joao Pereira wrote:
 Hello to all
 I have clients registered with names (joao, manuel, etc...) and clients
 reistered with numbers (123, 120,...).

 To make the number clients receive voicemail, I have this:

  exten = _X,1,Answer
  exten = _X,2,Wait(1)
  exten = _X,3,VoiceMail(u${EXTEN})
  exten = _X,4,Playback(vm-goodbye)
  exten = _X,5,Hangup


 but for the name clients I need these 5 lines for each...

 exten = pereira,1,Answer
 exten = pereira,2,Wait(1)
 exten = pereira,3,VoiceMail(u${EXTEN})
 exten = pereira,4,Playback(vm-goodbye)
 exten = pereira,5,Hangup

 Is there any way I can solve this? making all calls that reach this
 point go to the voicemail?
Very ... kind of embarrassing, but interesting .
What if you assign  in voicemail.conf
7373472 = 1234,pereira,[EMAIL PROTECTED]
and then exten = pereira,3,VoiceMail(u7373472)
As you understand pereira is the vanity # of 7373472 
and charge pereira for having vanity # :-)
Don't forget to tell us what happened!
benchev

___
--Bandwidth and Colocation sponsored by Easynews.com --

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