[asterisk-users] asterisk login to voicemail
Danny Nicholas
danny at debsinc.com
Thu Apr 7 14:29:57 CDT 2011
You're on the right track, but # is going to blow away ${EXTEN} so you are
going to have to hard-code that value or use a different variable that
contains what should have been in ${EXTEN}. Also, #,n has to be #,1 (each
part of a context has to have line 1 - not my rule, Asterisk's)
_____
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of vip killa
Sent: Thursday, April 07, 2011 2:25 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] asterisk login to voicemail
I'm sorry I'm new to AGI programming but i did this:
$AGI->set_variable("vmbox", $options);
$AGI->set_context("voicemail");
and in extensions.conf i have:
[voicemail]
exten => s,1,VoiceMail(${vmbox},su)
exten => #,n,VoiceMailMain(${EXTEN}@4)
I keep getting 603 declined when i call the number...
On Thu, Apr 7, 2011 at 3:09 PM, Danny Nicholas <danny at debsinc.com> wrote:
If you add the exten => #,1 line to the end of the inbound context, that
should do it for you. If not, change $AGI->exec("VoiceMail",$options) to go
to a context instead of running Voicemail directly.
_____
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of vip killa
Sent: Thursday, April 07, 2011 2:04 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] asterisk login to voicemail
i'm afraid my setup is more complex than that....
[inbound]
exten => _X.,1,agi(route.pl)
after some logic using mysql, route.pl then does:
$AGI->exec("VoiceMail", $options);
at that point, I would like the caller to be able to push '#' and be
prompted for Password for that particular mailbox
On Thu, Apr 7, 2011 at 2:58 PM, Danny Nicholas <danny at debsinc.com> wrote:
_____
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of vip killa
Sent: Thursday, April 07, 2011 1:56 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [asterisk-users] asterisk login to voicemail
Is there a way to login to a voicemail box when someone pushes '#' during
greeting?
[Danny Nicholas]
Here is one way:
[greeting]
Exten => s,1,background(greeting)
Exten =>s,n,hangup
Exten => #,1,voicemailmain(100 at default)
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
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/20110407/7e1d4edd/attachment-0001.htm>
More information about the asterisk-users
mailing list