sipvoipprovider/inc/svpsipconsts.h
branchRCL_3
changeset 21 f742655b05bf
parent 20 65a3ef1d5bd0
child 22 d38647835c2e
equal deleted inserted replaced
20:65a3ef1d5bd0 21:f742655b05bf
     1 /*
       
     2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  SIP constants for SVP.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef SVPSIPCONSTS_H
       
    21 #define SVPSIPCONSTS_H
       
    22 
       
    23 #include <e32base.h>
       
    24 
       
    25 // Reason phrases
       
    26 _LIT8( KSVPIntervalTooSmallReason, "Session Interval Too Small" );
       
    27 _LIT8( KSVPCallTransactDoesNotExistReason, "Call/Transaction Does Not Exist");
       
    28 _LIT8( KSVPQueuedReason, "Queued" );
       
    29 _LIT8( KSVPRequestTerminatedReason, "Request Terminated");
       
    30 _LIT8( KSVPIncompatibleMediaFormatReason, "Incompatible media format");
       
    31 _LIT8( KSVPNotAcceptableHereReason, "Not Acceptable Here" );
       
    32 
       
    33 //Response codes
       
    34 _LIT8( KSVPNotifyTrying, "SIP/2.0 100 Trying" );
       
    35 _LIT8( KSVPNotifyRinging, "SIP/2.0 180 Ringing" );
       
    36 _LIT8( KSVPNotifyOK, "SIP/2.0 200 OK" );
       
    37 _LIT8( KSVPBusyHereReason, "SIP/2.0 486 Busy Here" );
       
    38 _LIT8( KSVPNotifyServiceUnavailable, "SIP/2.0 503 Service Unavailable" );
       
    39 _LIT8( KSVPNotifyRinging183, "SIP/2.0 183 Ringing" );
       
    40 _LIT8( KSVPNotifyOk2, "SIP/2.0 200 Ok" );
       
    41 
       
    42 //Response messages
       
    43 //Provisional 1xx
       
    44 const TInt KSVPTryingVal                   = 100;
       
    45 const TInt KSVPRingingVal                  = 180;
       
    46 const TInt KSVPForwardedVal                = 181;
       
    47 const TInt KSVPQueuedVal                   = 182;
       
    48 const TInt KSVPSessionProgressVal          = 183;
       
    49 
       
    50 //Successful 2xx
       
    51 const TInt KSVPOKVal                       = 200;
       
    52 const TInt KSVPAcceptedVal                 = 202;
       
    53 
       
    54 // Call forwarding 3xx
       
    55 const TInt KSVPMultipleChoicesVal          = 300;
       
    56 const TInt KSVPMovedPermanentlyVal         = 301;
       
    57 const TInt KSVPMovedTemporarilyVal         = 302;
       
    58 const TInt KSVPUseProxyVal                 = 305;
       
    59 const TInt KSVPAlternativeServiceVal       = 380;
       
    60 
       
    61 //Request Failure 4xx
       
    62 const TInt KSVPBadRequestVal               = 400;
       
    63 const TInt KSVPUnauthorizedVal             = 401;
       
    64 const TInt KSVPPaymentRequiredVal          = 402;
       
    65 const TInt KSVPForbiddenVal                = 403;
       
    66 const TInt KSVPNotFoundVal                 = 404;
       
    67 const TInt KSVPMethodNotAllowedVal         = 405;
       
    68 const TInt KSVP406NotAcceptableVal         = 406;
       
    69 const TInt KSVPProxyAuthenticationRequiredVal = 407;
       
    70 const TInt KSVPRequestTimeoutVal           = 408;
       
    71 const TInt KSVPGoneVal                     = 410;
       
    72 const TInt KSVPRequestEntityTooLargeVal    = 413;
       
    73 const TInt KSVPRequestUriTooLongVal        = 414;
       
    74 const TInt KSVPUnsupportedMediaTypeVal     = 415;
       
    75 const TInt KSVPUnsupportedUriSchemeVal     = 416;
       
    76 const TInt KSVPBadExtensionVal             = 420;
       
    77 const TInt KSVPExtensionRequiredVal        = 421;
       
    78 const TInt KSVPSessionIntervalTooSmallVal  = 422;
       
    79 const TInt KSVPIntervalTooBriefVal         = 423;
       
    80 const TInt KSVPTemporarilyUnavailableVal   = 480;
       
    81 const TInt KSVPCallDoesNotExistVal         = 481;
       
    82 const TInt KSVPLoopDetectedVal             = 482;
       
    83 const TInt KSVPTooManyHopsVal              = 483;
       
    84 const TInt KSVPAddressIncompleteVal        = 484;
       
    85 const TInt KSVPAmbiguousVal                = 485;
       
    86 const TInt KSVPBusyHereVal                 = 486;
       
    87 const TInt KSVPRequestTerminatedVal        = 487;
       
    88 const TInt KSVPNotAcceptableHereVal        = 488;
       
    89 const TInt KSVPBadEventVal                 = 489;
       
    90 const TInt KSVPRequestPendingVal           = 491;
       
    91 const TInt KSVPSecurityAgreementRequiredVal = 494;
       
    92 
       
    93 //Server Failure 5xx
       
    94 const TInt KSVPServerInternalErrorVal      = 500;
       
    95 const TInt KSVPNotImplementedVal           = 501;
       
    96 const TInt KSVPBadGatewayVal               = 502;
       
    97 const TInt KSVPServiceUnavailableVal       = 503;
       
    98 const TInt KSVPServerTimeoutVal            = 504;
       
    99 const TInt KSVPVersionNotSupportedVal      = 505;
       
   100 const TInt KSVPMessageTooLargeVal          = 513;
       
   101 const TInt KSVPPreconditionFailureVal      = 580;
       
   102 
       
   103 //Global Failures 6xx
       
   104 const TInt KSVPDeclineVal                  = 603;
       
   105 const TInt KSVPBusyEverywhereVal           = 600;
       
   106 const TInt KSVPDoesNotExistAnywhereVal     = 604;
       
   107 const TInt KSVPNotAcceptableVal            = 606;
       
   108 
       
   109 //WarnCodes of the Response
       
   110 //Media type not available
       
   111 const TInt KSVPWarnMediaTypeNotAvailable   = 304;
       
   112 //Incompatible media format
       
   113 const TInt KSVPWarnIncompatibleMediaFormat = 305;
       
   114 
       
   115 
       
   116 #endif // SVPSIPCONSTS_H