Mon Mar 20 08:26:00 2006

Asterisk developer's documentation


Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

iax2.h File Reference

Go to the source code of this file.

Data Structures

struct  ast_iax2_firmware_header
struct  ast_iax2_full_enc_hdr
struct  ast_iax2_full_hdr
struct  ast_iax2_meta_hdr
struct  ast_iax2_meta_trunk_entry
struct  ast_iax2_meta_trunk_hdr
struct  ast_iax2_meta_trunk_mini
struct  ast_iax2_mini_enc_hdr
struct  ast_iax2_mini_hdr
struct  ast_iax2_video_hdr

Defines

#define IAX_AUTH_MD5   (1 << 1)
#define IAX_AUTH_PLAINTEXT   (1 << 0)
#define IAX_AUTH_RSA   (1 << 2)
#define IAX_COMMAND_ACCEPT   7
#define IAX_COMMAND_ACK   4
#define IAX_COMMAND_AUTHREP   9
#define IAX_COMMAND_AUTHREQ   8
#define IAX_COMMAND_DIAL   21
#define IAX_COMMAND_DPREP   20
#define IAX_COMMAND_DPREQ   19
#define IAX_COMMAND_FWDATA   37
#define IAX_COMMAND_FWDOWNL   36
#define IAX_COMMAND_HANGUP   5
#define IAX_COMMAND_INVAL   10
#define IAX_COMMAND_LAGRP   12
#define IAX_COMMAND_LAGRQ   11
#define IAX_COMMAND_MWI   32
#define IAX_COMMAND_NEW   1
#define IAX_COMMAND_PAGE   31
#define IAX_COMMAND_PING   2
#define IAX_COMMAND_POKE   30
#define IAX_COMMAND_PONG   3
#define IAX_COMMAND_PROVISION   35
#define IAX_COMMAND_QUELCH   28
#define IAX_COMMAND_REGACK   15
#define IAX_COMMAND_REGAUTH   14
#define IAX_COMMAND_REGREJ   16
#define IAX_COMMAND_REGREL   17
#define IAX_COMMAND_REGREQ   13
#define IAX_COMMAND_REJECT   6
#define IAX_COMMAND_TRANSFER   34
#define IAX_COMMAND_TXACC   24
#define IAX_COMMAND_TXCNT   23
#define IAX_COMMAND_TXREADY   25
#define IAX_COMMAND_TXREJ   27
#define IAX_COMMAND_TXREL   26
#define IAX_COMMAND_TXREQ   22
#define IAX_COMMAND_UNQUELCH   29
#define IAX_COMMAND_UNSUPPORT   33
#define IAX_COMMAND_VNAK   18
#define IAX_DEFAULT_PORTNO   4569
#define IAX_DEFAULT_REG_EXPIRE   60
#define IAX_DPSTATUS_CANEXIST   (1 << 1)
#define IAX_DPSTATUS_EXISTS   (1 << 0)
#define IAX_DPSTATUS_IGNOREPAT   (1 << 14)
#define IAX_DPSTATUS_MATCHMORE   (1 << 15)
#define IAX_DPSTATUS_NONEXISTENT   (1 << 2)
#define IAX_ENCRYPT_AES128   (1 << 0)
#define IAX_FIRMWARE_MAGIC   0x69617879
#define IAX_FLAG_FULL   0x8000
#define IAX_FLAG_RETRANS   0x8000
#define IAX_FLAG_SC_LOG   0x80
#define IAX_IE_ADSICPE   12
#define IAX_IE_AESPROVISIONING   30
#define IAX_IE_APPARENT_ADDR   18
#define IAX_IE_AUTHMETHODS   14
#define IAX_IE_AUTOANSWER   25
#define IAX_IE_CALLED_CONTEXT   5
#define IAX_IE_CALLED_NUMBER   1
#define IAX_IE_CALLING_ANI   3
#define IAX_IE_CALLING_NAME   4
#define IAX_IE_CALLING_NUMBER   2
#define IAX_IE_CALLINGPRES   38
#define IAX_IE_CALLINGTNS   40
#define IAX_IE_CALLINGTON   39
#define IAX_IE_CALLNO   21
#define IAX_IE_CAPABILITY   8
#define IAX_IE_CAUSE   22
#define IAX_IE_CAUSECODE   42
#define IAX_IE_CHALLENGE   15
#define IAX_IE_CODEC_PREFS   45
#define IAX_IE_DATETIME   31
#define IAX_IE_DEVICETYPE   32
#define IAX_IE_DNID   13
#define IAX_IE_DPSTATUS   20
#define IAX_IE_ENCKEY   44
#define IAX_IE_ENCRYPTION   43
#define IAX_IE_FIRMWAREVER   34
#define IAX_IE_FORMAT   9
#define IAX_IE_FWBLOCKDATA   36
#define IAX_IE_FWBLOCKDESC   35
#define IAX_IE_IAX_UNKNOWN   23
#define IAX_IE_LANGUAGE   10
#define IAX_IE_MD5_RESULT   16
#define IAX_IE_MSGCOUNT   24
#define IAX_IE_MUSICONHOLD   26
#define IAX_IE_PASSWORD   7
#define IAX_IE_PROVISIONING   29
#define IAX_IE_PROVVER   37
#define IAX_IE_RDNIS   28
#define IAX_IE_REFRESH   19
#define IAX_IE_RR_DELAY   49
#define IAX_IE_RR_DROPPED   50
#define IAX_IE_RR_JITTER   46
#define IAX_IE_RR_LOSS   47
#define IAX_IE_RR_OOO   51
#define IAX_IE_RR_PKTS   48
#define IAX_IE_RSA_RESULT   17
#define IAX_IE_SAMPLINGRATE   41
#define IAX_IE_SERVICEIDENT   33
#define IAX_IE_TRANSFERID   27
#define IAX_IE_USERNAME   6
#define IAX_IE_VERSION   11
#define IAX_LINGER_TIMEOUT   10
#define IAX_MAX_CALLS   32768
#define IAX_MAX_SHIFT   0x1F
#define IAX_META_TRUNK   1
#define IAX_META_TRUNK_MINI   1
#define IAX_META_TRUNK_SUPERMINI   0
#define IAX_META_VIDEO   2
#define IAX_PROTO_VERSION   2
#define IAX_RATE_11KHZ   (1 << 1)
#define IAX_RATE_16KHZ   (1 << 2)
#define IAX_RATE_22KHZ   (1 << 3)
#define IAX_RATE_44KHZ   (1 << 4)
#define IAX_RATE_48KHZ   (1 << 5)
#define IAX_RATE_8KHZ   (1 << 0)
#define IAX_WINDOW   64

Variables

ast_iax2_full_hdr __packed__


Define Documentation

#define IAX_AUTH_MD5   (1 << 1)
 

Definition at line 133 of file iax2.h.

Referenced by authenticate_request(), build_peer(), and build_user().

#define IAX_AUTH_PLAINTEXT   (1 << 0)
 

Definition at line 132 of file iax2.h.

#define IAX_AUTH_RSA   (1 << 2)
 

Definition at line 134 of file iax2.h.

Referenced by registry_authrequest().

#define IAX_COMMAND_ACCEPT   7
 

Definition at line 39 of file iax2.h.

Referenced by socket_read().

#define IAX_COMMAND_ACK   4
 

Definition at line 36 of file iax2.h.

Referenced by socket_read().

#define IAX_COMMAND_AUTHREP   9
 

Definition at line 41 of file iax2.h.

Referenced by authenticate_reply(), and socket_read().

#define IAX_COMMAND_AUTHREQ   8
 

Definition at line 40 of file iax2.h.

Referenced by authenticate_request(), and socket_read().

#define IAX_COMMAND_DIAL   21
 

Definition at line 53 of file iax2.h.

Referenced by socket_read().

#define IAX_COMMAND_DPREP   20
 

Definition at line 52 of file iax2.h.

Referenced by dp_lookup(), and socket_read().

#define IAX_COMMAND_DPREQ   19
 

Definition at line 51 of file iax2.h.

Referenced by iax2_dprequest(), and socket_read().

#define IAX_COMMAND_FWDATA   37
 

Definition at line 69 of file iax2.h.

Referenced by socket_read().

#define IAX_COMMAND_FWDOWNL   36
 

Definition at line 68 of file iax2.h.

Referenced by socket_read().

#define IAX_COMMAND_HANGUP   5
 

Definition at line 37 of file iax2.h.

Referenced by auto_hangup(), iax2_hangup(), and socket_read().

#define IAX_COMMAND_INVAL   10
 

Definition at line 42 of file iax2.h.

Referenced by raw_hangup(), and socket_read().

#define IAX_COMMAND_LAGRP   12
 

Definition at line 44 of file iax2.h.

Referenced by socket_read().

#define IAX_COMMAND_LAGRQ   11
 

Definition at line 43 of file iax2.h.

Referenced by send_lagrq(), and socket_read().

#define IAX_COMMAND_MWI   32
 

Definition at line 64 of file iax2.h.

#define IAX_COMMAND_NEW   1
 

Definition at line 33 of file iax2.h.

Referenced by cache_get_callno_locked(), iax2_call(), and socket_read().

#define IAX_COMMAND_PAGE   31
 

Definition at line 63 of file iax2.h.

#define IAX_COMMAND_PING   2
 

Definition at line 34 of file iax2.h.

Referenced by send_ping(), and socket_read().

#define IAX_COMMAND_POKE   30
 

Definition at line 62 of file iax2.h.

Referenced by iax2_poke_peer(), and socket_read().

#define IAX_COMMAND_PONG   3
 

Definition at line 35 of file iax2.h.

Referenced by socket_read().

#define IAX_COMMAND_PROVISION   35
 

Definition at line 67 of file iax2.h.

Referenced by iax2_provision().

#define IAX_COMMAND_QUELCH   28
 

Definition at line 60 of file iax2.h.

Referenced by socket_read().

#define IAX_COMMAND_REGACK   15
 

Definition at line 47 of file iax2.h.

Referenced by socket_read(), and update_registry().

#define IAX_COMMAND_REGAUTH   14
 

Definition at line 46 of file iax2.h.

Referenced by registry_authrequest(), and socket_read().

#define IAX_COMMAND_REGREJ   16
 

Definition at line 48 of file iax2.h.

Referenced by socket_read().

#define IAX_COMMAND_REGREL   17
 

Definition at line 49 of file iax2.h.

Referenced by socket_read().

#define IAX_COMMAND_REGREQ   13
 

Definition at line 45 of file iax2.h.

Referenced by iax2_do_register(), registry_rerequest(), and socket_read().

#define IAX_COMMAND_REJECT   6
 

Definition at line 38 of file iax2.h.

Referenced by socket_read().

#define IAX_COMMAND_TRANSFER   34
 

Definition at line 66 of file iax2.h.

Referenced by iax2_transfer(), and socket_read().

#define IAX_COMMAND_TXACC   24
 

Definition at line 56 of file iax2.h.

Referenced by socket_read().

#define IAX_COMMAND_TXCNT   23
 

Definition at line 55 of file iax2.h.

Referenced by socket_read(), and try_transfer().

#define IAX_COMMAND_TXREADY   25
 

Definition at line 57 of file iax2.h.

Referenced by socket_read().

#define IAX_COMMAND_TXREJ   27
 

Definition at line 59 of file iax2.h.

Referenced by attempt_transmit(), and socket_read().

#define IAX_COMMAND_TXREL   26
 

Definition at line 58 of file iax2.h.

Referenced by socket_read().

#define IAX_COMMAND_TXREQ   22
 

Definition at line 54 of file iax2.h.

Referenced by iax2_start_transfer(), and socket_read().

#define IAX_COMMAND_UNQUELCH   29
 

Definition at line 61 of file iax2.h.

Referenced by socket_read().

#define IAX_COMMAND_UNSUPPORT   33
 

Definition at line 65 of file iax2.h.

Referenced by socket_read().

#define IAX_COMMAND_VNAK   18
 

Definition at line 50 of file iax2.h.

Referenced by iax2_vnak(), and socket_read().

#define IAX_DEFAULT_PORTNO   4569
 

Definition at line 75 of file iax2.h.

Referenced by build_peer(), create_addr(), iax2_register(), and load_module().

#define IAX_DEFAULT_REG_EXPIRE   60
 

Definition at line 71 of file iax2.h.

#define IAX_DPSTATUS_CANEXIST   (1 << 1)
 

Definition at line 152 of file iax2.h.

#define IAX_DPSTATUS_EXISTS   (1 << 0)
 

Definition at line 151 of file iax2.h.

#define IAX_DPSTATUS_IGNOREPAT   (1 << 14)
 

Definition at line 154 of file iax2.h.

#define IAX_DPSTATUS_MATCHMORE   (1 << 15)
 

Definition at line 155 of file iax2.h.

#define IAX_DPSTATUS_NONEXISTENT   (1 << 2)
 

Definition at line 153 of file iax2.h.

#define IAX_ENCRYPT_AES128   (1 << 0)
 

Definition at line 136 of file iax2.h.

#define IAX_FIRMWARE_MAGIC   0x69617879
 

Definition at line 221 of file iax2.h.

#define IAX_FLAG_FULL   0x8000
 

Definition at line 22 of file iax2.h.

Referenced by iax2_send(), iax_showframe(), raw_hangup(), and socket_read().

#define IAX_FLAG_RETRANS   0x8000
 

Definition at line 24 of file iax2.h.

Referenced by iax_showframe(), socket_read(), and update_packet().

#define IAX_FLAG_SC_LOG   0x80
 

Definition at line 26 of file iax2.h.

Referenced by uncompress_subclass().

#define IAX_IE_ADSICPE   12
 

Definition at line 89 of file iax2.h.

Referenced by iax2_call(), and iax_parse_ies().

#define IAX_IE_AESPROVISIONING   30
 

Definition at line 107 of file iax2.h.

#define IAX_IE_APPARENT_ADDR   18
 

Definition at line 95 of file iax2.h.

Referenced by iax2_start_transfer(), iax_parse_ies(), and update_registry().

#define IAX_IE_AUTHMETHODS   14
 

Definition at line 91 of file iax2.h.

Referenced by authenticate_request(), iax_parse_ies(), and registry_authrequest().

#define IAX_IE_AUTOANSWER   25
 

Definition at line 102 of file iax2.h.

Referenced by iax2_call(), and iax_parse_ies().

#define IAX_IE_CALLED_CONTEXT   5
 

Definition at line 82 of file iax2.h.

Referenced by cache_get_callno_locked(), iax2_call(), iax2_transfer(), and iax_parse_ies().

#define IAX_IE_CALLED_NUMBER   1
 

Definition at line 78 of file iax2.h.

Referenced by cache_get_callno_locked(), dp_lookup(), iax2_call(), iax2_dprequest(), iax2_transfer(), and iax_parse_ies().

#define IAX_IE_CALLING_ANI   3
 

Definition at line 80 of file iax2.h.

Referenced by iax2_call(), and iax_parse_ies().

#define IAX_IE_CALLING_NAME   4
 

Definition at line 81 of file iax2.h.

Referenced by iax2_call(), iax_parse_ies(), and update_registry().

#define IAX_IE_CALLING_NUMBER   2
 

Definition at line 79 of file iax2.h.

Referenced by iax2_call(), iax_parse_ies(), and update_registry().

#define IAX_IE_CALLINGPRES   38
 

Definition at line 115 of file iax2.h.

Referenced by iax2_call(), and iax_parse_ies().

#define IAX_IE_CALLINGTNS   40
 

Definition at line 117 of file iax2.h.

Referenced by iax2_call(), and iax_parse_ies().

#define IAX_IE_CALLINGTON   39
 

Definition at line 116 of file iax2.h.

Referenced by iax2_call(), and iax_parse_ies().

#define IAX_IE_CALLNO   21
 

Definition at line 98 of file iax2.h.

Referenced by iax2_start_transfer(), iax_parse_ies(), and socket_read().

#define IAX_IE_CAPABILITY   8
 

Definition at line 85 of file iax2.h.

Referenced by cache_get_callno_locked(), iax2_call(), and iax_parse_ies().

#define IAX_IE_CAUSE   22
 

Definition at line 99 of file iax2.h.

Referenced by auth_reject(), auto_hangup(), iax_parse_ies(), and socket_read().

#define IAX_IE_CAUSECODE   42
 

Definition at line 119 of file iax2.h.

Referenced by auth_reject(), auto_hangup(), iax2_hangup(), iax_parse_ies(), and socket_read().

#define IAX_IE_CHALLENGE   15
 

Definition at line 92 of file iax2.h.

Referenced by authenticate_request(), iax_parse_ies(), and registry_authrequest().

#define IAX_IE_CODEC_PREFS   45
 

Definition at line 122 of file iax2.h.

Referenced by iax2_call(), and iax_parse_ies().

#define IAX_IE_DATETIME   31
 

Definition at line 108 of file iax2.h.

Referenced by iax2_call(), iax_parse_ies(), and update_registry().

#define IAX_IE_DEVICETYPE   32
 

Definition at line 109 of file iax2.h.

Referenced by iax_parse_ies().

#define IAX_IE_DNID   13
 

Definition at line 90 of file iax2.h.

Referenced by iax2_call(), and iax_parse_ies().

#define IAX_IE_DPSTATUS   20
 

Definition at line 97 of file iax2.h.

Referenced by dp_lookup(), and iax_parse_ies().

#define IAX_IE_ENCKEY   44
 

Definition at line 121 of file iax2.h.

Referenced by iax_parse_ies().

#define IAX_IE_ENCRYPTION   43
 

Definition at line 120 of file iax2.h.

Referenced by authenticate_request(), iax2_call(), and iax_parse_ies().

#define IAX_IE_FIRMWAREVER   34
 

Definition at line 111 of file iax2.h.

Referenced by iax_parse_ies(), and update_registry().

#define IAX_IE_FORMAT   9
 

Definition at line 86 of file iax2.h.

Referenced by cache_get_callno_locked(), iax2_call(), iax_parse_ies(), and socket_read().

#define IAX_IE_FWBLOCKDATA   36
 

Definition at line 113 of file iax2.h.

Referenced by iax_firmware_append(), and iax_parse_ies().

#define IAX_IE_FWBLOCKDESC   35
 

Definition at line 112 of file iax2.h.

Referenced by iax_firmware_append(), and iax_parse_ies().

#define IAX_IE_IAX_UNKNOWN   23
 

Definition at line 100 of file iax2.h.

Referenced by iax_parse_ies(), and socket_read().

#define IAX_IE_LANGUAGE   10
 

Definition at line 87 of file iax2.h.

Referenced by iax2_call(), and iax_parse_ies().

#define IAX_IE_MD5_RESULT   16
 

Definition at line 93 of file iax2.h.

Referenced by authenticate(), and iax_parse_ies().

#define IAX_IE_MSGCOUNT   24
 

Definition at line 101 of file iax2.h.

Referenced by iax_parse_ies(), and update_registry().

#define IAX_IE_MUSICONHOLD   26
 

Definition at line 103 of file iax2.h.

Referenced by iax_parse_ies().

#define IAX_IE_PASSWORD   7
 

Definition at line 84 of file iax2.h.

Referenced by authenticate(), and iax_parse_ies().

#define IAX_IE_PROVISIONING   29
 

Definition at line 106 of file iax2.h.

Referenced by iax2_provision().

#define IAX_IE_PROVVER   37
 

Definition at line 114 of file iax2.h.

Referenced by iax_parse_ies().

#define IAX_IE_RDNIS   28
 

Definition at line 105 of file iax2.h.

Referenced by iax_parse_ies().

#define IAX_IE_REFRESH   19
 

Definition at line 96 of file iax2.h.

Referenced by dp_lookup(), iax2_do_register(), iax_parse_ies(), registry_rerequest(), and update_registry().

#define IAX_IE_RR_DELAY   49
 

Definition at line 127 of file iax2.h.

Referenced by construct_rr(), and iax_parse_ies().

#define IAX_IE_RR_DROPPED   50
 

Definition at line 128 of file iax2.h.

Referenced by construct_rr(), and iax_parse_ies().

#define IAX_IE_RR_JITTER   46
 

Definition at line 124 of file iax2.h.

Referenced by construct_rr(), and iax_parse_ies().

#define IAX_IE_RR_LOSS   47
 

Definition at line 125 of file iax2.h.

Referenced by construct_rr(), and iax_parse_ies().

#define IAX_IE_RR_OOO   51
 

Definition at line 129 of file iax2.h.

Referenced by construct_rr(), and iax_parse_ies().

#define IAX_IE_RR_PKTS   48
 

Definition at line 126 of file iax2.h.

Referenced by construct_rr(), and iax_parse_ies().

#define IAX_IE_RSA_RESULT   17
 

Definition at line 94 of file iax2.h.

Referenced by authenticate(), and iax_parse_ies().

#define IAX_IE_SAMPLINGRATE   41
 

Definition at line 118 of file iax2.h.

Referenced by iax_parse_ies().

#define IAX_IE_SERVICEIDENT   33
 

Definition at line 110 of file iax2.h.

Referenced by iax_parse_ies().

#define IAX_IE_TRANSFERID   27
 

Definition at line 104 of file iax2.h.

Referenced by iax2_start_transfer(), iax_parse_ies(), and try_transfer().

#define IAX_IE_USERNAME   6
 

Definition at line 83 of file iax2.h.

Referenced by authenticate_request(), cache_get_callno_locked(), iax2_call(), iax2_do_register(), iax_parse_ies(), registry_authrequest(), registry_rerequest(), and update_registry().

#define IAX_IE_VERSION   11
 

Definition at line 88 of file iax2.h.

Referenced by cache_get_callno_locked(), iax2_call(), and iax_parse_ies().

#define IAX_LINGER_TIMEOUT   10
 

Definition at line 73 of file iax2.h.

#define IAX_MAX_CALLS   32768
 

Definition at line 20 of file iax2.h.

Referenced by make_trunk(), and update_max_trunk().

#define IAX_MAX_SHIFT   0x1F
 

Definition at line 28 of file iax2.h.

#define IAX_META_TRUNK   1
 

Definition at line 138 of file iax2.h.

Referenced by socket_read().

#define IAX_META_TRUNK_MINI   1
 

Definition at line 142 of file iax2.h.

#define IAX_META_TRUNK_SUPERMINI   0
 

Definition at line 141 of file iax2.h.

#define IAX_META_VIDEO   2
 

Definition at line 139 of file iax2.h.

#define IAX_PROTO_VERSION   2
 

Definition at line 18 of file iax2.h.

Referenced by cache_get_callno_locked(), and iax2_call().

#define IAX_RATE_11KHZ   (1 << 1)
 

Definition at line 145 of file iax2.h.

#define IAX_RATE_16KHZ   (1 << 2)
 

Definition at line 146 of file iax2.h.

#define IAX_RATE_22KHZ   (1 << 3)
 

Definition at line 147 of file iax2.h.

#define IAX_RATE_44KHZ   (1 << 4)
 

Definition at line 148 of file iax2.h.

#define IAX_RATE_48KHZ   (1 << 5)
 

Definition at line 149 of file iax2.h.

#define IAX_RATE_8KHZ   (1 << 0)
 

Definition at line 144 of file iax2.h.

#define IAX_WINDOW   64
 

Definition at line 30 of file iax2.h.


Variable Documentation

struct ast_iax2_firmware_header __packed__
 


Generated on Mon Mar 20 08:26:00 2006 for Asterisk - the Open Source PBX by  doxygen 1.3.9.1