ian.bonham at gmail.com
Tue Jul 17 00:29:10 MSD 2012
Thanks for getting back to me, this is why I on the whole love the
Linux/FOSS community (most of the time!)
I've actually had a fun afternoon studying more and more about OpenSwitch
and ended up changing my dial logic totally. I now have a PHP script
staying resident, that queries fs_cli every 5 seconds for the number of
active calls. If that number is less than the target number of calls per
agent (in total) I know I need to add some more calls. So the script grabs
a load out the database (based on how many I need to get back to the target
# of calls) and chucks them into FreeSwitch using fs_cli -x and just an
originate. I originate the call and lob it to an extension for that
That 'extension' then launches an LUA script for each call which starts a
playback and runs AVMD at the same time. So we start playing the OGM, but
if I hear a beep tone I just hang up as we're wasting money. If a DTMF has
been detected I process that and handle the call accordingly (If they press
9, I go back to the database and add the number to the DNC list, if they
press 5 I look for an agent that has been waiting the longest and bridge
the call to them).
If neither of those conditions is reached I mark the call in the database
for a retry and count how many times we've tried it (unless it's a duff
number, then I mark it as such and the call centre get a report at the end
of the day on dead lines so they can get a refund on the dead numbers in
any particular data set).
It's almost running now, few bugs to stamp on tomorrow, and then I'll run
it with 20 or so 'test' agents tomorrow or Wednesday and see how hard I can
push it. I'm on an 8 core Xeon dedicated server at the moment, so I'll see
how hard I can thrash that and then see about migrating it to AWS maybe.
Thanks to all the FreeSwitch developers, my job is suddenly fun again!
On 16 July 2012 20:32, Michael Collins <msc at freeswitch.org> wrote:
> Hi Ian,
> Just curious - at what point during the call are you currently launching
> AVMD? In any case, this sounds like a perfect job for "execute_on_answer":
> Just be nice and don't abuse your new found powers! :)
> P.S. - Welcome to the FreeSWITCH community.
> On Mon, Jul 16, 2012 at 1:44 AM, Ian Bonham <ian.bonham at gmail.com> wrote:
>> Hi Everyone,
>> New member, so nice to 'meet' you all!
>> I'm experimenting with FreeSwitch to see how it could replace Asterisk in
>> a mass dialler system that I run in Europe, and I have been playing with
>> the AVMD module. It seems to work perfectly, and does detect voicemail very
>> well. What I am trying to do through is have the dialler generate calls and
>> run as much as possible through FreeSwitch's core, rather than external
>> scripts (I'm using PHP for most of my external functionality as thats what
>> I use to write the agent interfaces too). So I generate individual calls
>> and launch them in FreeSwitch, and it then does most of the call logic from
>> XML dialplan commands, jumping to PHP shell scripts for quick MySQL
>> I'd like very much to be able to run AVMD from the second the call is
>> answered, which is simple enough, but at the same time have my outgoing
>> message playing. So we are assuming the call is a human, but if during the
>> OGM playout AVMD hears a beep, it just terminates the call. Can anyone tell
>> me if this is possible please, either using XML dialplan (I'm guessing not
>> as the XML is sequential), or using a programming script like LUA.
>> Many thanks for any advise anyone can offer,
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> Official FreeSWITCH Sites
> Join Us At ClueCon - Aug 7-9, 2012
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users