chlog:Support for send-connect-ack parameter
This commit is contained in:
parent
cc1c47b6fe
commit
4ead147e10
|
@ -275,7 +275,6 @@ typedef struct sngisdn_span_data {
|
||||||
uint8_t force_sending_complete;
|
uint8_t force_sending_complete;
|
||||||
uint8_t cid_name_method;
|
uint8_t cid_name_method;
|
||||||
uint8_t send_cid_name;
|
uint8_t send_cid_name;
|
||||||
|
|
||||||
int32_t timer_t301;
|
int32_t timer_t301;
|
||||||
int32_t timer_t302;
|
int32_t timer_t302;
|
||||||
int32_t timer_t303;
|
int32_t timer_t303;
|
||||||
|
@ -292,7 +291,7 @@ typedef struct sngisdn_span_data {
|
||||||
int32_t timer_t318;
|
int32_t timer_t318;
|
||||||
int32_t timer_t319;
|
int32_t timer_t319;
|
||||||
int32_t timer_t322;
|
int32_t timer_t322;
|
||||||
|
uint8_t send_connect_ack;
|
||||||
char* local_numbers[SNGISDN_NUM_LOCAL_NUMBERS];
|
char* local_numbers[SNGISDN_NUM_LOCAL_NUMBERS];
|
||||||
ftdm_timer_id_t timers[SNGISDN_NUM_SPAN_TIMERS];
|
ftdm_timer_id_t timers[SNGISDN_NUM_SPAN_TIMERS];
|
||||||
ftdm_sched_t *sched;
|
ftdm_sched_t *sched;
|
||||||
|
|
|
@ -302,6 +302,7 @@ ftdm_status_t ftmod_isdn_parse_cfg(ftdm_conf_parameter_t *ftdm_parameters, ftdm_
|
||||||
|
|
||||||
signal_data->cid_name_method = SNGISDN_CID_NAME_AUTO;
|
signal_data->cid_name_method = SNGISDN_CID_NAME_AUTO;
|
||||||
signal_data->send_cid_name = SNGISDN_OPT_DEFAULT;
|
signal_data->send_cid_name = SNGISDN_OPT_DEFAULT;
|
||||||
|
signal_data->send_connect_ack = SNGISDN_OPT_DEFAULT;
|
||||||
|
|
||||||
span->default_caller_data.dnis.plan = FTDM_NPI_INVALID;
|
span->default_caller_data.dnis.plan = FTDM_NPI_INVALID;
|
||||||
span->default_caller_data.dnis.type = FTDM_TON_INVALID;
|
span->default_caller_data.dnis.type = FTDM_TON_INVALID;
|
||||||
|
@ -465,6 +466,8 @@ ftdm_status_t ftmod_isdn_parse_cfg(ftdm_conf_parameter_t *ftdm_parameters, ftdm_
|
||||||
parse_timer(val, &signal_data->timer_t319);
|
parse_timer(val, &signal_data->timer_t319);
|
||||||
} else if (!strcasecmp(var, "timer-t322")) {
|
} else if (!strcasecmp(var, "timer-t322")) {
|
||||||
parse_timer(val, &signal_data->timer_t322);
|
parse_timer(val, &signal_data->timer_t322);
|
||||||
|
} else if (!strcasecmp(var, "send-connect-ack")) {
|
||||||
|
parse_yesno(var, val, &signal_data->send_connect_ack);
|
||||||
} else {
|
} else {
|
||||||
ftdm_log(FTDM_LOG_WARNING, "Ignoring unknown parameter %s\n", ftdm_parameters[paramindex].var);
|
ftdm_log(FTDM_LOG_WARNING, "Ignoring unknown parameter %s\n", ftdm_parameters[paramindex].var);
|
||||||
}
|
}
|
||||||
|
|
|
@ -695,6 +695,14 @@ ftdm_status_t sngisdn_stack_cfg_q931_dlsap(ftdm_span_t *span)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (signal_data->send_connect_ack != SNGISDN_OPT_DEFAULT) {
|
||||||
|
if (signal_data->send_connect_ack == SNGISDN_OPT_TRUE) {
|
||||||
|
cfg.t.cfg.s.inDLSAP.ackOpt = TRUE;
|
||||||
|
} else {
|
||||||
|
cfg.t.cfg.s.inDLSAP.ackOpt = FALSE;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Override the restart options if user selected that option */
|
/* Override the restart options if user selected that option */
|
||||||
if (signal_data->restart_opt != SNGISDN_OPT_DEFAULT) {
|
if (signal_data->restart_opt != SNGISDN_OPT_DEFAULT) {
|
||||||
if (signal_data->restart_opt == SNGISDN_OPT_TRUE) {
|
if (signal_data->restart_opt == SNGISDN_OPT_TRUE) {
|
||||||
|
|
Loading…
Reference in New Issue