]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix (part2)
authorAnthony Minessale <anthony.minessale@gmail.com>
Sat, 27 Jan 2007 18:26:17 +0000 (18:26 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Sat, 27 Jan 2007 18:26:17 +0000 (18:26 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4069 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/mod_sofia.c

index 7deb574a06b62e73a1e99f625edcc21ac59fd458..b634e59aa59b00dbfba4354ae399aa50f397f141 100644 (file)
@@ -2301,15 +2301,15 @@ static uint8_t negotiate_sdp(switch_core_session_t *session, sdp_session_t *sdp)
                 }
 
                 if (mimp) {
-                    if ((tech_pvt->rm_encoding = switch_core_session_strdup(session, (char *)mimp->rm_encoding))) {
+                    if ((tech_pvt->rm_encoding = switch_core_session_strdup(session, (char *)map->rm_encoding))) {
                         char tmp[50];
-                        tech_pvt->pt = (switch_payload_t)mimp->rm_pt;
-                        tech_pvt->rm_rate = mimp->rm_rate;
+                        tech_pvt->pt = (switch_payload_t)map->rm_pt;
+                        tech_pvt->rm_rate = map->rm_rate;
                         tech_pvt->codec_ms = mimp->microseconds_per_frame / 1000;
                         tech_pvt->remote_sdp_audio_ip = switch_core_session_strdup(session, (char *)sdp->sdp_connection->c_address);
-                        tech_pvt->rm_fmtp = switch_core_session_strdup(session, (char *)mimp->rm_fmtp);
+                        tech_pvt->rm_fmtp = switch_core_session_strdup(session, (char *)map->rm_fmtp);
                         tech_pvt->remote_sdp_audio_port = (switch_port_t)m->m_port;
-                        tech_pvt->agreed_pt = (switch_payload_t)mimp->rm_pt;
+                        tech_pvt->agreed_pt = (switch_payload_t)map->rm_pt;
                         snprintf(tmp, sizeof(tmp), "%d", tech_pvt->remote_sdp_audio_port);
                         switch_channel_set_variable(channel, SWITCH_REMOTE_MEDIA_IP_VARIABLE, tech_pvt->remote_sdp_audio_ip);
                         switch_channel_set_variable(channel, SWITCH_REMOTE_MEDIA_PORT_VARIABLE, tmp);