summaryrefslogtreecommitdiff
path: root/channels/iax2.h
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2007-04-20 21:12:53 +0000
committerRussell Bryant <russell@russellbryant.com>2007-04-20 21:12:53 +0000
commitb94378b5e697b33faf05324f1ddfe8f677719d58 (patch)
treed9a976f0c1e49c15f520493fa94cdd56b6ae937c /channels/iax2.h
parentc21f118a65d0140140c2ecdeb3daa765e7e9c941 (diff)
Merge changes from team/russell/iax2_osp
This set of changes adds OSP support to chan_iax2. However, I have modified the patch a bit from what was submitted. You now use the CHANNEL() function to get and set the OSP token for IAX2. (issue #8531, reported by and original patch by homesick, patch updated by me) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@61702 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/iax2.h')
-rw-r--r--channels/iax2.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/channels/iax2.h b/channels/iax2.h
index 084c4f201..4f6a19ea5 100644
--- a/channels/iax2.h
+++ b/channels/iax2.h
@@ -129,7 +129,12 @@
#define IAX_IE_RR_DROPPED 50 /* Dropped frames (presumably by jitterbuf) u32 */
#define IAX_IE_RR_OOO 51 /* Frames received Out of Order u32 */
#define IAX_IE_VARIABLE 52 /* Remote variables */
+#define IAX_IE_OSPTOKEN 53 /* OSP token */
+#define IAX_MAX_OSPBLOCK_SIZE 254 /* Max OSP token block size, 255 bytes - 1 byte OSP token block index */
+#define IAX_MAX_OSPBLOCK_NUM 4
+#define IAX_MAX_OSPTOKEN_SIZE (IAX_MAX_OSPBLOCK_SIZE * IAX_MAX_OSPBLOCK_NUM)
+#define IAX_MAX_OSPBUFF_SIZE (IAX_MAX_OSPTOKEN_SIZE + 16)
#define IAX_AUTH_PLAINTEXT (1 << 0)
#define IAX_AUTH_MD5 (1 << 1)