[asterisk-dev] Video support in chan_sip
Sergio Garcia Murillo
sergio.garcia at fontventa.com
Mon Aug 27 15:41:10 CDT 2007
Is this correct in /trunk/channels/chan_sip.c rev 81114??? Or I'm getting
crazy??
5843 } else if (sscanf(a, "rtpmap: %u %[^/]/", &codec, mimeSubtype) ==
2) {
5844 /* We have a rtpmap to handle */
5845 if (debug)
5846 ast_verbose("Found description format %s for ID %d\n",
mimeSubtype, codec);
5847 found_rtpmap_codecs[last_rtpmap_codec] = codec;
5848 last_rtpmap_codec++;
5849
5850 /* Note: should really look at the 'freq' and '#chans' params
too */
5851 /* Note: This should all be done in the context of the m= above
*/
5852 if (!strncasecmp(mimeSubtype, "H26",3)) { /* Video */
^^^^
5853 /* Not going to do anything here for the moment, but we will
soon */
^^^^
5854 } else if (!strncasecmp(mimeSubtype, "T140",4)) { /* Text */
5855 if (p->trtp) {
5856 /* ast_verbose("Adding t140 mimeSubtype to textrtp
struct\n"); */
5857 ast_rtp_set_rtpmap_type(newtextrtp, codec, "text",
mimeSubtype, 0);
5858 }
5859 } else { /* Must be
audio?? */
5860 ast_rtp_set_rtpmap_type(newaudiortp, codec, "audio",
mimeSubtype,
5861 ast_test_flag(&p->flags[0], SIP_G726_NONSTANDARD) ?
AST_RTP_OPT_G726_NONSTANDARD : 0);
5862 }
BR
Sergio
More information about the asterisk-dev
mailing list