aboutsummaryrefslogtreecommitdiffstats
path: root/channels/iax2.h
diff options
context:
space:
mode:
authormatteo <matteo@f38db490-d61c-443f-a65b-d21fe96a405b>2003-03-13 15:44:31 +0000
committermatteo <matteo@f38db490-d61c-443f-a65b-d21fe96a405b>2003-03-13 15:44:31 +0000
commit077328e2663d127ae27156081002729fc15f632a (patch)
treed8ab849df7554bceeabcc26942e151d4c33ef7a5 /channels/iax2.h
parent30de186e01fb6266f677b8bb5eba04834229e619 (diff)
gio mar 13 16:44:17 CET 2003
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@643 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/iax2.h')
-rwxr-xr-xchannels/iax2.h22
1 files changed, 21 insertions, 1 deletions
diff --git a/channels/iax2.h b/channels/iax2.h
index da8acadff..b38609c41 100755
--- a/channels/iax2.h
+++ b/channels/iax2.h
@@ -96,6 +96,9 @@
#define IAX_AUTH_MD5 (1 << 1)
#define IAX_AUTH_RSA (1 << 2)
+#define IAX_META_TRUNK 1 /* Trunk meta-message */
+#define IAX_META_VIDEO 2 /* Video frame */
+
#define IAX_DPSTATUS_EXISTS (1 << 0)
#define IAX_DPSTATUS_CANEXIST (1 << 1)
#define IAX_DPSTATUS_NONEXISTANT (1 << 2)
@@ -116,11 +119,28 @@ struct ast_iax2_full_hdr {
/* Mini header is used only for voice frames -- delivered unreliably */
struct ast_iax2_mini_hdr {
- short callno; /* Source call number -- high bit must be 0 */
+ unsigned short callno; /* Source call number -- high bit must be 0, rest must be non-zero */
unsigned short ts; /* 16-bit Timestamp (high 16 bits from last ast_iax2_full_hdr) */
/* Frametype implicitly VOICE_FRAME */
/* subclass implicit from last ast_iax2_full_hdr */
unsigned char iedata[0];
} __attribute__ ((__packed__));
+struct ast_iax2_meta_hdr {
+ unsigned short zeros; /* Zeros field -- must be zero */
+ unsigned char metacmd; /* Meta command */
+ unsigned char cmddata; /* Command Data */
+ unsigned char data[0];
+} __attribute__ ((__packed__));
+
+struct ast_iax2_meta_trunk_hdr {
+ unsigned int ts; /* 32-bit timestamp for all messages */
+ unsigned char data[0];
+};
+
+struct ast_iax2_meta_trunk_entry {
+ unsigned short callno; /* Call number */
+ unsigned short len; /* Length of data for this callno */
+};
+
#endif