001: /*
002: * Portions Copyright 2000-2007 Sun Microsystems, Inc. All Rights
003: * Reserved. Use is subject to license terms.
004: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
005: *
006: * This program is free software; you can redistribute it and/or
007: * modify it under the terms of the GNU General Public License version
008: * 2 only, as published by the Free Software Foundation.
009: *
010: * This program is distributed in the hope that it will be useful, but
011: * WITHOUT ANY WARRANTY; without even the implied warranty of
012: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
013: * General Public License version 2 for more details (a copy is
014: * included at /legal/license.txt).
015: *
016: * You should have received a copy of the GNU General Public License
017: * version 2 along with this work; if not, write to the Free Software
018: * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
019: * 02110-1301 USA
020: *
021: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
022: * Clara, CA 95054 or visit www.sun.com if you need additional
023: * information or have any questions.
024: */
025: package gov.nist.siplite;
026:
027: /**
028: * Constant values.
029: * Each constant has a prefix defining a group that the constant belongs to:
030: * SCHEME - scheme constants;
031: * TRANSPORT - transport names;
032: * TOKEN - tokens designating names of days, months and letters;
033: * GENERAL - all other constants.
034: * Constants related to SIP requests and responses are located
035: * in Request and Response respectively.
036: */
037: public interface SIPConstants {
038: /** SIP version string. */
039: String SIP_VERSION_STRING = "SIP/2.0";
040: /** SIP protocol scheme label. */
041: public static final String SCHEME_SIP = "SIP";
042: /** SIPS protocol scheme label. */
043: public static final String SCHEME_SIPS = "SIPS";
044: /** TEL protocol scheme token. */
045: public static final String SCHEME_TEL = "TEL";
046: /** UDP transport label. */
047: public static final String TRANSPORT_UDP = "UDP";
048: /** TCP transport label. */
049: public static final String TRANSPORT_TCP = "TCP";
050: /** TLS transport label. */
051: public static final String TRANSPORT_TLS = "TLS";
052: /** SCTP transport label. */
053: public static final String TRANSPORT_SCTP = "SCTP";
054: /** Default port for TCP, UDP and SCTP. */
055: public static int DEFAULT_NONTLS_PORT = 5060;
056: /** Default port for TLS. */
057: public static int DEFAULT_TLS_PORT = 5061;
058:
059: /** Post a dialing method. */
060: public static final String GENERAL_POSTDIAL = "postdial";
061: /** Current phone context label. */
062: public static final String GENERAL_PHONE_CONTEXT_TAG = "context-tag";
063: /** ISDN subaddress label. */
064: public static final String GENERAL_ISUB = "isub";
065: /** Label for current provider attribute. */
066: public static final String GENERAL_PROVIDER_TAG = "provider-tag";
067: /** User name label. */
068: public static final String GENERAL_USER = "user";
069: /** Transport type label. */
070: public static final String GENERAL_TRANSPORT = "transport";
071: /** Method label. */
072: public static final String GENERAL_METHOD = "method";
073: /** Time to live label. */
074: public static final String GENERAL_TTL = "ttl";
075: /** Mail address label. */
076: public static final String GENERAL_MADDR = "maddr";
077: /** lr label (???). RFC */
078: public static final String GENERAL_LR = "lr";
079: /** Branch label. */
080: public static final String GENERAL_BRANCH = "branch";
081: /** Type label. */
082: public static final String GENERAL_TYPE = "type";
083:
084: /**
085: * Prefix for the branch parameter that identifies
086: * BIS 09 compatible branch strings. This indicates
087: * that the branch may be as a global identifier for
088: * identifying transactions.
089: */
090: public static final String GENERAL_BRANCH_MAGIC_COOKIE = "z9hG4bK";
091:
092: /** GMT time zone token. */
093: public static final String TOKEN_GMT = "GMT";
094: /** Monday token. */
095: public static final String TOKEN_DAY_MON = "MON";
096: /** Tuesday token. */
097: public static final String TOKEN_DAY_TUE = "TUE";
098: /** Wednesday token. */
099: public static final String TOKEN_DAY_WED = "WED";
100: /** Thursday token. */
101: public static final String TOKEN_DAY_THU = "THU";
102: /** Friday token. */
103: public static final String TOKEN_DAY_FRI = "FRI";
104: /** Saturday token. */
105: public static final String TOKEN_DAY_SAT = "SAT";
106: /** Sunday token. */
107: public static final String TOKEN_DAY_SUN = "SUN";
108: /** January token. */
109: public static final String TOKEN_MONTH_JAN = "JAN";
110: /** February token. */
111: public static final String TOKEN_MONTH_FEB = "FEB";
112: /** March token. */
113: public static final String TOKEN_MONTH_MAR = "MAR";
114: /** April token. */
115: public static final String TOKEN_MONTH_APR = "APR";
116: /** May token. */
117: public static final String TOKEN_MONTH_MAY = "MAY";
118: /** June token. */
119: public static final String TOKEN_MONTH_JUN = "JUN";
120: /** July token. */
121: public static final String TOKEN_MONTH_JUL = "JUL";
122: /** August token. */
123: public static final String TOKEN_MONTH_AUG = "AUG";
124: /** September token. */
125: public static final String TOKEN_MONTH_SEP = "SEP";
126: /** October token. */
127: public static final String TOKEN_MONTH_OCT = "OCT";
128: /** November token. */
129: public static final String TOKEN_MONTH_NOV = "NOV";
130: /** December token. */
131: public static final String TOKEN_MONTH_DEC = "DEC";
132: /** K token. */
133: public static final String TOKEN_LETTER_K = "K";
134: /** C token. */
135: public static final String TOKEN_LETTER_C = "C";
136: /** E token. */
137: public static final String TOKEN_LETTER_E = "E";
138: /** F token. */
139: public static final String TOKEN_LETTER_F = "F";
140: /** I token. */
141: public static final String TOKEN_LETTER_I = "I";
142: /** M token. */
143: public static final String TOKEN_LETTER_M = "M";
144: /** L token. */
145: public static final String TOKEN_LETTER_L = "L";
146: /** O token. */
147: public static final String TOKEN_LETTER_O = "O";
148: /** S token. */
149: public static final String TOKEN_LETTER_S = "S";
150: /** T token. */
151: public static final String TOKEN_LETTER_T = "T";
152: /** V token. */
153: public static final String TOKEN_LETTER_V = "V";
154: /** U token. */
155: public static final String TOKEN_LETTER_U = "U";
156: /** A token. */
157: public static final String TOKEN_LETTER_A = "A";
158: }
|