calls-mm-call: Map MM_CALL_STATE_UNKNOWN to CALLS_CALL_STATE_DIALING instead of 0
This actually makes sense in the mapping; the only time an MM call is in MM_CALL_STATE_UNKNOWN is when it's an outgoing call that hasn't been started. It also helps avoid a lot of needless issues dealing with the Calls call state.
This commit is contained in:
@@ -171,6 +171,7 @@ static const struct CallsMMCallStateMap STATE_MAP[] = {
|
|||||||
#define row(MMENUM,CALLSENUM) \
|
#define row(MMENUM,CALLSENUM) \
|
||||||
{ MM_CALL_STATE_##MMENUM, CALLS_CALL_STATE_##CALLSENUM, #MMENUM } \
|
{ MM_CALL_STATE_##MMENUM, CALLS_CALL_STATE_##CALLSENUM, #MMENUM } \
|
||||||
|
|
||||||
|
row (UNKNOWN, DIALING),
|
||||||
row (DIALING, DIALING),
|
row (DIALING, DIALING),
|
||||||
row (RINGING_OUT, ALERTING),
|
row (RINGING_OUT, ALERTING),
|
||||||
row (RINGING_IN, INCOMING),
|
row (RINGING_IN, INCOMING),
|
||||||
@@ -181,7 +182,6 @@ static const struct CallsMMCallStateMap STATE_MAP[] = {
|
|||||||
|
|
||||||
#undef row
|
#undef row
|
||||||
|
|
||||||
{ MM_CALL_STATE_UNKNOWN, (CallsCallState)0 },
|
|
||||||
{ -1, -1 }
|
{ -1, -1 }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user