This commit is contained in:
Anthony Minessale 2010-10-12 09:32:15 -05:00
parent ec9fddacce
commit 14361c0907
1 changed files with 6 additions and 3 deletions

View File

@ -1425,9 +1425,12 @@ void sofia_glue_tech_patch_sdp(private_object_t *tech_pvt)
} }
if (tech_pvt->adv_sdp_audio_ip && !strncmp("c=IN IP", p, 7)) { if (tech_pvt->adv_sdp_audio_ip && !strncmp("c=IN IP", p, 7)) {
strncpy(q, p, 9); strncpy(q, p, 7);
p += 9; p += 7;
q += 9; q += 7;
strncpy(q, strchr(tech_pvt->adv_sdp_audio_ip, ':') ? "6 " : "4 ", 2);
p +=2;
q +=2;
strncpy(q, tech_pvt->adv_sdp_audio_ip, strlen(tech_pvt->adv_sdp_audio_ip)); strncpy(q, tech_pvt->adv_sdp_audio_ip, strlen(tech_pvt->adv_sdp_audio_ip));
q += strlen(tech_pvt->adv_sdp_audio_ip); q += strlen(tech_pvt->adv_sdp_audio_ip);