mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-16 08:49:01 +00:00
doh
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@671 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
parent
6e19d9add7
commit
f021750336
@ -839,7 +839,7 @@ zap_status_t zap_channel_open_any(uint32_t span_id, zap_direction_t direction, z
|
|||||||
uint32_t span_max;
|
uint32_t span_max;
|
||||||
|
|
||||||
if (span_id) {
|
if (span_id) {
|
||||||
if (span_id > globals.span_index || !globals.span[span_id]) {
|
if (span_id > globals.span_index || !globals.spans[span_id]) {
|
||||||
zap_log(ZAP_LOG_CRIT, "SPAN NOT DEFINED!\n");
|
zap_log(ZAP_LOG_CRIT, "SPAN NOT DEFINED!\n");
|
||||||
*zchan = NULL;
|
*zchan = NULL;
|
||||||
return ZAP_FAIL;
|
return ZAP_FAIL;
|
||||||
@ -1048,7 +1048,7 @@ zap_status_t zap_channel_open(uint32_t span_id, uint32_t chan_id, zap_channel_t
|
|||||||
if (span_id < ZAP_MAX_SPANS_INTERFACE && chan_id < ZAP_MAX_CHANNELS_SPAN) {
|
if (span_id < ZAP_MAX_SPANS_INTERFACE && chan_id < ZAP_MAX_CHANNELS_SPAN) {
|
||||||
zap_channel_t *check;
|
zap_channel_t *check;
|
||||||
|
|
||||||
if (span_id > globals.span_index || !globals.span[span_id]) {
|
if (span_id > globals.span_index || !globals.spans[span_id]) {
|
||||||
zap_log(ZAP_LOG_ERROR, "SPAN NOT DEFINED!\n");
|
zap_log(ZAP_LOG_ERROR, "SPAN NOT DEFINED!\n");
|
||||||
*zchan = NULL;
|
*zchan = NULL;
|
||||||
goto done;
|
goto done;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user