[asterisk-users] Asterisk OUtbound IVR Recording

Danny Nicholas danny at debsinc.com
Mon Oct 11 08:50:32 CDT 2010


  _____  

From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Jayson Baker
Sent: Saturday, October 09, 2010 4:46 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Asterisk OUtbound IVR Recording

 

cmd record ?

On Sat, Oct 9, 2010 at 1:28 AM, Govind, Mahesh (NSN - IN/Bangalore)
<mahesh.govind at nsn.com> wrote:

HI,
I have a scenario like the following .

A user clicks on the web page  . This triggers an outbound call to users
phone number .
Now the user has to leave a message  .

What is the best way of doing this ? Do we have any example of such a
dial plan .
Regards
Mahesh



This is a simple context that plays "static" messages welcome, important and
calllater.  It plays a "passed" message as well.  To use as you want, just
replace Background(${Data}) with Record(${Data}.gsm).  Lines 3-4 incorporate
a wait if the call isn't a SIP line because DAHDI has a 3-7 second delay on
Answer (worse if calling a cell phone).


[accept]

exten => s,1,Answer

exten => s,n,Set(IVRTRY=0)

exten => s,n,Gotoif($["${EXTEN}" > "SIP"]?start)

exten => s,n,Wait(9)

exten => s,n(start),Background(welcome)

exten => s,n,Background(important)

exten => s,n,WaitExten(5,m)

exten => s,n,Set(IVRTRY=$[${IVRTRY} +1])

exten => s,n,Verbose(Try ${IVRTRY})

exten => s,n,Gotoif($["${IVRTRY}" < "4"]?accept|s|start)

exten => s,n,Goto(end-call|s|1)

exten => 1,1,ForkCDR(v,s(fullcmd=${Data}))

exten => 1,n,Background(${Data})

exten => 1,n,Background(repeatmsg)

exten => 1,n,WaitExten(5,m)

exten => 1,n,Goto(end-call|s|1)

exten => 2,1,Background(calllater)

exten => 2,n,ForkCDR(v,s(reject=${Data}))

exten => 2,n,Goto(end-call|s|1)

exten => 3,1,Goto(accept|1|2)

exten => *,1,Goto(accept|s|1)

exten => i,1,Goto(accept|s|1)

exten => t,1,Goto(accept|s|1)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20101011/e8b76d65/attachment.htm 


More information about the asterisk-users mailing list