Просмотр исходного кода

添加会议录视频的路径到通道变量

baiwenju лет назад: 4
Родитель
Сommit
4ec1c93da4

+ 1 - 1
MidWare_WinStandard1.0-zmd/ACD/VideoOffice.cpp

@@ -13,7 +13,7 @@ CVideoOffice::~CVideoOffice()
13 13
 bool CVideoOffice::initVideoExten()
14 14
 {
15 15
 	CString sql;
16
-	sql.Format("SELECT [exten] ,[pwd] FROM [ZMD12345].[dbo].[conf_video_account]");
16
+	sql.Format("SELECT [exten] ,[pwd] FROM [dbo].[conf_video_account]");
17 17
 	IOtlConnection* pConn = IOtlConnection::getInstance();
18 18
 	IOtlRecordset* record = pConn->QueryRecords(sql);
19 19
 	ILogger::getInstance().log(LOG_CLASS_BUSI, LOG_LEVEL_NORMAL, _T("{CVideoOffice}: ÊÓÆµÕ˺ſªÊ¼³õʼ»¯"));

+ 12 - 5
MidWare_WinStandard1.0-zmd/FsLink/CfgSipAccount.cpp

@@ -37,11 +37,18 @@ void CCfgSipAccount::__free( void )
37 37
 bool CCfgSipAccount::load( void )
38 38
 {
39 39
 	long Count = 0;
40
-#ifdef DSN_ORACLE
41
-	Count = COtlConnection::GetOtlInstence()->GetSingleDataInt(_T("SELECT COUNT(*)  FROM USER_TAB_COLUMNS WHERE TABLE_NAME = 'CONF_SIP_ACCOUNT' AND COLUMN_NAME ='ISDYNAMICGW'"));
42
-#else 
43
-	Count = COtlConnection::GetOtlInstence()->GetSingleDataInt(_T("select count(*) from information_schema.columns where table_name = 'conf_sip_account' and column_name = 'IsDynamicGw'"));
44
-#endif
40
+	if (DB_MySQL == COtlConnection::GetOtlInstence()->GetDatabaseType() || DB_Oracle == COtlConnection::GetOtlInstence()->GetDatabaseType())
41
+	{
42
+		Count = COtlConnection::GetOtlInstence()->GetSingleDataInt(_T("SELECT COUNT(*)  FROM USER_TAB_COLUMNS WHERE TABLE_NAME = 'CONF_SIP_ACCOUNT' AND COLUMN_NAME ='ISDYNAMICGW'"));
43
+	}
44
+	else if (DB_SQLServer == COtlConnection::GetOtlInstence()->GetDatabaseType())
45
+	{
46
+		Count = COtlConnection::GetOtlInstence()->GetSingleDataInt(_T("select count(*) from information_schema.columns where table_name = 'conf_sip_account' and column_name = 'IsDynamicGw'"));
47
+	}
48
+	else
49
+	{
50
+		return false;
51
+	}
45 52
 
46 53
 	COtlRecordset* pAccountRcd = NULL;
47 54
 	BOOL bAddOk = FALSE;

+ 7 - 0
MidWare_WinStandard1.0-zmd/FsLink/FsProxy.cpp

@@ -920,6 +920,13 @@ bool CFsProxy::takeBack(LONG JobId, CVirtualChan* pChan)
920 920
 ****************************************************************/
921 921
 bool CFsProxy::record(LONG JobId, CVirtualChan* pChan, LPCTSTR RcdFile)
922 922
 {
923
+	CString filePath = RcdFile;
924
+	int index = filePath.ReverseFind('.');
925
+	filePath = filePath.Left(index) + "-confe.mp4";
926
+	CString Param;
927
+	Param.Format(_T("filePath=%s"), filePath);
928
+	m_Gateway.Execte2("export", Param, pChan->chanId());
929
+
923 930
 	CString EslCmd;
924 931
 	EslCmd.Format(_T("bgapi uuid_record %s start %s\r\n%s: %ld"), pChan->chanId(), RcdFile, ESL_HEADER_JOB_UUID, JobId);
925 932