About acllbacks for play_and_get_digits()
- From:
- Iñaki Baz Castillo
- Date:
- 2011-03-22 @ 15:24
Hi, the doc says that "When using applications that expect a reply,
such as play_and_get_digits, you have to use callbacks to read the
value, as the function itself returns immediately due to the async
nature of EventMachine".
Ok, it makes sense but, could I get an example of such callbacks when
using play_and_get_digits()? I do know how EM works, but I don't see
any EM::Deferrable or similar in librevox so I've no idea of how to
properly set the callbacks.
Thanks for any help.
PS: I must choose a Ruby FS Outbound Listener server. I like more
librevox than FSR due to the nature of its code, but honestly I don't
know if this proyect is alive or not (last commit was 6 months). Is it
enough robust and solid?
PSS: I've realized that librevox doesn't use "event-lock: true".
Should it? is in the TODO or is not needed with current design? Also,
should I use "async" or "sync" socket in FS when using librevox as
Outbound Listener?
Thanks a lot.
--
Iñaki Baz Castillo
<ibc@aliax.net>