mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 05:02:10 +00:00
Merge remote branch 'fsorig/master'
This commit is contained in:
@@ -338,6 +338,10 @@
|
||||
RelativePath="..\src\include\private\ftdm_buffer.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\src\include\private\ftdm_call_utils.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\src\include\private\ftdm_config.h"
|
||||
>
|
||||
@@ -416,6 +420,10 @@
|
||||
RelativePath="..\src\ftdm_buffer.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\src\ftdm_call_utils.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\src\ftdm_callerid.c"
|
||||
>
|
||||
|
||||
@@ -259,7 +259,10 @@ static unsigned wp_open_range(ftdm_span_t *span, unsigned spanno, unsigned start
|
||||
chan->physical_chan_id = x;
|
||||
chan->rate = 8000;
|
||||
|
||||
if (type == FTDM_CHAN_TYPE_FXS || type == FTDM_CHAN_TYPE_FXO || type == FTDM_CHAN_TYPE_B) {
|
||||
if (type == FTDM_CHAN_TYPE_FXS
|
||||
|| type == FTDM_CHAN_TYPE_FXO
|
||||
|| type == FTDM_CHAN_TYPE_CAS
|
||||
|| type == FTDM_CHAN_TYPE_B) {
|
||||
int err;
|
||||
|
||||
dtmf = "software";
|
||||
|
||||
@@ -1974,10 +1974,19 @@ unsigned int ldl_session_terminate(ldl_session_t *session)
|
||||
{
|
||||
iks *iq, *sess;
|
||||
unsigned int id;
|
||||
apr_hash_t *hash = session->handle->sessions;
|
||||
|
||||
new_session_iq(session, &iq, &sess, &id, "terminate");
|
||||
schedule_packet(session->handle, id, iq, LDL_RETRY);
|
||||
|
||||
if (session->id) {
|
||||
apr_hash_set(hash, session->id, APR_HASH_KEY_STRING, NULL);
|
||||
}
|
||||
|
||||
if (session->them) {
|
||||
apr_hash_set(hash, session->them, APR_HASH_KEY_STRING, NULL);
|
||||
}
|
||||
|
||||
return id;
|
||||
|
||||
}
|
||||
@@ -2471,6 +2480,11 @@ int ldl_handle_running(ldl_handle_t *handle)
|
||||
}
|
||||
|
||||
|
||||
void ldl_session_set_gateway(ldl_session_t *session)
|
||||
{
|
||||
ldl_set_flag(session, LDL_FLAG_GATEWAY);
|
||||
}
|
||||
|
||||
int ldl_session_gateway(ldl_session_t *session)
|
||||
{
|
||||
return ldl_test_flag(session, LDL_FLAG_GATEWAY) ? 1 : 0;
|
||||
|
||||
@@ -593,6 +593,7 @@ ldl_status ldl_handle_init(ldl_handle_t **handle,
|
||||
void ldl_handle_run(ldl_handle_t *handle);
|
||||
|
||||
int ldl_session_gateway(ldl_session_t *handle);
|
||||
void ldl_session_set_gateway(ldl_session_t *session);
|
||||
|
||||
/*!
|
||||
\brief Stop a libDingaLing handle
|
||||
|
||||
Reference in New Issue
Block a user