Maybe you can use this one as a start:<br><br>It uses a MySQL table (below) to dial out numbers and parking them for the time specified in the table.<br>All you need to do is originate in background not waiting for the result...<br>
<br><br>#!/usr/bin/perl<br><br>use DBI;<br>require ESL;<br><br><br>MysqlConnect();<br><br>my $con = new ESL::ESLconnection("localhost", "8021", "ClueCon");<br>my $mydomain = "myserverIP"<br>
<br>my $sql_numbers = "select * from test_numbers where enabled = 1;";<br>my $sth_numbers = $db->prepare($sql_numbers);<br><br>if (!$sth_numbers->execute()){<br> print "Could NOT execute!\n$sql_numbers\n";<br>
}else{<br> if(($rows_numbers = $sth_numbers->rows)>0){<br> while (my $ref_numbers = $sth_numbers->fetchrow_hashref() ) {<br><br> my $dialstr = "{execute_on_answer='sched_hangup +" . $$ref_numbers{'len_park'} . " alloted_timeout',originate_retries=" . $$ref_numbers{'tries'} . ",originate_retry_sleep_ms=1000}sofia/internal/" . $$ref_numbers{'number'} . "%" . $mydomain . " &park()";<br>
print "DIALSTR: $dialstr \n";<br><br> my $e = $con->api("originate", $dialstr);<br> print $e->getBody();<br> my $uuid = $e->getBody();<br>
<br> SetVar($uuid,"customer_company","DIALER");<br> }<br> }<br>}<br><br>print "\n";<br>exit 0;<br><br><br>sub SetVar($$$){<br> my $uuid = shift;<br>
my $var = shift;<br> my $val = shift;<br> do_api("uuid_setvar", $uuid . " " . $var . " " . $val);<br> return;<br>}<br><br><br><br>sub do_api($$) {<br> my $cmd = shift;<br>
my $args = shift;<br> print "CMD : <$cmd>\nARGS: <$args>\n";<br> my $e = $con->api($cmd, $args);<br> if ($e) {<br> print STDERR $e->getBody() . "\n";<br> }<br>
return;<br>}<br><br>sub MysqlConnect(){<br> $db = DBI->connect('DBI:mysql:dialer:127.0.0.1','root','password');<br> $db->{mysql_auto_reconnect} = 1;<br> if ($db<=0){<br>
print "Error connecting to data server!!!\n" if $debug;<br> exit;<br> }<br>}<br><br>sub fsLog($){<br> my $msg = shift;<br> $con->api("log", "WARNING " . $msg);<br>
}<br><br><br><br>################################################################################<br>#<br># CREATE TABLE `test_numbers` (<br># `id` int(11) NOT NULL auto_increment,<br># `number` varchar(25) NOT NULL,<br>
# `tries` int(11) NOT NULL,<br># `len_park` int(11) NOT NULL,<br># `enabled` int(11) NOT NULL,<br># PRIMARY KEY (`id`)<br># ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8<br>
#<br>################################################################################<br><br><br><br>Good luck.<br><br>David<br><br><div class="gmail_quote">On Mon, Aug 13, 2012 at 4:54 PM, BookBag <span dir="ltr"><<a href="mailto:asaad2@gmail.com" target="_blank">asaad2@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">yeah I see your dillemma, I dont know if vbilling allows you to get to fs_cli , if if it does then you can just enter a whole bunch of originate statements. you can probably use excel to create a massive csv file then copy and paste that into fs_cli which will then call the range of phone numbers you need.<div class="HOEnZb">
<div class="h5"><br>
<br><div class="gmail_quote">On Mon, Aug 13, 2012 at 9:50 AM, BookBag <span dir="ltr"><<a href="mailto:asaad2@gmail.com" target="_blank">asaad2@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
no, mine was a set amount of numbers that were already know and they played a wav file, also my provider only handled 2 concurrent channels at a time. so it would dial 2 numbers at time. Thats why fusionpbx was such a help because it allowed me to do that and all I had to do was cut and paste the numbers I was going to call.<div>
<div><br>
<br><div class="gmail_quote">On Mon, Aug 13, 2012 at 7:33 AM, Jakub Tencl <span dir="ltr"><<a href="mailto:info@pripojtese.net" target="_blank">info@pripojtese.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>The requests is from 10 to 50 concurent
calls with specify call duration and to specify range of the
numbers, if this is what do you have, kind of similar thing, can
you afford it for some conditions please?<br>
<br>
Thanks<br>
<br>
Jakub Tencl <br>
<br>
Dne 11/08/2012 02:43, Brian Foster napsal(a):<br>
</div>
<blockquote type="cite"><div><div>
<p>Newfies Dialer or have it contracted out. We've done something
similar here. </p>
<p>Brian Foster<br>
Endigo Computer LLC</p>
<p>Sent from a mobile device.</p>
<div class="gmail_quote">On Aug 10, 2012 5:45 PM, "Jakub Tencl"
<<a href="mailto:info@pripojtese.net" target="_blank">info@pripojtese.net</a>>
wrote:<br type="attribution">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
Hello,<br>
<br>
i am quite new with freeswitch. Can anybody tell me if
Freeswitch has<br>
module for generating bulk calls and if not can you afford
some template<br>
script for it or just some pointers where i have to go?<br>
<br>
Thank you<br>
<br>
Best Regards<br>
<br>
Jakub<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
Join Us At ClueCon - Aug 7-9, 2012<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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>
</blockquote>
</div>
<br></div></div>
-- <br>
This message has been scanned for viruses and
<br>
dangerous content by
<a href="http://www.mailscanner.info/" target="_blank"><b>MailScanner</b></a>,
and is
<br>
believed to be clean.
<br><div>
<fieldset></fieldset>
<br>
<pre>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a>
Official FreeSWITCH Sites
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a>
Join Us At ClueCon - Aug 7-9, 2012
FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
</pre>
</div></blockquote><span><font color="#888888">
<br>
<br>
<div>-- <br>
<p><font face="Trebuchet MS">Kind Regards<br>
<br>
Jakub Tencl </font></p>
<table border="0" cellpadding="20" width="40%">
<tbody>
<tr>
<td>
<p align="center"><font face="Trebuchet MS"><b>Mobil:</b>
<a href="tel:%2B44%20770%204734%20834" value="+447704734834" target="_blank">+44 770 4734 834</a> or <a href="tel:%2B420%20774%20430%20010" value="+420774430010" target="_blank">+420 774 430 010</a><span lang="en-us">|
</span><b>ICQ:</b> 262823686<span lang="en-us"> | </span><b>Skype:</b>
spycat108</font></p>
</td>
</tr>
<tr>
<td><img src="cid:part13.03080604.04080809@pripojtese.net" border="0" height="128" width="530"></td>
</tr>
<tr>
<td>
<p align="justify"><font face="Trebuchet MS">This
message and any attachment are confidential and may be
privileged or otherwise protected from disclosure. If
you are not the intended recipient,please telephone or
email the sender and delete this message and any
attachment from your system. If you are not the
intended recipient you must not copy this message or
attachment or disclose the contents to any other
person. </font></p>
</td>
</tr>
</tbody>
</table>
<p align="justify"> </p>
</div>
</font></span></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
Join Us At ClueCon - Aug 7-9, 2012<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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></div></blockquote></div><br>
</div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
Join Us At ClueCon - Aug 7-9, 2012<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>