Greeting, I want to use pjmedia_snd_port_create_player and pjmedia_snd_port_connect to play a sound file at remote client sound device I want to use low level libraries not pjsua here is the code the I write : (it play the sound file on pjsip sound device not on the client sip device ) : ?pjmedia_session_info sess_info; ??? const pjmedia_sdp_session *local_sdp; ??? const pjmedia_sdp_session *remote_sdp; ??? pjmedia_port *media_port; status = pjmedia_sdp_neg_get_active_local(inv->neg, &local_sdp); ??? status = pjmedia_sdp_neg_get_active_remote(inv->neg, &remote_sdp); ??? status = pjmedia_session_info_from_sdp(inv->dlg->pool, g_med_endpt, ??? ??? ??? ??? ??? ?? 1, &sess_info, ??? ??? ??? ??? ??? ?? remote_sdp, local_sdp); status = pjmedia_session_create( g_med_endpt, &sess_info, ??? ??? ??? ??? ???? &g_med_transport, NULL, &g_med_session ); pjmedia_session_get_port(g_med_session, 0, &media_port); ?? status = pjmedia_wav_player_port_create(? inv->pool,? ??? ??? ??? ??? ??? ???? "C:\\Played.wav", ??? ??? ??? ??? ??? ????? 20,? ??? ??? ??? ??? ??? ????? 0,??? ??? ??? ??? ??? ??? ????? 0,??? ??? ??? ??? ??? ??? ????? &media_port ??? ??? ??? ??? ??? ????? ); ??? ??? status = pjmedia_snd_port_create_player( ??? ??? ??? inv->pool,??? ??? ???? ??? ??? ??? -1,??? ??? ??? ??? ??? ??? ??? ??? PJMEDIA_PIA_SRATE(&media_port->info),?? ??? ??? ??? PJMEDIA_PIA_CCNT(&media_port->info), ??? ??? ??? PJMEDIA_PIA_SPF(&media_port->info), ??? ??? ??? PJMEDIA_PIA_BITS(&media_port->info), ??? ??? ??? 0, ??? ??? ??? &g_snd_player); ??? status = pjmedia_snd_port_connect(g_snd_player, media_port); ??? status = pjmedia_snd_port_create_rec( ??? ??? ??? inv->pool,??? ??? ??? ?? ??? ??? ??? -1,??? ??? ??? ??? ?? ??? ??? ??? //media_port->info.clock_rate,?? ??? ??? ??? //media_port->info.channel_count,??? ??? ??? ??? //media_port->info.samples_per_frame, ??? ??? ??? //media_port->info.bits_per_sample, ??? ??? ??? PJMEDIA_PIA_SRATE(&media_port->info),? ??? ??? ??? PJMEDIA_PIA_CCNT(&media_port->info),?? ??? ??? ??? PJMEDIA_PIA_SPF(&media_port->info), ??? ??? ??? PJMEDIA_PIA_BITS(&media_port->info), ??? ??? ??? 0, ??? ??? ??? &g_snd_rec); ??????????? status = pjmedia_snd_port_connect(g_snd_rec, media_port); ??????? ??????? what should I chnaged or edit ? Thanks and Regards Marwan -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20151022/11f5fad8/attachment.html>