api,call: new Deflect() method

This method allows deflecting an incoming or waiting call to a
different number.
This commit is contained in:
Aleksander Morgado
2019-07-11 23:20:59 +02:00
parent 81f1483eec
commit 222874299e
8 changed files with 304 additions and 5 deletions
+2
View File
@@ -1387,6 +1387,7 @@ typedef enum { /*< underscore_name=mm_call_state >*/
* @MM_CALL_STATE_REASON_ERROR: Wrong number or generic network error.
* @MM_CALL_STATE_REASON_AUDIO_SETUP_FAILED: Error setting up audio channel.
* @MM_CALL_STATE_REASON_TRANSFERRED: Call has been transferred. Since 1.12.
* @MM_CALL_STATE_REASON_DEFLECTED: Call has been deflected to a new number. Since 1.12.
*
* Reason for the state change in the call.
*/
@@ -1400,6 +1401,7 @@ typedef enum { /*< underscore_name=mm_call_state_reason >*/
MM_CALL_STATE_REASON_ERROR = 6,
MM_CALL_STATE_REASON_AUDIO_SETUP_FAILED = 7,
MM_CALL_STATE_REASON_TRANSFERRED = 8,
MM_CALL_STATE_REASON_DEFLECTED = 9,
} MMCallStateReason;
/**