[Freeswitch-users] use "myevents" make FreeSwitch Crash!
Brian West
brian at freeswitch.org
Thu Nov 29 04:38:50 MSK 2012
Now that jira is up that seems to be the right place... as long as you're tried this with git head.
--
Brian West
brian at freeswitch.org
FreeSWITCH Solutions, LLC
PO BOX PO BOX 2531
Brookfield, WI 53008-2531
Twitter: @FreeSWITCH_Wire
T: +1.918.420.9266 | F: +1.918.420.9267 | M: +1.918.424.WEST
iNUM: +883 5100 1420 9266
UK: +44 20 3298 4900
ISN: 410*543
On Nov 28, 2012, at 4:42 AM, Shahzad Bhatti <shahzad.bhatti at g-r-v.com> wrote:
> Hi everyone,
> I am trying to use myevents to subscribe events but on call hang FREESWITCH Crash.
> here is my script
>
> test.lua
>
> require "ESL"
>
> hostname = "localhost"--'92.63.208.111';--'94.249.139.66'--'localhost';
> port = '8021';
> password = "ClueCon"--'Pak!stan'--'Pakistan';
> sock = ESL.ESLconnection(hostname, port, password);
>
> uuid = arg[1];
>
> e = sock:sendRecv("myevents "..uuid);
> while sock:connected() do
> e = sock:recvEvent();
> event = e:getType();
> print (event.." EVENT Recieved")
> end
>
> call.lua
>
> api = freeswitch.API()
> uuid = api:executeString("create_uuid")
>
> os.execute("lua test.lua "..uuid.." &")
> os.execute("sleep 1")
>
> session = freeswitch.Session("{ignore_early_media=true,origination_uuid="..uuid.."}user/1000");
>
> session:setAutoHangup(false)
> session:set_tts_parms("flite", "slt")
>
> session:speak("this is a test call")
>
>
> please tell me how to avoid crash and any help will be highly appreciated
>
> Regards
>
> Shahzad Bhatti
>
> _________________________________________________________________________
> 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
>
> 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
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list