FreeCalypso > hg > themwi-system-sw
comparison sip-in/mncc_handle.c @ 65:7c0309df59f8
sip-in: handling of ALERTING state
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Sun, 18 Sep 2022 15:44:22 -0800 |
| parents | e5aee661e3b2 |
| children | 5beb51de1bae |
comparison
equal
deleted
inserted
replaced
| 64:1f863c63f96b | 65:7c0309df59f8 |
|---|---|
| 21 static void | 21 static void |
| 22 handle_alerting(call, msg) | 22 handle_alerting(call, msg) |
| 23 struct call *call; | 23 struct call *call; |
| 24 struct gsm_mncc *msg; | 24 struct gsm_mncc *msg; |
| 25 { | 25 { |
| 26 /* handling to be implemented */ | 26 if (call->mncc_state != MNCC_STATE_STARTED) { |
| 27 syslog(LOG_ERR, "MNCC_ALERT_IND in wrong MNCC state 0x%x", | |
| 28 call->mncc_state); | |
| 29 return; | |
| 30 } | |
| 31 call->mncc_state = MNCC_STATE_ALERTING; | |
| 32 call->overall_state = OVERALL_STATE_ALERTING; | |
| 33 signal_invite_ringing(call); | |
| 27 } | 34 } |
| 28 | 35 |
| 29 static void | 36 static void |
| 30 handle_answer(call, msg) | 37 handle_answer(call, msg) |
| 31 struct call *call; | 38 struct call *call; |
