Solved

How to make IVR in Asterisk

Posted on 2010-08-20
6
548 Views
Last Modified: 2013-11-12
How to make IVR in ASTERISK and  What are the prerequisite for IVR
0
Comment
Question by:pawanopensource
  • 3
  • 3
6 Comments
 
LVL 7

Accepted Solution

by:
nauliv earned 500 total points
ID: 33490816
Hello Pawan,

Asterisk will allow you to have IVR right out of the box. When you install Asterisk, make sure you include the sample sound files so that you can start testing IVR without having to record sound files yourself.

You do not need any particular hardware on your Asterisk server; a simple PC with a network card, asterisk installed, allows you to run an Asterisk SIP server, create an IVR, and connect with an IP Phone or Soft phone.

This book will guide you through the steps of creating your first IVR. See page 127.
http://cdn.oreilly.com/books/9780596510480.pdf

Have Fun !
0
 

Author Comment

by:pawanopensource
ID: 33494379
hi friend,
in asterisk i had made pbx. now i want to complete IVR so that i can give solutions to my clients.

here is what i want. suppose my compnay name is oss

A - when some one calls to my PSTN line he should hear the gretting welcome to oss
B - Press 1 to go to sales
C - Press 2 to go to accounts
D - Press 3 to go to marketing
E - Press 4 to go to support
F - or wait for operators assistance

Thx
0
 
LVL 7

Assisted Solution

by:nauliv
nauliv earned 500 total points
ID: 33498563
Hello Pawan,


I'm going to assume that:
* you have an analog TDM card (such as the TDM410P), and the context of your card is "incoming".
* the phone for your operator is SIP/100
* you have recorded your welcome sound file in the /var/lib/asterisk/sound/welcome-oss

Your dialplan will look like this:

[incoming]
exten => s,1,Answer()
exten => s,n,Background(welcome-oss)
exten => s,n,Exten(15)
exten => s,n,Hangup()

exten => 1,Goto(sales,s,1)
exten => 2,Goto(accounts,s,1)
exten => 3,Goto(marketing,s,1)
exten => 4,Goto(support,s,1)

exten => t,1,Goto(operator,s,1)

[sales]
exten => s,1,[your code for sales]
exten => s,n,[...]

[account]
exten => s,1,[your code for account]
exten => s,n,[...]

[marketing]
exten => s,1,[your code for marketing]
exten => s,n,[...]

[support]
exten => s,1,[your code for support]
exten => s,n,[...]

[operator]
exten => s,1,Dial(SIP/100)
exten => s,n,Hangup()


Let us know if you have any question :)
0
Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

 

Author Comment

by:pawanopensource
ID: 33499696
i am using Sangoma Fxo, using Centos, plz tell me how to record my voice in centos which software should i use for recording my voice for ivr.
thx
0
 

Author Comment

by:pawanopensource
ID: 33540423
waiting for ur guidance.
0
 
LVL 7

Expert Comment

by:nauliv
ID: 33556202
Hello Pawan,

You have a couple of options to record your voice prompts. Either create an extension on your phone that will allow to record a sound file. A very trivial example would be:

[record-sound]
exten => s,1,Answer()
exten => s,n,Playback(dictate/record_mode)
exten => s,n,Record(pawan.wav)
exten => s,n,Playback(auth-thankyou)
exten => s,n,Playback(pawan.wav)
exten => s,n,Hangup()

This example, when you dial the corresponding extension, you will hear "record mode" then you can record your announcement an press # when you are done. You will hear "thank you" and your message playing. If you are satisfied with it, you can rename the "pawan.wav" file to its final name.

You can also record a sound file on your computer. Do you have a microphone, and if yes which operating system are you using ?



Are you using the CentOS machine as your workstation as well, or are you using a Microsoft Windows ?
Let me know what the operating system you have on the machine that has a m
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: user_n
How Sip Phone (User Agent) works and communicates with sip servers 1.  There is a sip server and a sip registrar.  The sip server and sip registrar can be one server or two different servers. The sip registrar is the server on which it is record…
There are no good configuration guides for HP-H3C router to LYNC on the web. :( Big statement, but we havent been able to find one yet. We did find the following document useful, but the information was not enough to use H3C router for use as a L…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question