[Freeswitch-users] AVMD

Ian Bonham ian.bonham at gmail.com
Tue Jul 17 00:29:10 MSD 2012

Hi Michael,

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":
> http://wiki.freeswitch.org/wiki/Channel_Variables#execute_on_answer
> Just be nice and don't abuse your new found powers! :)
> -MC
> 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
>> functions.
>> 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,
>> Ian
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
> Join Us At ClueCon - Aug 7-9, 2012
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120716/1cce16c6/attachment.html 

Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list