PJSIP Multi-call with callbacks

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

 



Without looking at the code, from your description it seems that 
callback is called from the media processing thread, so you should 
return from the callback immediately. Set a flag which is picked up by 
another thread.

Bill

On 8/25/2014 8:55 AM, Luis Domingues wrote:
> -------- Message transf?r? --------
> De: Luis Domingues <luisfilipe.domingues at master.hes-so.ch>
> ?: pjsip at lists.pjsip.org
> Objet: PJSIP Multi-call with callbacks
> Date: Mon, 25 Aug 2014 14:22:23 +0200
>
> I'm using PJSIP in order to make calls. I can make two or three calls at
> the same time, using a player to play a wave file.
>
> void make_call(char *msgFile, char *num)
> {
>      //Some code to setup de code
>
>      play_file(call_id, msgFile);
> }
>
> static int play_file(pjsua_call_id call_id,  char *msgFile)
> {
>      //Setup the file player
>
>      //on_pjsua_wav_file_end_callback is the callba
>      pjmedia_wav_player_set_eof_cb(player_media_port, eof_data,
> &on_pjsua_wav_file_end_callback);
> }
>
> Mx problem is when the on_pjsua_wav_file_end_callback by one call who is
> ended, the other calls stops playing untill the callback is ended. And
> they unpaused when the callback is ended.
>
> What can I do in order to continue playing my other calls when one is
> running the callback?
>
> Regards
>
>
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org




[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux