Why not analyze the return code of "api" call? Without events loop? On Tuesday 22 June 2010, Helmut Kuper wrote:
Hi Sergey,
On 22.06.2010 18:14, Sergey Okhapkin wrote:
What is the reason to use "bgapi" instead of "api"? Your code just waits for the connection completion.
Well, bgapi allows my code *not* to wait until originate connected or fails. Instead I want to get events about connect or failure...
Also you code doesn't take into account that the connection could fail for some reason.
yes, I know, the code sippet is only for demonstrating the problem.
regards helmut
_______________________________________________ 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