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

Annotation of /main/resip/dum/InviteSession.cxx

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2725 - (hide annotations) (download)
Sun May 9 22:33:53 2004 UTC (15 years, 7 months ago) by jason
Original Path: main/sip/resiprocate/dum/InviteSession.cxx
File size: 3885 byte(s)
get things closer to compiling again

1 jason 2725 #include "resiprocate/SipMessage.hxx"
2     #include "resiprocate/dum/Dialog.hxx"
3     #include "resiprocate/dum/DialogUsageManager.hxx"
4     #include "resiprocate/dum/InviteSession.hxx"
5 jason 2555
6 davidb 2603 using namespace resip;
7    
8     InviteSession::InviteSession(DialogUsageManager& dum,
9     Dialog& dialog)
10     : BaseUsage(dum, dialog),
11 jason 2725 mCurrentLocalSdp(0),
12     mCurrentRemoteSdp(0),
13     mProposedLocalSdp(0),
14     mProposedRemoteSdp(0),
15 jason 2621 mState(Unknown)
16 jason 2555 {
17     }
18    
19     const SdpContents*
20     InviteSession::getLocalSdp()
21     {
22 jason 2725 return mCurrentLocalSdp;
23 jason 2555 }
24    
25     const SdpContents*
26     InviteSession::getRemoteSdp()
27     {
28 jason 2725 return mCurrentRemoteSdp;
29 jason 2555 }
30 davidb 2575
31 jason 2621 void
32     InviteSession::end()
33     {
34     assert(mState == Connected);
35    
36     // no way for the application to modify the BYE yet
37     SipMessage bye;
38     mDialog.makeBye(bye);
39     copyAuthorizations(bye);
40     mDum.send(bye);
41     }
42    
43     void
44     InviteSession::copyAuthorizations(SipMessage& request)
45     {
46 jason 2725 #if 0
47 jason 2621 if (mLastRequest.exists(h_ProxyAuthorizations))
48     {
49     // should make the next auth (change nextNonce)
50     request.header(h_ProxyAuthorizations) = mLastRequest.header(h_ProxyAuthorizations);
51     }
52     if (mLastRequest.exists(h_ProxyAuthorizations))
53     {
54     // should make the next auth (change nextNonce)
55     request.header(h_ProxyAuthorizations) = mLastRequest.header(h_ProxyAuthorizations);
56     }
57 jason 2725 #endif
58 jason 2621 }
59    
60 davidb 2576 InviteSession::Handle::Handle(DialogUsageManager& dum)
61 davidb 2603 : BaseUsage::Handle(dum)
62 davidb 2576 {}
63    
64 davidb 2575 InviteSession*
65     InviteSession::Handle::operator->()
66     {
67 davidb 2603 return static_cast<InviteSession*>(get());
68 davidb 2575 }
69    
70     /* ====================================================================
71     * The Vovida Software License, Version 1.0
72     *
73     * Copyright (c) 2000 Vovida Networks, Inc. All rights reserved.
74     *
75     * Redistribution and use in source and binary forms, with or without
76     * modification, are permitted provided that the following conditions
77     * are met:
78     *
79     * 1. Redistributions of source code must retain the above copyright
80     * notice, this list of conditions and the following disclaimer.
81     *
82     * 2. Redistributions in binary form must reproduce the above copyright
83     * notice, this list of conditions and the following disclaimer in
84     * the documentation and/or other materials provided with the
85    
86     * distribution.
87     *
88     * 3. The names "VOCAL", "Vovida Open Communication Application Library",
89     * and "Vovida Open Communication Application Library (VOCAL)" must
90     * not be used to endorse or promote products derived from this
91     * software without prior written permission. For written
92     * permission, please contact vocal@vovida.org.
93     *
94     * 4. Products derived from this software may not be called "VOCAL", nor
95     * may "VOCAL" appear in their name, without prior written
96     * permission of Vovida Networks, Inc.
97     *
98     * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED
99     * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
100     * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND
101     * NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL VOVIDA
102     * NETWORKS, INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT DAMAGES
103     * IN EXCESS OF $1,000, NOR FOR ANY INDIRECT, INCIDENTAL, SPECIAL,
104     * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
105     * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
106     * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
107     * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
108     * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
109     * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
110     * DAMAGE.
111     *
112     * ====================================================================
113     *
114     * This software consists of voluntary contributions made by Vovida
115     * Networks, Inc. and many individuals on behalf of Vovida Networks,
116     * Inc. For more information on Vovida Networks, Inc., please see
117     * <http://www.vovida.org/>.
118     *
119     */

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27