# Video Configuration Help

**URL:** <https://community.asterisk.org/t/video-configuration-help/28512>\
**Category:** Asterisk Support\
**Created:** [August 18, 2009, 2:31pm UTC](https://community.asterisk.org/t/video-configuration-help/28512 "2009-08-18T14:31:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AusTex](https://avatars.discourse-cdn.com/v4/letter/a/4af34b/32.png) [@AusTex](https://community.asterisk.org/u/AusTex)\
**Post date:** [August 18, 2009, 2:31pm UTC](https://community.asterisk.org/t/video-configuration-help/28512/1 "2009-08-18T14:31:20Z")

</div>

Hi,

I’m trying to configure Asterisk 1.6.1.1 to connect a sip soft video phone to a Polycom HDX video conferencing unit. Audio works fine, but I get no video. I’ve uncommented videosupport=yes to the sip.conf file. When I turn on verbose debugging in the console, I see a messages that show both endpoints support H264 codecs, but only the audio codec is chosen.

Am I missing something? Do I need to recompile Asterisk with a special flag or do more than just set the videosupport flag?

---

<div class="post-metadata">

**Author:** ![darkesthour](https://avatars.discourse-cdn.com/v4/letter/d/71c47a/32.png) [@darkesthour](https://community.asterisk.org/u/darkesthour)\
**Post date:** [August 18, 2009, 8:40pm UTC](https://community.asterisk.org/t/video-configuration-help/28512/2 "2009-08-18T20:40:41Z")

</div>

you should post your sip.conf with passwords and such blanked out for us to see.

But you might want to check, videosupport is not a global feature, it has to be enabled for each user. i would check that first if you havent already.

---

<div class="post-metadata">

**Author:** ![thirsch](https://avatars.discourse-cdn.com/v4/letter/t/bbe5ce/32.png) [@thirsch](https://community.asterisk.org/u/thirsch)\
**Post date:** [August 19, 2009, 11:01pm UTC](https://community.asterisk.org/t/video-configuration-help/28512/3 "2009-08-19T23:01:10Z")

</div>

## Hi, this was something I ran into as well. Credits go to craigB for finding a solution and sharing it with us at the URL given below.

To REALLY suport Video in 1.6.x you have to patch ./channels/chan\_sip.c  
(taken from [asteriskguru.com/board/aster … t4048.html](http://www.asteriskguru.com/board/asterisk-1610-asterisk-gui-v2-videosupport-problems-vt4048.html))  
change function sip\_result\_add\_sdp (about half way down the function) to the following :

- Ok, we need video. Let’s add what we need for video and set codecs.  
Video is handled differently than audio since we can not transcode. _/  
if (needvideo) {  
/_\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* CHANGE STARTS **_/  
/_ Comment out the original code - which seems to be referencing the (wrong at this place!!) video destination port _/  
/_ ast\_str\_append(&m\_video, 0, “m=video %d RTP/AVP”, ntohs(vdest.sin\_port)); _/  
/_ Add This line to reference the video source port _/  
ast\_str\_append(&m\_video, 0, “m=video %d RTP/AVP”, ntohs(vsin.sin\_port));  
/_** CHANGE ENDS \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*/

This was, what saved my life and made video immediatedly working for me (after pulling my hairs out and knocking my head on the desk after hours of testing and googling …  
Hope it will help you as well.  
Regards  
thirsch
