]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix breakage caused by new port allocator code.
authorMichael Jerris <mike@jerris.com>
Wed, 2 Jan 2008 03:39:29 +0000 (03:39 +0000)
committerMichael Jerris <mike@jerris.com>
Wed, 2 Jan 2008 03:39:29 +0000 (03:39 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7054 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_dingaling/mod_dingaling.c

index 9b7e169600991e9588e8a07f6070334645a80471..04abe62c05a0b6b49504f12e2b8467c28f5db75d 100644 (file)
@@ -1710,7 +1710,7 @@ static switch_call_cause_t channel_outgoing_channel(switch_core_session_t *sessi
                        switch_core_session_set_private(*new_session, tech_pvt);
                        tech_pvt->session = *new_session;
                        tech_pvt->codec_index = -1;
-                       if (!(tech_pvt->local_port = switch_rtp_request_port(tech_pvt->profile->ip))) {
+                       if (!(tech_pvt->local_port = switch_rtp_request_port(mdl_profile->ip))) {
                                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "No RTP port available!\n");
                                terminate_session(new_session, __LINE__, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER);
                                return SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER;