NMT: Fix autoanswer

If phone does not support autoanswer, the MTX proceeds with regular ringing.
This commit is contained in:
Andreas Eversberg
2016-07-20 11:55:03 +02:00
parent efb50532c6
commit ba8bf0e9d5
2 changed files with 67 additions and 9 deletions

View File

@@ -31,6 +31,7 @@ enum nmt_state {
STATE_MT_PAGING, /* paging mobile phone */
STATE_MT_CHANNEL, /* assigning traffic channel */
STATE_MT_IDENT, /* waiting for identity */
STATE_MT_AUTOANSWER, /* sending autoanswer, waiting for reply */
STATE_MT_RINGING, /* mobile phone is ringing, waiting for answer */
STATE_MT_COMPLETE, /* mobile phone has answered, completing call */
STATE_ACTIVE, /* during active call */
@@ -79,6 +80,7 @@ typedef struct nmt {
/* sender's states */
enum nmt_state state;
int wait_autoanswer; /* wait for frame 15 before we can send autoanswer */
enum nmt_active_state active_state;
nmt_subscriber_t subscriber; /* current subscriber */
struct timer timer;