Solved

Asterisk dialing out from system

Posted on 2011-02-22
2
379 Views
Last Modified: 2013-11-12
Hi,

we are designing our own system and want to be able to dial our clients using a mysql database with their phone numbers in. We then want a pre-recorded message played to them. Somthing like:

 " Welcome to XXXXX we have now activated your account.
Press 1 If you understand and would like to end the call.
Press 2 If you would like to speak to an Agent about your account."

For both instances I would like the results of either pressing 1 or 2 to be stored into a mysql database. Also I would want to store if the call was picked up, dead number etc...

Main sssue we are having is that we can only initiate calls directly from extensions currently, as the example below is shown. This example means that extension 4003 rings and then the other number is rang. How can we get the system to do this itself, without the need for a physical phone to be plugged in?

Action: Originate
Channel: SIP/4003
Context: test3
CallerID: 01613584781
CallerIDName: Jason
Exten: 9078424551450
Priority: 1

Open in new window

0
Comment
Question by:andybrooke
2 Comments
 
LVL 36

Expert Comment

by:grblades
ID: 34958974
I think your problem is that you have the call file doing things the wrong way round. You are having it call the phone 4003 and then when answered put it through to the extension which dials the customer.
I think what you want is something like the following which would call the customer and if answered would put it through to an extension which would play the recording and offer the ivr menu.
Channel: Zap/1/078424551450
MaxRetries: 0
RetryTime: 60
WaitTime: 30
Context: ivr-menu
Extension: menu1
Priority: 2

Open in new window

0
 
LVL 25

Accepted Solution

by:
kode99 earned 500 total points
ID: 34991237
I imagine this is relating to the other question you posted about AMI originate.

Now I see what you are trying to do.

The problem with the original is you were trying to use the outgoing channel but also pointing it toward a dialplan context/extension that was trying to dial the same channel.  

grblades has posted a call file that addresses the same issue,  you have to point the originate to a point in the dialplan that will do the prompting etc.

So if you dial using a similar AMI originate as the other question but change where it points on the extension and context,

Action: Originate
Channel: SIP/VoipUnlimited/908457203040
Context: callouttest
CallerID: 01613584515
CallerIDName: Jason
Exten: 1001
Priority: 1

where the context in the dialplan is something like,

[callouttest]
exten => 1001,1,Answer()
exten => 1001,n,Wait(1)
exten => 1001,n,Playback(tt-monkeys)
exten => 1001,n,Hangup

So with this case it will dial out the 908 number on the sip provider.  The line will ring and when and when the 908 number is answered Asterisk will pick up and after a 1 second pause playback the screaming monkeys.  Without the need for the internal extension to be used.

A couple of simple examples of IVR using the Background,

This one is started via a call file and is an example of the same type of call out you are doing,
http://voip-info.info/wiki/view/Asterisk+auto-dial+out+deliver+message#comment_38218

This is a basic IVR for incoming calls.  You probably would not use the 's' extension but the originate can point to the mainmenu context,  s extension at priority 1 to start it off.

http://www.voip-info.org/wiki/view/Asterisk+tips+ivr+menu
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

Suggested Solutions

How To Create Custom / Distinctive Ring Tones on Polycom Phones Purpose and Overview When creating a custom ring tone, you have simple aspirations: to make your phone cooler than everyone else's. Perhaps you need a louder ringer. Perhaps you w…
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 Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

911 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

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now