From 99594853e8e4949e3ef0676c3ce6672aff430682 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Tue, 10 Jun 2014 15:03:46 +0200 Subject: [PATCH] Add local IP address in video stream when making the local media description. --- coreapi/linphonecall.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/coreapi/linphonecall.c b/coreapi/linphonecall.c index d856a4383..31f5b9c07 100644 --- a/coreapi/linphonecall.c +++ b/coreapi/linphonecall.c @@ -435,7 +435,9 @@ void linphone_call_make_local_media_description(LinphoneCore *lc, LinphoneCall * nb_active_streams++; if (call->params.has_video){ - strncpy(md->streams[0].name,"Video",sizeof(md->streams[0].name)-1); + strncpy(md->streams[1].rtp_addr,local_ip,sizeof(md->streams[1].rtp_addr)); + strncpy(md->streams[1].rtcp_addr,local_ip,sizeof(md->streams[1].rtcp_addr)); + strncpy(md->streams[1].name,"Video",sizeof(md->streams[1].name)-1); md->streams[1].rtp_port=call->media_ports[1].rtp_port; md->streams[1].rtcp_port=call->media_ports[1].rtcp_port; md->streams[1].proto=md->streams[0].proto;