From: bugra H. <bug...@gm...> - 2009-05-12 08:07:58
|
Thanks for the quick reply Mihai I found a way to receive audio from different sources simultaneously. It seems like iaxclient library is capable of receiving audio data from different sources but audio events of unselected calls were dropped for some reason Audio data follows below path: User event callback() <= iaxc_post_event <= iaxc_do_audio_callback() <= handle_audio_event() Unselected calls are dropped in handle_audio_event function. I commented dropping part, as a result i got audio data from different calls in my main event callback. This is probably not desirable in a normal application but since i dont actually play incoming sound, it works for me here is required changes in case someone needs to receive from different sources simultaneously: in iaxclient_lib.c: static void handle_audio_event(struct iax_event *e, int callNo) > { > //// some code here > > // BUGRA H: below part causes problem for listening multiple calls > // if ( callNo != selected_call ) > // { > // /* drop audio for unselected call? */ > // return; > // } > > /// some code here > > } > > > |