diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-04-20 21:12:53 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-04-20 21:12:53 +0000 |
commit | 8d14d2255818deacb493ff997938be8fa9786de6 (patch) | |
tree | d9a976f0c1e49c15f520493fa94cdd56b6ae937c /channels/iax2.h | |
parent | 59c77fe14b1b7a0a89147f7f82b58ab0265098f5 (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: http://svn.digium.com/svn/asterisk/trunk@61702 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/iax2.h')
-rw-r--r-- | channels/iax2.h | 5 |
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) |