Correctly define and print digits that can be dialed
This commit is contained in:
parent
ba3e030bf2
commit
e7de08cf4f
|
@ -77,7 +77,7 @@ static int ui_len = 0;
|
|||
static char ui_remote_id[256] = ""; /* what we dial or who called us */
|
||||
static char ui_remote_dialing[256] = ""; /* what remote called us with */
|
||||
static char ui_local_id[256] = ""; /* our ID */
|
||||
static const char ui_digits[] = "0123456789*#ABCDE";
|
||||
static const char ui_digits[] = "0123456789*#ABCD"; /* all digits that can be used */
|
||||
static uint8_t ui_cause = 0;
|
||||
|
||||
static void append_string(char *string, size_t size, char c)
|
||||
|
@ -712,7 +712,7 @@ dial_after_hangup:
|
|||
memset(display, '.', UI_MAX_DIGITS);
|
||||
memcpy(display, ui_remote_id, strlen(ui_remote_id));
|
||||
display[UI_MAX_DIGITS] = '\0';
|
||||
sprintf(text, "%s: %s (press digits 0..9 or d=dial)\r", call_state_name[(call) ? call->state : CALL_STATE_IDLE], display);
|
||||
sprintf(text, "%s: %s (press digits %s or d=dial)\r", call_state_name[(call) ? call->state : CALL_STATE_IDLE], display, ui_digits);
|
||||
goto done;
|
||||
}
|
||||
|
||||
|
@ -817,7 +817,7 @@ dial_after_hangup:
|
|||
sprintf(text, "%s: %s (press h=hangup)\r", call_state_name[call->state], ui_remote_id);
|
||||
break;
|
||||
case CALL_STATE_OUT_OVERLAP:
|
||||
sprintf(text, "%s: %s (press digits 0..9 h=hangup)\r", call_state_name[call->state], ui_remote_id);
|
||||
sprintf(text, "%s: %s (press digits %s h=hangup)\r", call_state_name[call->state], ui_remote_id, ui_digits);
|
||||
break;
|
||||
case CALL_STATE_CONNECT:
|
||||
if (ui_remote_dialing[0])
|
||||
|
|
Loading…
Reference in New Issue