Commit b1a743b7 authored by Bob Ham's avatar Bob Ham
Browse files

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.
parent 2f82dcaa
...@@ -171,6 +171,7 @@ static const struct CallsMMCallStateMap STATE_MAP[] = { ...@@ -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[] = { ...@@ -181,7 +182,6 @@ static const struct CallsMMCallStateMap STATE_MAP[] = {
#undef row #undef row
{ MM_CALL_STATE_UNKNOWN, (CallsCallState)0 },
{ -1, -1 } { -1, -1 }
}; };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment