mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-04 20:26:01 +00:00
fix boost span hunting
git-svn-id: http://svn.openzap.org/svn/openzap/branches/sangoma_boost@952 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
parent
80e1a88b32
commit
95df158b78
@ -1961,6 +1961,7 @@ static ZIO_CONFIGURE_SPAN_SIGNALING_FUNCTION(zap_sangoma_boost_configure_span)
|
|||||||
span->get_span_sig_status = sangoma_boost_get_span_sig_status;
|
span->get_span_sig_status = sangoma_boost_get_span_sig_status;
|
||||||
span->set_span_sig_status = sangoma_boost_set_span_sig_status;
|
span->set_span_sig_status = sangoma_boost_set_span_sig_status;
|
||||||
span->state_map = &boost_state_map;
|
span->state_map = &boost_state_map;
|
||||||
|
span->suggest_chan_id = 1;
|
||||||
zap_set_flag_locked(span, ZAP_SPAN_SUSPENDED);
|
zap_set_flag_locked(span, ZAP_SPAN_SUSPENDED);
|
||||||
return ZAP_SUCCESS;
|
return ZAP_SUCCESS;
|
||||||
}
|
}
|
||||||
|
@ -76,7 +76,7 @@ static void sangomabc_print_event_call(sangomabc_connection_t *mcon, sangomabc_e
|
|||||||
if (event->event_id == SIGBOOST_EVENT_HEARTBEAT)
|
if (event->event_id == SIGBOOST_EVENT_HEARTBEAT)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
zap_log(file, func, line, ZAP_LOG_LEVEL_WARNING, "%s EVENT (%s): %s:(%X) [w%dg%d] CSid=%i Seq=%i Cn=[%s] Cd=[%s] Ci=[%s] Rdnis=[%s]\n",
|
zap_log(file, func, line, ZAP_LOG_LEVEL_DEBUG, "%s EVENT (%s): %s:(%X) [w%dg%d] CSid=%i Seq=%i Cn=[%s] Cd=[%s] Ci=[%s] Rdnis=[%s]\n",
|
||||||
dir ? "TX":"RX",
|
dir ? "TX":"RX",
|
||||||
priority ? "P":"N",
|
priority ? "P":"N",
|
||||||
sangomabc_event_id_name(event->event_id),
|
sangomabc_event_id_name(event->event_id),
|
||||||
@ -95,7 +95,7 @@ static void sangomabc_print_event_short(sangomabc_connection_t *mcon, sangomabc_
|
|||||||
{
|
{
|
||||||
if (event->event_id == SIGBOOST_EVENT_HEARTBEAT)
|
if (event->event_id == SIGBOOST_EVENT_HEARTBEAT)
|
||||||
return;
|
return;
|
||||||
zap_log(file, func, line, ZAP_LOG_LEVEL_WARNING, "%s EVENT (%s): %s:(%X) [s%dc%d] Rc=%i CSid=%i Seq=%i \n",
|
zap_log(file, func, line, ZAP_LOG_LEVEL_DEBUG, "%s EVENT (%s): %s:(%X) [s%dc%d] Rc=%i CSid=%i Seq=%i \n",
|
||||||
dir ? "TX":"RX",
|
dir ? "TX":"RX",
|
||||||
priority ? "P":"N",
|
priority ? "P":"N",
|
||||||
sangomabc_event_id_name(event->event_id),
|
sangomabc_event_id_name(event->event_id),
|
||||||
|
@ -1149,7 +1149,7 @@ OZ_DECLARE(zap_status_t) zap_channel_open_by_group(uint32_t group_id, zap_direct
|
|||||||
zap_span_t* span = NULL;
|
zap_span_t* span = NULL;
|
||||||
zap_span_find(check->span_id, &span);
|
zap_span_find(check->span_id, &span);
|
||||||
if (span && span->channel_request) {
|
if (span && span->channel_request) {
|
||||||
status = span->channel_request(span, check->physical_chan_id, direction, caller_data, zchan);
|
status = span->channel_request(span, check->chan_id, direction, caller_data, zchan);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user