mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-02 11:19:28 +00:00
bottoms up!
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@326 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
parent
bfb4be9ad9
commit
9aa7a3f9fd
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user