From: Pekka Pessi <[email protected]>
Include +CSSI and +CSSU codes in <include/ssn.h> and prefix them with
OFONO_.
---
include/ssn.h | 28 +++++++++++++++++++++++++++-
1 files changed, 27 insertions(+), 1 deletions(-)
diff --git a/include/ssn.h b/include/ssn.h
index d640cad..9466a80 100644
--- a/include/ssn.h
+++ b/include/ssn.h
@@ -36,8 +36,34 @@ struct ofono_ssn_driver {
void (*remove)(struct ofono_ssn *ssn);
};
-/* SSN notifications (CSSI and CSSU). */
+/* TS 27.007 Supplementary service notifications +CSSN (CSSI and CSSU) */
+enum ofono_ssn_cssi {
+ OFONO_SS_MO_UNCONDITIONAL_FORWARDING = 0,
+ OFONO_SS_MO_CONDITIONAL_FORWARDING = 1,
+ OFONO_SS_MO_CALL_FORWARDED = 2,
+ OFONO_SS_MO_CALL_WAITING = 3,
+ OFONO_SS_MO_CUG_CALL = 4,
+ OFONO_SS_MO_OUTGOING_BARRING = 5,
+ OFONO_SS_MO_INCOMING_BARRING = 6,
+ OFONO_SS_MO_CLIR_SUPPRESSION_REJECTED = 7,
+ OFONO_SS_MO_CALL_DEFLECTED = 8,
+};
+
+enum ofono_ssn_cssu {
+ OFONO_SS_MT_CALL_FORWARDED = 0,
+ OFONO_SS_MT_CUG_CALL = 1,
+ OFONO_SS_MT_VOICECALL_ON_HOLD = 2,
+ OFONO_SS_MT_VOICECALL_RETRIEVED = 3,
+ OFONO_SS_MT_MULTIPARTY_VOICECALL = 4,
+ OFONO_SS_MT_VOICECALL_HOLD_RELEASED = 5,
+ OFONO_SS_MT_FORWARD_CHECK_SS_MESSAGE = 6,
+ OFONO_SS_MT_VOICECALL_IN_TRANSFER = 7,
+ OFONO_SS_MT_VOICECALL_TRANSFERRED = 8,
+ OFONO_SS_MT_CALL_DEFLECTED = 9,
+};
+
void ofono_ssn_cssi_notify(struct ofono_ssn *ssn, int code, int index);
+
void ofono_ssn_cssu_notify(struct ofono_ssn *ssn, int code, int index,
const struct ofono_phone_number *number);
--
1.7.1
_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono