parse crypto header.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7227 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2008-01-14 22:25:36 +00:00
parent e55750a444
commit 98bdf302f5
1 changed files with 3 additions and 0 deletions

View File

@ -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;
switch_channel_t *channel = NULL;
const char *val;
const char *crypto = NULL;
tech_pvt = switch_core_session_get_private(session);
switch_assert(tech_pvt != NULL);
@ -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) {
if (!strcasecmp(a->a_name, "ptime") && a->a_value) {
ptime = atoi(a->a_value);
} else if (!strcasecmp(a->a_name, "crypto") && a->a_value) {
crypto = a->a_value;
}
}