added uuid_outgoing_answer to answer outgoing channels (ie portaudio endpoints)

This commit is contained in:
Moises Silva committed 2011-05-09 01:25:24 -04:00
1 parent b2d696b3fd
commit 45fb1725b0
2 files changed
+37

No files matched your search

@@ -319,8 +319,15 @@ static switch_status_t channel_on_routing(switch_core_session_t *session)
}
if (switch_test_flag(tech_pvt, TFLAG_OUTBOUND) && !switch_test_flag(tech_pvt, TFLAG_AUTO_ANSWER)) {
add_pvt(tech_pvt, PA_SLAVE);
/* endpoints do not ring (yet) */
if (tech_pvt->audio_endpoint) {
ring_file = NULL;
goto endpoint_noring;
}
ring_file = globals.ring_file;
if ((val = switch_channel_get_variable(channel, "pa_ring_file"))) {
ring_file = val;
@@ -349,6 +356,7 @@ static switch_status_t channel_on_routing(switch_core_session_t *session)
}
}
}
endpoint_noring:
if (switch_test_flag(tech_pvt, TFLAG_AUTO_ANSWER)) {
switch_mutex_lock(globals.pvt_lock);