Revision
16928
Author
mochouinard
Date
2010-03-06 16:51:33 -0600 (Sat, 06 Mar 2010)

Log Message

mod_sofia: My iLBC changes caused a problem with fmtp was empty, this should fix it

Modified Paths

Diff

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c (16927 => 16928)


--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c	2010-03-06 02:06:00 UTC (rev 16927)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c	2010-03-06 22:51:33 UTC (rev 16928)
@@ -3546,8 +3546,8 @@
 				}
 
 				if (!strcasecmp((char *) rm_encoding, "ilbc")) {
-					char *mode = strstr(map->rm_fmtp, "mode=");
-					if (mode && (mode + 5)) {
+					char *mode = NULL;
+					if (map->rm_fmtp && (mode = strstr(map->rm_fmtp, "mode=")) && (mode + 5)) {
 						codec_ms = atoi(mode + 5);
 					}
 					if (!codec_ms) {