]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
parse crypto header.
authorMichael Jerris <mike@jerris.com>
Mon, 14 Jan 2008 22:25:36 +0000 (22:25 +0000)
committerMichael Jerris <mike@jerris.com>
Mon, 14 Jan 2008 22:25:36 +0000 (22:25 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7227 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia_glue.c

index 04f9e65e99eadf1bf2d27b512dee942598e4b895..c91e1bcf6322c60639fdc289c6ac1a1b740391a6 100644 (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;
                                }
                        }