ARI ApplicationStarted or how to know that WebSocket connection established?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi dear developers!
I can see ApplicationReplaced event and it's working: client.on_event('ApplicationReplaced', application_replaced)
When I run this code  in the 2-nd thread  I get this message.
But what is I need to know when Application is started?
Ordinary situation.
I have a dialer app using 2 threads:
1) DIaler  thread doing originate
2) Stasis thread handlng channel events.
So if I start borth threads simultaneously dialer starts to originate before Stasis app is connected.
Why not implement ApplicationStarted message similar to ApplicationReplaced?
If ApplicationStarted existed I could use threading.Event() and wait from dialer thread for event.set() from ApplicationStarted event from stasis thread.
Any suggestions?
Thanks.


_______________________________________________
asterisk-app-dev mailing list
asterisk-app-dev@xxxxxxxxxxxxxxxx
http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev

[Index of Archives]     [Asterisk SS7]     [Asterisk Announcements]     [Asterisk Users]     [PJ SIP]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Linux API]

  Powered by Linux