[Freeswitch-svn] [commit] r1640 - freeswitch/trunk/src/mod/endpoints/mod_exosip
mikej at freeswitch.org
mikej at freeswitch.org
Fri Jun 16 13:17:50 EDT 2006
Author: mikej
Date: Fri Jun 16 13:17:50 2006
New Revision: 1640
Modified:
freeswitch/trunk/src/mod/endpoints/mod_exosip/mod_exosip.c
Log:
fix off by 1 error in mod_exosip sdp negotiation code. Thanks Pawel for finding this.
Modified: freeswitch/trunk/src/mod/endpoints/mod_exosip/mod_exosip.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_exosip/mod_exosip.c (original)
+++ freeswitch/trunk/src/mod/endpoints/mod_exosip/mod_exosip.c Fri Jun 16 13:17:50 2006
@@ -353,7 +353,7 @@
int i;
static const switch_codec_implementation_t *imp;
for (i = 0; i < tech_pvt->num_codecs; i++) {
- int x = 1;
+ int x = 0;
snprintf(tmp, sizeof(tmp), "%u", tech_pvt->codecs[i]->ianacode);
sdp_message_m_payload_add(tech_pvt->local_sdp, 0, osip_strdup(tmp));
@@ -1289,7 +1289,7 @@
for (i = 0; i < tech_pvt->num_codecs; i++) {
- int x = 1;
+ int x = 0;
for (imp = tech_pvt->codecs[i]->implementations; imp; imp = imp->next) {
sdp_add_codec(tech_pvt->sdp_config, tech_pvt->codecs[i]->codec_type, tech_pvt->codecs[i]->ianacode, tech_pvt->codecs[i]->iananame,
More information about the Freeswitch-svn
mailing list