Displaying 1 result from an estimated 1 matches for "get_sdp_iterate".
2003 Aug 04
0
small fix in chan_mgcp.c
...time I
lift the handset of my mgcp phone ...
roy
diff -u -r1.16 chan_mgcp.c
--- channels/chan_mgcp.c 2 Aug 2003 05:46:32 -0000 1.16
+++ channels/chan_mgcp.c 4 Aug 2003 11:30:34 -0000
@@ -1261,7 +1261,10 @@
sdpLineNum_iterator_init(&iterator);
while ((a = get_sdp_iterate(&iterator, req, "a"))[0] != '\0') {
char* mimeSubtype = strdup(a); // ensures we have enough space
- if (sscanf(a, "rtpmap: %u %[^/]/", &codec, mimeSubtype) != 2)
continue;
+ if (sscanf(a, "rtpmap: %u %[^/]/", &codec, m...