Asterisk Write Callback Support


Actually we want to write a fixed chunk of voice data from Asterisk application at the interval of 10ms. But when we saw usage of ast_write function in Asterisk code, we find that this fuction is called continuously till the complete source file is not wrtten to driver. This means that whether write callback in the driver is blocking or or driver has sufficient buffer to store complete source file.

So, how write API is implemented in Zaptel Device Driver? Whether is it Blocking or Non-Blocking? If non-Blocking then, is there a sufficient buffering in the driver to store complete source file?