Add "sending-complete" to call function

Used to indicate that number is complete. Some exchanges will accept #
as last digit too.
This commit is contained in:
Andreas Eversberg 2023-12-01 17:34:35 +01:00
parent a138935937
commit 9ea1e4f10e
1 changed files with 4 additions and 0 deletions

View File

@ -1180,6 +1180,7 @@ static struct param {
char *dialing;
int dialing_type, dialing_plan;
char *keypad;
char *sending_complete;
/* disc/rel */
int isdn_cause, sip_cause;
@ -1571,6 +1572,7 @@ struct param_def param_call[] = {
{ .n = "dialing-type", .i = &param.dialing_type, .d = "type of dialed number", .name2value = osmo_cc_type_name2value, .value2name = osmo_cc_type_value2name, .num = OSMO_CC_TYPE_NUM },
{ .n = "dialing-plan", .i = &param.dialing_plan, .d = "numbering plan of dialed number", .name2value = osmo_cc_plan_name2value, .value2name = osmo_cc_plan_value2name, .num = OSMO_CC_PLAN_NUM },
{ .n = "keypad", .s = &param.keypad, .d = "keypulse digit or digits (might be required by some ISDN applications)" },
{ .n = "sending-complete", .s = &param.sending_complete, .d = "Tell the called interface that the dialing is complete.", .no_value = 1 },
{ .n = NULL }
};
@ -1753,6 +1755,8 @@ next_call:
if (!param.dialing)
param.dialing = "";
osmo_cc_add_ie_called(new_msg, type, plan, param.dialing);
if (param.sending_complete)
osmo_cc_add_ie_complete(new_msg);
}
/* keypad */