提交 0edea416 authored 作者: Anthony Minessale's avatar Anthony Minessale

Avoiding Segfaults from buggy depend libs

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3953 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 f4267b0c
......@@ -2152,6 +2152,11 @@ static uint8_t negotiate_sdp(switch_core_session_t *session, sdp_session_t *sdp)
channel = switch_core_session_get_channel(session);
if (!sdp->sdp_connection) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Cannot find a c= line in the sdp!\n");
return 0;
}
if ((tech_pvt->origin = switch_core_session_strdup(session, (char *) sdp->sdp_origin->o_username))) {
if (strstr(tech_pvt->origin, "CiscoSystemsSIP-GW-UserAgent")) {
switch_set_flag_locked(tech_pvt, TFLAG_BUGGY_2833);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论