]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5714 --resolve That is probably the right place
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 5 Sep 2013 15:39:58 +0000 (20:39 +0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 5 Sep 2013 15:41:31 +0000 (20:41 +0500)
libs/sofia-sip/libsofia-sip-ua/sdp/sdp_print.c

index b587aa5cc194f25f8b702b0bae678d9f1b1db05f..b75a94d5050836f03adebc13d3ae7c624711d9ff 100644 (file)
@@ -618,8 +618,10 @@ static void print_media(sdp_printer_t *p,
        sdp_printf(p, " %s", l->l_text);
     }
     else {
-      sdp_printf(p, " 19");      /* SDP syntax requires at least one format.
-                                   19 is used by nobody, right?. */
+               /* SDP syntax requires at least one format. */
+               /* defaults to "19", or "t38" for image */
+               if (m->m_image == sdp_media_image) sdp_printf(p, " t38");
+               else sdp_printf(p, " 19");
     }