Module: Rex::Proto::IAX2
- Defined in:
- lib/rex/proto/iax2/call.rb,
lib/rex/proto/iax2/client.rb,
lib/rex/proto/iax2/constants.rb,
lib/rex/proto/iax2/codecs/alaw.rb,
lib/rex/proto/iax2/codecs/g711.rb,
lib/rex/proto/iax2/codecs/mulaw.rb
Defined Under Namespace
Modules: Codecs Classes: Call, Client
Constant Summary collapse
- IAX2_DEFAULT_PORT =
4569
- IAX_TYPE_VOICE =
2
- IAX_TYPE_CONTROL =
4
- IAX_TYPE_IAX =
6
- IAX_TYPE_DTMF_BEGIN =
1
- IAX_TYPE_DTMF_END =
12
- IAX_CTRL_HANGUP =
1
- IAX_CTRL_RINGING =
3
- IAX_CTRL_ANSWER =
4
- IAX_CTRL_BUSY =
5
- IAX_CTRL_PROGRESS =
14
- IAX_CTRL_PROCEED =
15
- IAX_SUBTYPE_NEW =
1
- IAX_SUBTYPE_PING =
2
- IAX_SUBTYPE_PONG =
3
- IAX_SUBTYPE_ANSWER =
4
- IAX_SUBTYPE_ACK =
4
- IAX_SUBTYPE_HANGUP =
5
- IAX_SUBTYPE_REJECT =
6
- IAX_SUBTYPE_ACCEPT =
7
- IAX_SUBTYPE_AUTHREQ =
8
- IAX_SUBTYPE_AUTHREP =
9
- IAX_SUBTYPE_INVAL =
10
- IAX_SUBTYPE_LAGRQ =
11
- IAX_SUBTYPE_LAGRP =
12
- IAX_SUBTYPE_REGREQ =
13
- IAX_SUBTYPE_REGAUTH =
14
- IAX_SUBTYPE_REGACK =
15
- IAX_SUBTYPE_REGREJ =
16
- IAX_SUBTYPE_REGREL =
17
- IAX_SUBTYPE_VNAK =
18
- IAX_IE_CALLED_NUMBER =
------
———–-----------------------------------------
| Hex | Name | Description | +------+-----------+-----------------------------------------+ | 0x01 | NEW | Initiate a new call | | | | | | 0x02 | PING | Ping request | | | | | | 0x03 | PONG | Ping or poke reply | | | | | | 0x04 | ACK | Explicit acknowledgment | | | | | | 0x05 | HANGUP | Initiate call tear-down | | | | | | 0x06 | REJECT | Reject a call | | | | | | 0x07 | ACCEPT | Accept a call | | | | | | 0x08 | AUTHREQ | Authentication request | | | | | | 0x09 | AUTHREP | Authentication reply | | | | | | 0x0a | INVAL | Invalid message | | | | | | 0x0b | LAGRQ | Lag request | | | | | | 0x0c | LAGRP | Lag reply | | | | | | 0x0d | REGREQ | Registration request | | | | | | 0x0e | REGAUTH | Registration authentication | | | | | | 0x0f | REGACK | Registration acknowledgement | | | | | | 0x10 | REGREJ | Registration reject | | | | | | 0x11 | REGREL | Registration release | | | | | | 0x12 | VNAK | Video/Voice retransmit request | | | | | | 0x13 | DPREQ | Dialplan request | | | | | | 0x14 | DPREP | Dialplan reply | | | | | | 0x15 | DIAL | Dial | | | | | | 0x16 | TXREQ | Transfer request | | | | | | 0x17 | TXCNT | Transfer connect | | | | | | 0x18 | TXACC | Transfer accept | | | | | | 0x19 | TXREADY | Transfer ready | | | | | | 0x1a | TXREL | Transfer release | | | | | | 0x1b | TXREJ | Transfer reject | | | | | | 0x1c | QUELCH | Halt audio/video [media] transmission | | | | | | 0x1d | UNQUELCH | Resume audio/video [media] transmission | | | | | | 0x1e | POKE | Poke request | | | | | | 0x1f | Reserved | Reserved for future use | | | | | | 0x20 | MWI | Message waiting indication | | | | | | 0x21 | UNSUPPORT | Unsupported message | | | | | | 0x22 | TRANSFER | Remote transfer request | | | | | | 0x23 | Reserved | Reserved for future use | | | | | | 0x24 | Reserved | Reserved for future use | | | | | | 0x25 | Reserved | Reserved for future use | +------+-----------+-----------------------------------------+
1
- IAX_IE_CALLING_NUMBER =
2
- IAX_IE_AUTH_METHODS =
3
- IAX_IE_CALLING_NAME =
4
- IAX_IE_USERNAME =
6
- IAX_IE_DESIRED_CODEC =
9
- IAX_IE_ORIGINAL_DID =
10
- IAX_IE_ACTUAL_CODECS =
8
- IAX_IE_PROTO_VERSION =
11
- IAX_IE_REG_REFRESH =
19
- IAX_IE_CHALLENGE_DATA =
15
- IAX_IE_CHALLENGE_RESP =
16
- IAX_IE_APPARENT_ADDR =
18
- IAX_IE_REGREJ_CAUSE =
22
- IAX_IE_HANGUP_CAUSE =
42
- IAX_CODEC_G711_MULAW =
Codecs
0x00000004
- IAX_CODEC_G711_ALAW =
0x00000008
- IAX_CODEC_LINEAR_PCM =
0x00000040
- IAX_SUPPORTED_CODECS =
Supported
IAX_CODEC_G711_MULAW | IAX_CODEC_G711_ALAW | IAX_CODEC_LINEAR_PCM
- IAX_DEFAULT_REG_REFRESH =
Default timings
60
- IAX_DEFAULT_TIMEOUT =
10