修改三方通话功能,在发起三方通话时,先保持住主叫,然后再拉回主叫到会议

Config.h 2.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /*************************************************************************
  2. 【文件名】 Config.h
  3. 【功能模块和目的】 配置信息类头文件
  4. 【开发者及日期】 郑石诺 2015/03/19
  5. 【版本】 V1.0.0
  6. 【版权信息】 Copyright (C)2015 河南华谊网络科技有限公司
  7. 【更改记录】
  8. *************************************************************************/
  9. #pragma once
  10. #include "CfgSipAccount.h"
  11. #include "CfgTrunkItem.h"
  12. #include "CfgTrunkMatch.h"
  13. /*************************************************************************
  14. 【类名】 CConfig
  15. 【功能】
  16. 【接口说明】 配置信息类
  17. 【开发者及日期】 郑石诺 2015/03/19
  18. 【版本】 V1.0.0
  19. 【版权信息】 Copyright (C)2015 河南华谊网络科技有限公司
  20. 【更改记录】
  21. *************************************************************************/
  22. class CConfig
  23. {
  24. public:
  25. typedef CMap<UINT, UINT, CString, LPCTSTR> ExtenMap;
  26. public:
  27. CConfig(void);
  28. virtual ~CConfig(void) = 0 {}
  29. static bool load(void);
  30. static int listenPort(void) { return m_ListenPort; }
  31. static TTS_TYPE ttsType(void) { return m_TtsType; }
  32. static LPTSTR mcAddr(void) { return m_McAddr; }
  33. static int mcPort(void) { return m_McPort; }
  34. static int digitalTrunkCount(void) { return m_DigitalTrunkCount; }
  35. static int voipTrunkCount(void) { return m_VoipTrunkCount; }
  36. static LPCTSTR voipSignallingAddr(void) { return m_VoipSignallingAddr; }
  37. static LPCTSTR voipMediaAddr(void) { return m_VoipMediaAddr; }
  38. static LPTSTR faxServerAddr(void) { return m_FaxServerAddr; }
  39. static int faxServerPort(void) { return m_FaxServerPort; }
  40. static LPCTSTR logFilePath(void) { return m_LogFilePath; }
  41. static LPCTSTR ttsPath(void) { return m_TtsPath; }
  42. static ExtenMap& extenMap(void) { return m_MapExten; }
  43. static CCfgSipAccount& sipAccount(void) { return m_SipAccount; }
  44. static CCfgTrunkItem& trunkItem(void) { return m_TrunkItem; }
  45. static CCfgTrunkMatch& trunkMatch(void) { return m_TrunkMatch; }
  46. private:
  47. static int m_ListenPort;
  48. static TTS_TYPE m_TtsType;
  49. static TCHAR m_McAddr[IP_PORT_LEN];
  50. static int m_McPort;
  51. static int m_DigitalTrunkCount;
  52. static int m_VoipTrunkCount;
  53. static TCHAR m_VoipSignallingAddr[IP_PORT_LEN];
  54. static TCHAR m_VoipMediaAddr[IP_PORT_LEN];
  55. static TCHAR m_FaxServerAddr[IP_PORT_LEN];
  56. static int m_FaxServerPort;
  57. static CString m_LogFilePath;
  58. static CString m_TtsPath;
  59. // 分机配置信息
  60. static ExtenMap m_MapExten;
  61. // 中继匹配、SIP账号配置信息
  62. static CCfgSipAccount m_SipAccount;
  63. static CCfgTrunkItem m_TrunkItem;
  64. static CCfgTrunkMatch m_TrunkMatch;
  65. public:
  66. static bool isContainsExten(char* p_tel);
  67. static void getCallNumFromSipAddr(char* p_sip_uri, char* p_tel_buf);
  68. };