I've been back and forth on getting the
book (time to read and blah blah), but you just sold me on it. (:
'We who cut mere stones must always be envisioning cathedrals.'
Quarry Worker's Creed
On 7/16/2012 3:58 PM, Ian Bonham wrote:
Michael is totally right there! Hands on Tinkering is
what I've been doing all afternoon and picked up so much. I also
hit Amazon (Other book shops are available!) and got myself the
FreeSwitch 1.0.6 book by our Mr Collins himself, Mr Minessale and
Mr Schriber. A fine read guys, and a good start when you're really
wanting to get stuck in!
I was thinking, oh great LUA, something else new to learn but
the book has really got me going in the right direction,
thanks!
Bon
On 16 July 2012 22:38, Michael Collins
<msc@freeswitch.org>
wrote:
On Mon, Jul 16, 2012 at 1:26 PM, Henry
Huang
<red.rain.seven@gmail.com>
wrote:
Michael,
I have also been looking into AVMD. The point
being that I want to play some pre-recorded
message once the phone is answered and start
AVMD at the same time, and if the 'beep' is
detected later during the call(say 10 sec.
later). I want to be able to stop the original
Playback and start a new Playback. Is there a
way to do that?
Yes, but "some assembly required" as the saying goes.
AVMD only throws events, so whatever solution you are
using must be able to consume and react to those events.
The OP is using Lua which definitely allows you to
consume the events. There's even a really simple example
on the wiki about using the setInputCallback function to
look for "events" and then do something once the event
comes in. It's a really sparse example but it
demonstrates how to catch an event. From there you'd
need to put in your commands. I'm assuming you'll need a
break app or uuid_break API to stop the current playback
and then you'll need to queue up another playback. It's
also good to turn off avmd at this point as well. I'm
just throwing this out there off the top of my head, so
I highly recommend some hands on tinkering.
Please let us know what you end up doing. :)
-MC
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org