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:
parent
a138935937
commit
9ea1e4f10e
|
@ -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 = ¶m.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 = ¶m.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 = ¶m.keypad, .d = "keypulse digit or digits (might be required by some ISDN applications)" },
|
||||
{ .n = "sending-complete", .s = ¶m.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 */
|
||||
|
|
Loading…
Reference in New Issue