<div>
Hi,
</div><div><br></div><div><br></div><div>There's no video when bridged calls through fifo, I found no video support in the following code.</div><div><br></div><div><br></div><div>I made a work around by setting sip_use_codec_name="PCMU,H264"</div><div><br></div><div>question is will this causing problem? what's the purpose of the following code? how can I add video support ?</div><div><br></div><div>Thanks.</div><div><br></div><div><br></div><div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre">        </span>if ((codec = switch_event_get_header(pop, "variable_sip_use_codec_name"))) {</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>const char *rate = switch_event_get_header(pop, "variable_sip_use_codec_rate");</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>const char *ptime = switch_event_get_header(pop, "variable_sip_use_codec_ptime");</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>char nstr[256] = "";</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                </span>if (strcasecmp(codec, "PCMU") && strcasecmp(codec, "PCMA")) {</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>switch_snprintf(nstr, sizeof(nstr), "%s@%si@%sh,PCMU@%si,PCMA@%si", codec, ptime, rate, ptime, ptime);</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>} else {</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>switch_snprintf(nstr, sizeof(nstr), "%s@%si@%sh", codec, ptime, rate);</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>}</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                </span>switch_event_add_header_string(ovars, SWITCH_STACK_BOTTOM, "absolute_codec_string", nstr);</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>}</div></div><div><br></div>
<div><div><br></div><div>-- </div><div>About: http://about.me/dujinfang</div><div>Blog: http://www.dujinfang.com</div><div>Proj: http://www.freeswitch.org.cn</div><div><br></div>Sent with <a href="http://www.sparrowmailapp.com">Sparrow</a><br><div><br></div></div>