27 #define IAX_PROTO_VERSION 2 34 #if defined(LOW_MEMORY) 35 #define IAX_MAX_CALLS 2049 37 #define IAX_MAX_CALLS 32768 40 #define IAX_FLAG_FULL 0x8000 42 #define IAX_FLAG_RETRANS 0x8000 44 #define IAX_FLAG_SC_LOG 0x80 46 #define IAX_MAX_SHIFT 0x3F 123 #define IAX_DEFAULT_REG_EXPIRE 60 126 #define IAX_LINGER_TIMEOUT 10 128 #define IAX_DEFAULT_PORTNO 4569 131 #define IAX_IE_CALLED_NUMBER 1 132 #define IAX_IE_CALLING_NUMBER 2 133 #define IAX_IE_CALLING_ANI 3 134 #define IAX_IE_CALLING_NAME 4 135 #define IAX_IE_CALLED_CONTEXT 5 136 #define IAX_IE_USERNAME 6 137 #define IAX_IE_PASSWORD 7 138 #define IAX_IE_CAPABILITY 8 139 #define IAX_IE_FORMAT 9 140 #define IAX_IE_LANGUAGE 10 141 #define IAX_IE_VERSION 11 142 #define IAX_IE_ADSICPE 12 143 #define IAX_IE_DNID 13 144 #define IAX_IE_AUTHMETHODS 14 145 #define IAX_IE_CHALLENGE 15 146 #define IAX_IE_MD5_RESULT 16 147 #define IAX_IE_RSA_RESULT 17 148 #define IAX_IE_APPARENT_ADDR 18 149 #define IAX_IE_REFRESH 19 150 #define IAX_IE_DPSTATUS 20 151 #define IAX_IE_CALLNO 21 152 #define IAX_IE_CAUSE 22 153 #define IAX_IE_IAX_UNKNOWN 23 154 #define IAX_IE_MSGCOUNT 24 155 #define IAX_IE_AUTOANSWER 25 156 #define IAX_IE_MUSICONHOLD 26 157 #define IAX_IE_TRANSFERID 27 158 #define IAX_IE_RDNIS 28 159 #define IAX_IE_PROVISIONING 29 160 #define IAX_IE_AESPROVISIONING 30 161 #define IAX_IE_DATETIME 31 162 #define IAX_IE_DEVICETYPE 32 163 #define IAX_IE_SERVICEIDENT 33 164 #define IAX_IE_FIRMWAREVER 34 165 #define IAX_IE_FWBLOCKDESC 35 166 #define IAX_IE_FWBLOCKDATA 36 167 #define IAX_IE_PROVVER 37 168 #define IAX_IE_CALLINGPRES 38 169 #define IAX_IE_CALLINGTON 39 170 #define IAX_IE_CALLINGTNS 40 171 #define IAX_IE_SAMPLINGRATE 41 172 #define IAX_IE_CAUSECODE 42 173 #define IAX_IE_ENCRYPTION 43 174 #define IAX_IE_ENCKEY 44 175 #define IAX_IE_CODEC_PREFS 45 177 #define IAX_IE_RR_JITTER 46 178 #define IAX_IE_RR_LOSS 47 179 #define IAX_IE_RR_PKTS 48 180 #define IAX_IE_RR_DELAY 49 181 #define IAX_IE_RR_DROPPED 50 182 #define IAX_IE_RR_OOO 51 183 #define IAX_IE_VARIABLE 52 184 #define IAX_IE_OSPTOKEN 53 185 #define IAX_IE_CALLTOKEN 54 187 #define IAX_IE_CAPABILITY2 55 188 #define IAX_IE_FORMAT2 56 190 #define IAX_MAX_OSPBLOCK_SIZE 254 191 #define IAX_MAX_OSPBLOCK_NUM 4 192 #define IAX_MAX_OSPTOKEN_SIZE (IAX_MAX_OSPBLOCK_SIZE * IAX_MAX_OSPBLOCK_NUM) 193 #define IAX_MAX_OSPBUFF_SIZE (IAX_MAX_OSPTOKEN_SIZE + 16) 195 #define IAX_AUTH_PLAINTEXT (1 << 0) 196 #define IAX_AUTH_MD5 (1 << 1) 197 #define IAX_AUTH_RSA (1 << 2) 199 #define IAX_ENCRYPT_AES128 (1 << 0) 200 #define IAX_ENCRYPT_KEYROTATE (1 << 15) 202 #define IAX_META_TRUNK 1 203 #define IAX_META_VIDEO 2 205 #define IAX_META_TRUNK_SUPERMINI 0 206 #define IAX_META_TRUNK_MINI 1 208 #define IAX_RATE_8KHZ (1 << 0) 209 #define IAX_RATE_11KHZ (1 << 1) 210 #define IAX_RATE_16KHZ (1 << 2) 211 #define IAX_RATE_22KHZ (1 << 3) 212 #define IAX_RATE_44KHZ (1 << 4) 213 #define IAX_RATE_48KHZ (1 << 5) 215 #define IAX_DPSTATUS_EXISTS (1 << 0) 216 #define IAX_DPSTATUS_CANEXIST (1 << 1) 217 #define IAX_DPSTATUS_NONEXISTENT (1 << 2) 218 #define IAX_DPSTATUS_IGNOREPAT (1 << 14) 219 #define IAX_DPSTATUS_MATCHMORE (1 << 15) 237 } __attribute__ ((__packed__));
243 unsigned char encdata[0];
244 } __attribute__ ((__packed__));
252 unsigned char data[0];
253 } __attribute__ ((__packed__));
258 unsigned char encdata[0];
259 } __attribute__ ((__packed__));
265 unsigned char data[0];
266 } __attribute__ ((__packed__));
272 unsigned char data[0];
273 } __attribute__ ((__packed__));
277 unsigned char data[0];
278 } __attribute__ ((__packed__));
283 } __attribute__ ((__packed__));
289 } __attribute__ ((__packed__));
291 #define IAX_FIRMWARE_MAGIC 0x69617879 296 unsigned char devname[16];
298 unsigned char chksum[16];
299 unsigned char data[0];
300 } __attribute__ ((__packed__));
const char * iax2_getformatname(iax2_format format)
iax2 wrapper function for ast_getformatname
static snd_pcm_format_t format