bottoms up!

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@326 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
Anthony Minessale 2007-11-08 01:42:21 +00:00
parent bfb4be9ad9
commit 9aa7a3f9fd

View File

@ -720,7 +720,11 @@ static switch_call_cause_t channel_outgoing_channel(switch_core_session_t *sessi
}
if (chan_id) {
status = zap_channel_open(span_id, chan_id, &zchan);
if (chan_id > 0) {
status = zap_channel_open(span_id, chan_id, &zchan);
} else {
status = zap_channel_open_any(span_id, ZAP_BOTTOM_UP, &zchan);
}
} else {
status = zap_channel_open_any(span_id, ZAP_TOP_DOWN, &zchan);
}