⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dialerconfiguration.hxx

📁 这是国外的resip协议栈
💻 HXX
字号:
#ifndef __DIALERCONFIGURATION_H#define __DIALERCONFIGURATION_H#include <iostream>#include "resip/stack/NameAddr.hxx"#include "resip/stack/Uri.hxx"#include "rutil/Data.hxx"class DialerConfiguration {public:   DialerConfiguration();   virtual ~DialerConfiguration();   void loadStream(std::istream& in);   void setDialerIdentity(const resip::NameAddr& dialerIdentity)      { mDialerIdentity = dialerIdentity; };   const resip::NameAddr& getDialerIdentity()       { return mDialerIdentity; };   void setAuthRealm(const resip::Data& authRealm)      { mAuthRealm = authRealm; };   const resip::Data& getAuthRealm()      { return mAuthRealm; };   void setAuthUser(const resip::Data& authUser)       { mAuthUser = authUser; };   const resip::Data& getAuthUser()       { return mAuthUser; };   void setAuthPassword(const resip::Data& authPassword)      { mAuthPassword = authPassword; };   const resip::Data& getAuthPassword()      { return mAuthPassword; };   void setCallerUserAgentAddress(const resip::Uri& callerUserAgentAddress)      { mCallerUserAgentAddress = callerUserAgentAddress; };   const resip::Uri& getCallerUserAgentAddress()      { return mCallerUserAgentAddress; };   typedef enum   {      Generic,      LinksysSPA941,      PolycomIP501,      Cisco7940   } UserAgentVariety;   void setCallerUserAgentVariety(UserAgentVariety callerUserAgentVariety)      { mCallerUserAgentVariety = callerUserAgentVariety; };   const UserAgentVariety getCallerUserAgentVariety()      { return mCallerUserAgentVariety; };   void setTargetPrefix(const resip::Data& targetPrefix)      { mTargetPrefix = targetPrefix; };   const resip::Data& getTargetPrefix()       { return mTargetPrefix; };   void setTargetDomain(const resip::Data& targetDomain)      { mTargetDomain = targetDomain; };   const resip::Data& getTargetDomain()       { return mTargetDomain; };protected:   // Used for the `From' field of the INVITE   resip::NameAddr mDialerIdentity;   // Credentials we must send if challenged in the given realm   // Todo: allow a hashmap of credentials for multiple realms   resip::Data mAuthRealm;   resip::Data mAuthUser;   resip::Data mAuthPassword;   // The SIP URI of the device which is being forced to make a call   resip::Uri mCallerUserAgentAddress;   // the type of UA which we are sending a REFER to, depending on the   // type of device, we may need to force auto-answer with a specific   // value of the Alert-Info header, put specific SDP in the INVITE,   // and construct the REFER in a particular way   UserAgentVariety mCallerUserAgentVariety;   // The following parameters determine the way the REFER will be addressed   // If the target URI is a tel: URI and it begins with a +, which    // signifies a full international number in E.164 format,    // then the + will be replaced with the value of mTargetPrefix   resip::Data mTargetPrefix;   // For any tel: URI, the targetDomain will be appended to the number, to   // construct a SIP URI   resip::Data mTargetDomain;};#endif/* ==================================================================== * The Vovida Software License, Version 1.0 * * Copyright (c) 2000 Vovida Networks, Inc.  All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright *    notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright *    notice, this list of conditions and the following disclaimer in *    the documentation and/or other materials provided with the *    distribution. * * 3. The names "VOCAL", "Vovida Open Communication Application Library", *    and "Vovida Open Communication Application Library (VOCAL)" must *    not be used to endorse or promote products derived from this *    software without prior written permission. For written *    permission, please contact vocal@vovida.org. * * 4. Products derived from this software may not be called "VOCAL", nor *    may "VOCAL" appear in their name, without prior written *    permission of Vovida Networks, Inc. * * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND * NON-INFRINGEMENT ARE DISCLAIMED.  IN NO EVENT SHALL VOVIDA * NETWORKS, INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT DAMAGES * IN EXCESS OF $1,000, NOR FOR ANY INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH * DAMAGE. * * ==================================================================== * * This software consists of voluntary contributions made by Vovida * Networks, Inc. and many individuals on behalf of Vovida Networks, * Inc.  For more information on Vovida Networks, Inc., please see * <http://www.vovida.org/>. * */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -