Thanks Craig, Olle and everyone else who replied to my emal.
This works for me! Jonathan From: asterisk-video-boun...@lists.digium.com [mailto:asterisk-video-boun...@lists.digium.com] On Behalf Of craig brown Sent: Wednesday, August 19, 2009 5:06 AM To: Development discussion of video media support in Asterisk Subject: Re: [Asterisk-video] SIP fmtp message support for H.264 video Jonathan, If you replace this function in chan_sip.c, it works quite well with most VC systems, especially on H.264. It's a bit of a local hack, and I'm working on a far better solution, but it works demo purposes. /*! \brief Add video codec offer to SDP offer/answer body in INVITE or 200 OK */ /* This is different to the audio one now so we can add more caps later */ static void add_vcodec_to_sdp(const struct sip_pvt *p, int codec, int sample_rate, struct ast_str **m_buf, struct ast_str **a_buf, int debug, int *min_packet_size) { int rtp_code; if (!p->vrtp) return; if (debug) ast_verbose("Adding video codec 0x%x (%s) to SDP\n", codec, ast_getformatname(codec)); if ((rtp_code = ast_rtp_lookup_code(p->vrtp, 1, codec)) == -1) return; ast_str_append(m_buf, 0, " %d", rtp_code); ast_str_append(a_buf, 0, "a=rtpmap:%d %s/%d\r\n", rtp_code, ast_rtp_lookup_mime_subtype(1, codec, 0), sample_rate); /* Add fmtp code here */ if (debug) ast_verbose ("FMTP Codec Count %d\r\nCodec is 0x%x\r\n",p->fmtp_count,codec); /* Craig */ if (codec & 0x100000) { ast_verbose ("Appending H263+ FMTP Video\n"); ast_str_append(a_buf,0,"a=fmtp:%d custom=1280,800,0;custom=1280,768,0;custom=1280,720,3;custom=1024,768,4; custom=1024,576,2;custom=800,600,3;cif4=2;custom=720,480,2;custom=640,48 0,2;custom=512,288,1;cif=1;custom=352,240,1;qcif=1;sqcif=1;maxbr=10240\r \n",rtp_code); } if (codec & 0x200000) { ast_verbose("Appending H264 FMTP Video\n"); ast_str_append(a_buf,0,"a=fmtp:%d profile-level-id=428016;max-mbps=245000;max-fs=8160;max-smbps=245000\r\n ",rtp_code); } } Craig brown From: asterisk-video-boun...@lists.digium.com [mailto:asterisk-video-boun...@lists.digium.com] On Behalf Of Gallmeier, Jonathan Sent: 18 August 2009 22:17 To: asterisk-video@lists.digium.com Subject: [Asterisk-video] SIP fmtp message support for H.264 video Hi, I'm working on an Asterisk app that bridges SIP video to a soft phone that only supports RTP video in/out of the phone's SDK. The only video format supported is H.264. I noticed that Asterisk SIP appears to lack fmtp messages. Is anyone working on adding these into the SIP code? I noticed a few comments regarding this issue in some of the bugs, but I have not found anything that indicates that there is active development in this area. Thanks Jonathan No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.58/2306 - Release Date: 08/18/09 06:03:00
_______________________________________________ --Bandwidth and Colocation Provided by http://www.api-digital.com-- asterisk-video mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-video