ch.claudio.iax2
Class Constants

java.lang.Object
  extended by ch.claudio.iax2.Constants

public final class Constants
extends java.lang.Object

Collection of constants appearing in the IAX Protocol like frame and IE numbers.

Version:
$Id: Constants.java 148 2006-09-14 20:52:32Z claudio $
Author:
Claudio Nieder

Copyright (C) 2006 Claudio Nieder <private@claudio.ch>, CH-8610 Uster

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA


Field Summary
static short acceptFrame
           
static short ackFrame
           
static short answerFrame
           
static byte authMethodIE
          List of allowed authentication methods
static short authrepFrame
           
static short authreqFrame
           
static short busyFrame
           
static byte calledNumberIE
          The number to be dialled
static short callProceedingFrame
           
static short callProgressFrame
           
static byte challengeIE
          Challenge
static byte codecsIE
          List of all supported codecs
static long codecSpeex
          Speex codex
static short controlFrame
           
static byte desiredCodecIE
          Preferred codec
static short dialFrame
           
static short hangupCFrame
           
static short hangupFrame
           
static short holdFrame
           
static short iaxControlFrame
           
static int iaxPort
          All IAX traffic goes to UDP port 4569.
static int iaxVersion
          IAX protocol version 4569.
static int iseqOffset
          Offset in the frame where the inbound sequence number is located.
static short lagrepFrame
           
static short lagreqFrame
           
static long maxAckWaitTime
          The time to wait for an acknowledge is adjusted depending on round-trip time.
static int maxRetry
          The maximum number a reliable message is resent.
static byte md5IE
          Challenge response
static int methodMD5
          MD5 challenge authentication method (see authMethodIE)
static int methodPlain
          Plain text authentication method (see authMethodIE)
static int methodRSA
          RSA challenge authentication method (see authMethodIE)
static short newFrame
          New frame with which a call is set up.
static int oseqOffset
          Offset in the frame where the outbound sequence number is located.
static byte passwordIE
          The element carrying a plain text password
static short pingFrame
           
static short pongFrame
           
static short regackFrame
          Register acknowledgement frame
static short regauthFrame
          Register authentication request frame
static short registerFrame
           
static long registrationTimeout
          This is the deafault registration timeout.
static short regrejFrame
           
static short regrelFrame
           
static short rejectFrame
           
static short reqreqFrame
          Register request frame.
static short ringingFrame
           
static int second
          Duration of one second in milliseconds
static int timestampOffset
          Offset in the frame where timestamp is located
static short trasferFrame
           
static short txaccFrame
           
static short txcntFrame
           
static short txreadyFrame
           
static short txrejFrame
           
static short txrelFrame
           
static short txreqFrame
           
static short unholdFrame
           
static byte userIE
          The user name in registration or call setup.
static byte versionIE
          Protocol version.
static short voiceFrame
          Frame and subframe types
 
Constructor Summary
Constants()
           
 
Method Summary
static void main(java.lang.String[] args)
          Print license.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

iaxPort

public static final int iaxPort
All IAX traffic goes to UDP port 4569.

See Also:
Constant Field Values

iaxVersion

public static final int iaxVersion
IAX protocol version 4569.

See Also:
Constant Field Values

timestampOffset

public static final int timestampOffset
Offset in the frame where timestamp is located

See Also:
Constant Field Values

oseqOffset

public static final int oseqOffset
Offset in the frame where the outbound sequence number is located. This is the sequence number of the transmitted packet.

See Also:
Constant Field Values

iseqOffset

public static final int iseqOffset
Offset in the frame where the inbound sequence number is located. This is the sequence number expected for the next packet and acknowledges all packets with a smaller sequence number.

See Also:
Constant Field Values

voiceFrame

public static final short voiceFrame
Frame and subframe types

See Also:
Constant Field Values

controlFrame

public static final short controlFrame
See Also:
Constant Field Values

hangupCFrame

public static final short hangupCFrame
See Also:
Constant Field Values

ringingFrame

public static final short ringingFrame
See Also:
Constant Field Values

answerFrame

public static final short answerFrame
See Also:
Constant Field Values

busyFrame

public static final short busyFrame
See Also:
Constant Field Values

callProgressFrame

public static final short callProgressFrame
See Also:
Constant Field Values

callProceedingFrame

public static final short callProceedingFrame
See Also:
Constant Field Values

holdFrame

public static final short holdFrame
See Also:
Constant Field Values

unholdFrame

public static final short unholdFrame
See Also:
Constant Field Values

iaxControlFrame

public static final short iaxControlFrame
See Also:
Constant Field Values

registerFrame

public static final short registerFrame
See Also:
Constant Field Values

newFrame

public static final short newFrame
New frame with which a call is set up.

See Also:
Constant Field Values

pingFrame

public static final short pingFrame
See Also:
Constant Field Values

pongFrame

public static final short pongFrame
See Also:
Constant Field Values

ackFrame

public static final short ackFrame
See Also:
Constant Field Values

hangupFrame

public static final short hangupFrame
See Also:
Constant Field Values

rejectFrame

public static final short rejectFrame
See Also:
Constant Field Values

acceptFrame

public static final short acceptFrame
See Also:
Constant Field Values

authreqFrame

public static final short authreqFrame
See Also:
Constant Field Values

authrepFrame

public static final short authrepFrame
See Also:
Constant Field Values

lagreqFrame

public static final short lagreqFrame
See Also:
Constant Field Values

lagrepFrame

public static final short lagrepFrame
See Also:
Constant Field Values

reqreqFrame

public static final short reqreqFrame
Register request frame.

See Also:
Constant Field Values

regauthFrame

public static final short regauthFrame
Register authentication request frame

See Also:
Constant Field Values

regackFrame

public static final short regackFrame
Register acknowledgement frame

See Also:
Constant Field Values

regrejFrame

public static final short regrejFrame
See Also:
Constant Field Values

regrelFrame

public static final short regrelFrame
See Also:
Constant Field Values

dialFrame

public static final short dialFrame
See Also:
Constant Field Values

txreqFrame

public static final short txreqFrame
See Also:
Constant Field Values

txcntFrame

public static final short txcntFrame
See Also:
Constant Field Values

txaccFrame

public static final short txaccFrame
See Also:
Constant Field Values

txreadyFrame

public static final short txreadyFrame
See Also:
Constant Field Values

txrelFrame

public static final short txrelFrame
See Also:
Constant Field Values

txrejFrame

public static final short txrejFrame
See Also:
Constant Field Values

trasferFrame

public static final short trasferFrame
See Also:
Constant Field Values

calledNumberIE

public static final byte calledNumberIE
The number to be dialled

See Also:
Constant Field Values

userIE

public static final byte userIE
The user name in registration or call setup.

See Also:
Constant Field Values

passwordIE

public static final byte passwordIE
The element carrying a plain text password

See Also:
Constant Field Values

codecsIE

public static final byte codecsIE
List of all supported codecs

See Also:
Constant Field Values

desiredCodecIE

public static final byte desiredCodecIE
Preferred codec

See Also:
Constant Field Values

versionIE

public static final byte versionIE
Protocol version. Required in NEW frame

See Also:
Constant Field Values

md5IE

public static final byte md5IE
Challenge response

See Also:
Constant Field Values

authMethodIE

public static final byte authMethodIE
List of allowed authentication methods

See Also:
Constant Field Values

challengeIE

public static final byte challengeIE
Challenge

See Also:
Constant Field Values

methodPlain

public static final int methodPlain
Plain text authentication method (see authMethodIE)

See Also:
Constant Field Values

methodMD5

public static final int methodMD5
MD5 challenge authentication method (see authMethodIE)

See Also:
Constant Field Values

methodRSA

public static final int methodRSA
RSA challenge authentication method (see authMethodIE)

See Also:
Constant Field Values

codecSpeex

public static final long codecSpeex
Speex codex

See Also:
Constant Field Values

second

public static final int second
Duration of one second in milliseconds

See Also:
Constant Field Values

maxAckWaitTime

public static final long maxAckWaitTime
The time to wait for an acknowledge is adjusted depending on round-trip time. Yet there is an upper boundary of 10 seconds.

See Also:
Constant Field Values

maxRetry

public static final int maxRetry
The maximum number a reliable message is resent. If no acknowledge was received after this many retries the connection is terminated.

See Also:
Constant Field Values

registrationTimeout

public static final long registrationTimeout
This is the deafault registration timeout.

See Also:
Constant Field Values
Constructor Detail

Constants

public Constants()
Method Detail

main

public static final void main(java.lang.String[] args)
Print license.

Parameters:
args - ignored