提交 98bdf302 authored 作者: Michael Jerris's avatar Michael Jerris

parse crypto header.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7227 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 e55750a4
...@@ -1339,6 +1339,7 @@ uint8_t sofia_glue_negotiate_sdp(switch_core_session_t *session, sdp_session_t * ...@@ -1339,6 +1339,7 @@ uint8_t sofia_glue_negotiate_sdp(switch_core_session_t *session, sdp_session_t *
int greedy = 0, x = 0, skip = 0, mine = 0; int greedy = 0, x = 0, skip = 0, mine = 0;
switch_channel_t *channel = NULL; switch_channel_t *channel = NULL;
const char *val; const char *val;
const char *crypto = NULL;
tech_pvt = switch_core_session_get_private(session); tech_pvt = switch_core_session_get_private(session);
switch_assert(tech_pvt != NULL); switch_assert(tech_pvt != NULL);
...@@ -1441,6 +1442,8 @@ uint8_t sofia_glue_negotiate_sdp(switch_core_session_t *session, sdp_session_t * ...@@ -1441,6 +1442,8 @@ uint8_t sofia_glue_negotiate_sdp(switch_core_session_t *session, sdp_session_t *
for (a = m->m_attributes; a; a = a->a_next) { for (a = m->m_attributes; a; a = a->a_next) {
if (!strcasecmp(a->a_name, "ptime") && a->a_value) { if (!strcasecmp(a->a_name, "ptime") && a->a_value) {
ptime = atoi(a->a_value); ptime = atoi(a->a_value);
} else if (!strcasecmp(a->a_name, "crypto") && a->a_value) {
crypto = a->a_value;
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论