<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19120">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>Thank you very much for the reply.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Good point about the calls not reaching the target.
In thinking about it it might be better to send a text or email to
them.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>I do want to learn about the event socket though,
so I'll study up on that. After I sent the question I noticed the freeSWITCH
book has a chapter on that and there's a lot online about it.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>I really appreciate the help everyone
provides.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Dave</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px"
dir=ltr>
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B>
<A title=msc@freeswitch.org href="mailto:msc@freeswitch.org">Michael
Collins</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=freeswitch-users@lists.freeswitch.org
href="mailto:freeswitch-users@lists.freeswitch.org">FreeSWITCH Users Help</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, September 28, 2011 7:18
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Freeswitch-users] Outbound
calling with recorded message.</DIV>
<DIV><BR></DIV>Once you have the calls logged into a database then it is a
relatively simple matter to generate the outbound calls using the event
socket. The real challenge (IMHO) is accounting for the outbound calls that
don't actually reach the target, or that go to the target's voicemail,
etc.
<DIV><BR></DIV>
<DIV>For the sake of simplicity, let's assume that each person you call will
answer. From there you just need a simple dialplan extension that does a
record app with a specific filename. (You need to match up the filename
recorded with the person you called. You could use <phone_num>.wav I
suppose.) From there it's a matter of launching the calls. I don't do much
with Windows but there are plenty of folks here who do. If you can establish
an event socket connection then you can execute a bunch of "originate" API
calls to generate your outbound calls.</DIV>
<DIV><BR></DIV>
<DIV>Let's say your dialplan extension for recording the name is this:</DIV>
<DIV><FONT class=Apple-style-span size=1
face="'courier new', monospace"><extension name="get their
name"></FONT></DIV>
<DIV><FONT class=Apple-style-span size=1
face="'courier new', monospace"> <condition
field="destination_number"
expression="^OB_IVR_Record_Name_(\d+)$"></FONT></DIV>
<DIV><FONT class=Apple-style-span size=1
face="'courier new', monospace"> <action
application="answer"/></FONT></DIV>
<DIV><FONT class=Apple-style-span size=1
face="'courier new', monospace"> <action application="sleep"
data="1000"/></FONT></DIV>
<DIV><FONT class=Apple-style-span size=1
face="'courier new', monospace"> <action
application="playback" data="please_record_your_name.wav"/></FONT></DIV>
<DIV><FONT class=Apple-style-span size=1
face="'courier new', monospace"> <action
application="playback" data="tone_stream://%(1000,0,1500)"/></FONT></DIV>
<DIV><FONT class=Apple-style-span size=1
face="'courier new', monospace"> <action application="record"
data="/tmp/$1.wav 25 200"/></FONT></DIV>
<DIV><FONT class=Apple-style-span size=1
face="'courier new', monospace"> </condition></FONT></DIV>
<DIV><FONT class=Apple-style-span size=1
face="'courier new', monospace"></extension></FONT></DIV>
<DIV><BR></DIV>
<DIV>You can generate a call with this API:</DIV>
<DIV><BR></DIV>
<DIV><FONT class=Apple-style-span size=1
face="'courier new', monospace">originate sofia/gw/gwname/18005551212
OB_IVR_Record_Name_8005551212</FONT></DIV>
<DIV><BR></DIV>
<DIV>If it works then you'll end up with /tmp/8005551212.wav and hopefully
they'll have given you the info you need. </DIV>
<DIV><BR></DIV>
<DIV>As for generating these calls, if you don't need something too fancy you
could just use a program written in the scripting language of your choice.
(Perl, Python, Ruby, and PHP are all suitable for this task.) You could also
write "real" program with Visual Studio if that suits you. The key is that you
will need to keep track of what happens when you make all these calls and be
sure not to keep calling them over and over again. :)</DIV>
<DIV><BR></DIV>
<DIV>I've done this sort of thing with just Perl scripts and it works really
well. </DIV>
<DIV><BR></DIV>
<DIV>-MC</DIV>
<DIV><BR>
<DIV class=gmail_quote>On Wed, Sep 28, 2011 at 10:35 AM, Dave <SPAN
dir=ltr><<A
href="mailto:dave@clancysystems.com">dave@clancysystems.com</A>></SPAN>
wrote:<BR>
<BLOCKQUOTE
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote><U></U>
<DIV bgcolor="#ffffff">
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Hi all, </FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>I have been using freeSWITCH for a while for
inbound calls in which a person registers for a seminar via IVR. I
simply use the DID, CID number and name to identify the person and put them
in the Database. </FONT><FONT size=2 face=Arial>That part of the application
is working wonderfully.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>The issue I'm presented with now is that we
need automate making calls to a few of these registrants, after each event,
whos caller_id_name comes in as "Unknown" or "Wireless Caller", Play a
recording to let them know we need the name, and that they can record the
information right then, or call the office.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>I am limited to using a Windows 7
machine.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>What would be the best tool to use to automate
these calls with the use of an IVR?</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV><FONT color=#888888>
<DIV><FONT size=2 face=Arial>Dave Goodwin</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2
face=Arial></FONT> </DIV></FONT></DIV><BR><BR>FreeSWITCH-users mailing
list<BR><A
href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</A><BR><A
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
target=_blank>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</A><BR>UNSUBSCRIBE:<A
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
target=_blank>http://lists.freeswitch.org/mailman/options/freeswitch-users</A><BR><A
href="http://www.freeswitch.org"
target=_blank>http://www.freeswitch.org</A><BR><BR></BLOCKQUOTE></DIV><BR></DIV></BLOCKQUOTE></BODY></HTML>