diff options
-rw-r--r-- | src/call.h | 5 | ||||
-rw-r--r-- | src/mncc_protocol.h | 6 |
2 files changed, 10 insertions, 1 deletions
@@ -54,6 +54,11 @@ struct call_leg { uint32_t payload_type; uint32_t payload_msg_type; + /* SDP as received for this call leg. If this is an MNCC call leg, contains the SDP most recently received in an + * MNCC message; if this is a SIP call leg, contains the SDP most recently received in a SIP message. If no SDP + * was received yet, this string is empty. Otherwise a nul terminated string. */ + char sdp[1024]; + /** * Remote started to ring/alert */ diff --git a/src/mncc_protocol.h b/src/mncc_protocol.h index 4950a77..b6f6635 100644 --- a/src/mncc_protocol.h +++ b/src/mncc_protocol.h @@ -158,6 +158,9 @@ struct gsm_mncc { unsigned char lchan_type; unsigned char lchan_mode; + + /* A buffer to contain SDP ('\0' terminated) */ + char sdp[1024]; }; struct gsm_data_frame { @@ -166,7 +169,7 @@ struct gsm_data_frame { unsigned char data[0]; }; -#define MNCC_SOCK_VERSION 5 +#define MNCC_SOCK_VERSION 6 struct gsm_mncc_hello { uint32_t msg_type; uint32_t version; @@ -189,6 +192,7 @@ struct gsm_mncc_rtp { uint16_t port; uint32_t payload_type; uint32_t payload_msg_type; + char sdp[1024]; }; struct gsm_mncc_bridge { |