]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
small tweak
authorBrian West <brian@freeswitch.org>
Wed, 30 Aug 2006 02:38:32 +0000 (02:38 +0000)
committerBrian West <brian@freeswitch.org>
Wed, 30 Aug 2006 02:38:32 +0000 (02:38 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2439 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/mod_sofia.c

index 33ef0f386ba73e1d04cb45d7c4391b0eb54c53ac..ad915ca65a3b02a8e26f8bd22b875d0b7aa5ef27 100644 (file)
@@ -1160,7 +1160,7 @@ static uint8_t negotiate_sdp(switch_core_session_t *session, sdp_session_t *sdp)
                                                tech_pvt->rm_encoding = switch_core_session_strdup(session, (char *)map->rm_encoding);
                                                tech_pvt->pt = (switch_payload_t)map->rm_pt;
                                                tech_pvt->rm_rate = map->rm_rate;
-                                               tech_pvt->codec_ms = 20;
+                                               tech_pvt->codec_ms = imp->microseconds_per_frame / 1000;
                                                tech_pvt->remote_sdp_audio_ip = switch_core_session_strdup(session, (char *)sdp->sdp_connection->c_address);
                                                tech_pvt->remote_sdp_audio_port = (switch_port_t)m->m_port;
                                                break;