Actually I was reading that page, right now. I wrote a small lua script that simulates a call with random wait time before answering, randomly not answering at all and saying things for a random times once answered. This would be useful for testing purposes simulating load, letting call center operators try scripts against "fake" numbers with a "realistic" behaviour and eventually to test and debug an automated dialer. The script is almost ready (can contribute it should you find it useful), I used it today to simulate load on my windows laptop with 50 concurrent calls and peaks of 20/30 simultaneous calls connected (cpu was below 3%). I only miss some use cases such as some CALL_REJECTED, USER_BUSY, NO_ANSWER On Thu, Aug 6, 2009 at 00:16, Michael Collins <msc@freeswitch.org> wrote:
On Wed, Aug 5, 2009 at 3:54 PM, Raffaele P. Guidi < raffaele.p.guidi@gmail.com> wrote:
interesting! what values can contain "variable_originate_disposition"? And can I set them manually in a script to reject a call simulating user busy or call rejected? A lua example? Thanks, Raffaele
Start here: http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_hangup
And note the link to the hangup causes. As far as Lua, I'm not sure there's a good reason to do it there. Could you give us pseudo code example of what you're thinking of doing? -MC
_______________________________________________ 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