/[resiprocate]/main/resip/dum/DefaultServerReferHandler.cxx
ViewVC logotype

Contents of /main/resip/dum/DefaultServerReferHandler.cxx

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6507 - (show annotations) (download)
Tue Aug 15 17:01:21 2006 UTC (13 years, 3 months ago) by sgodin
File MIME type: text/plain
File size: 3385 byte(s)
- changed ExpiresCategory.cxx to be an UInt32 so that Expires parameter can handle up to 2^32-1 as in RFC
- modified dum so that expiration values use UInt32 instead of int for storage

1
2 #include "resip/dum/DefaultServerReferHandler.hxx"
3 #include "resip/dum/ServerSubscription.hxx"
4 #include "rutil/Logger.hxx"
5
6 #define RESIPROCATE_SUBSYSTEM Subsystem::DUM
7
8 using namespace resip;
9
10 void
11 DefaultServerReferHandler::onNewSubscription(ServerSubscriptionHandle, const SipMessage& sub)
12 {}
13
14 void
15 DefaultServerReferHandler::onNewSubscriptionFromRefer(ServerSubscriptionHandle, const SipMessage& sub)
16 {}
17
18 void
19 DefaultServerReferHandler::onRefresh(ServerSubscriptionHandle, const SipMessage& sub)
20 {}
21
22 void
23 DefaultServerReferHandler::onTerminated(ServerSubscriptionHandle)
24 {}
25
26 void DefaultServerReferHandler::onReadyToSend(ServerSubscriptionHandle, SipMessage&)
27 {}
28
29 ////!dcm! -- not thread-safe
30 //DefaultServerReferHandler* DefaultServerReferHandler::Instance()
31 //{
32 // static DefaultServerReferHandler mInstance;
33 // return &mInstance;
34 //}
35
36
37 bool
38 DefaultServerReferHandler::hasDefaultExpires() const
39 {
40 return true;
41 }
42
43 UInt32
44 DefaultServerReferHandler::getDefaultExpires() const
45 {
46 return 60;
47 }
48
49 /* ====================================================================
50 * The Vovida Software License, Version 1.0
51 *
52 * Copyright (c) 2000 Vovida Networks, Inc. All rights reserved.
53 *
54 * Redistribution and use in source and binary forms, with or without
55 * modification, are permitted provided that the following conditions
56 * are met:
57 *
58 * 1. Redistributions of source code must retain the above copyright
59 * notice, this list of conditions and the following disclaimer.
60 *
61 * 2. Redistributions in binary form must reproduce the above copyright
62 * notice, this list of conditions and the following disclaimer in
63 * the documentation and/or other materials provided with the
64 * distribution.
65 *
66 * 3. The names "VOCAL", "Vovida Open Communication Application Library",
67 * and "Vovida Open Communication Application Library (VOCAL)" must
68 * not be used to endorse or promote products derived from this
69 * software without prior written permission. For written
70 * permission, please contact vocal@vovida.org.
71 *
72 * 4. Products derived from this software may not be called "VOCAL", nor
73 * may "VOCAL" appear in their name, without prior written
74 * permission of Vovida Networks, Inc.
75 *
76 * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED
77 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
78 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND
79 * NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL VOVIDA
80 * NETWORKS, INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT DAMAGES
81 * IN EXCESS OF $1,000, NOR FOR ANY INDIRECT, INCIDENTAL, SPECIAL,
82 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
83 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
84 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
85 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
86 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
87 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
88 * DAMAGE.
89 *
90 * ====================================================================
91 *
92 * This software consists of voluntary contributions made by Vovida
93 * Networks, Inc. and many individuals on behalf of Vovida Networks,
94 * Inc. For more information on Vovida Networks, Inc., please see
95 * <http://www.vovida.org/>.
96 *
97 */

Properties

Name Value
svn:eol-style native
svn:mime-type text/plain

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27