diff options
author | Andreas Eversberg <jolly@eversberg.eu> | 2017-05-22 18:02:07 +0200 |
---|---|---|
committer | Andreas Eversberg <jolly@eversberg.eu> | 2022-09-10 21:19:18 +0200 |
commit | 4e669ecf796b2bda8f212e6e6aa1c1725a00116c (patch) | |
tree | 7a718b4dbdcb3d6342e13cad0e30915a252b0720 /src/amps/transaction.h | |
parent | 1a0813069f688902659b042d941d66f30bef3fc2 (diff) |
AMPS: Caller ID Support
Support for sending caller ID for newer phones.
Currently does not work with older phones, they will abort.
Diffstat (limited to 'src/amps/transaction.h')
-rw-r--r-- | src/amps/transaction.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/amps/transaction.h b/src/amps/transaction.h index 2f3c00d..6cd6441 100644 --- a/src/amps/transaction.h +++ b/src/amps/transaction.h @@ -5,10 +5,14 @@ enum amps_trans_state { TRANS_REGISTER_ACK_SEND, /* attach request received, sending ack */ TRANS_CALL_MO_ASSIGN, /* assigning channel, waiting to send */ TRANS_CALL_MO_ASSIGN_SEND, /* assigning channel, sending assignment */ + TRANS_CALL_MO_ASSIGN_CONFIRM, /* assignment sent, waiting for confirm (SAT) */ TRANS_CALL_MT_ASSIGN, /* assigning channel, waiting to send */ TRANS_CALL_MT_ASSIGN_SEND, /* assigning channel, sending assignment */ - TRANS_CALL_MT_ALERT, /* ringing the phone, sending alert order until signaling tone is received */ - TRANS_CALL_MT_ALERT_SEND, /* ringing the phone, signaling tone is received */ + TRANS_CALL_MT_ASSIGN_CONFIRM, /* assignment sent, waiting for confirm (SAT) */ + TRANS_CALL_MT_ALERT, /* ringing the phone, waiting to send alert */ + TRANS_CALL_MT_ALERT_SEND, /* ringing the phone, sending alert */ + TRANS_CALL_MT_ALERT_CONFIRM, /* ringing the phone, signaling tone is received */ + TRANS_CALL_MT_ANSWER_WAIT, /* ringing the phone, waiting for the phone to answer */ TRANS_CALL_REJECT, /* rejecting channel, waiting to send */ TRANS_CALL_REJECT_SEND, /* rejecting channel, sending reject */ TRANS_CALL, /* active call */ @@ -31,6 +35,8 @@ typedef struct transaction { uint8_t ordq; uint8_t order; uint16_t chan; /* channel to assign */ + int alert_retry; /* current number of alter order (re)try */ + char caller_id[33]; /* id of calling phone */ char dialing[33]; /* number dialed by the phone */ enum amps_trans_state state; /* state of transaction */ struct timer timer; /* for varous timeouts */ |