friends-of-freeswitch / switchio

asyncio powered FreeSWITCH cluster control
http://switchio.rtfd.io
Mozilla Public License 2.0
191 stars 28 forks source link

Session API methods should be awaitable #35

Closed goodboy closed 6 years ago

goodboy commented 6 years ago

@vodik made a good point during discussion of #34 that we should support both

await sess.answer()

and,

sess.answer()
await sess.recv("CHANNEL_ANSWER")

Such that sess.answer() == sess.recv("CHANNEL_ANSWER") is True.

goodboy commented 6 years ago

Done via 10473cd1694.