node_bridgeex.h
2.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
/*
* Copyright 2002-2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* CC/LICENSE
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef __NODE_BRIDGEEX_H_
#define __NODE_BRIDGEEX_H_
#include "node_resource.h"
/**
* @brief 不使用两个callid进行桥接,桥接包括了外呼
* detail description
*
*/
class node_bridgeex_t: public NodeResource {
public:
/**
* @brief
*
* @param [in/out] id : const uint32_t
* @param [in/out] name : const string&
* @param [in/out] type : const string&
* @param [in/out] desc : const string&
* @param [in/out] keymap : const key_map_t&
* @see
* @note
* @author chenyuzhen
* @date 2011/10/12 11:46:33
**/
node_bridgeex_t(const uint32_t id, const string& name,
const string& type, const string& desc, const key_map_t& keymap);
/**
* @brief
*
* @param [in/out] param : base_script_t*
* @return NodeBase*
* @retval
* @see
* @note
* @author chenyuzhen
* @date 2011/10/12 11:46:40
**/
virtual NodeBase* run(base_script_t* param);
/**
* @brief
*
* @return bool
* @retval
* @see
* @note
* @author chenyuzhen
* @date 2011/10/12 11:46:43
**/
virtual bool load_other();
private:
const static char* PARAM_CALLER; ///<主叫
const static char* PARAM_CALLED; ///<被叫
const static char* PARAM_CALLTYPE; ///<被叫类型
const static char* PARAM_BGTYPE; ///<呼叫背景类型:bgm-背景音;ring-透传回铃音
const static char* PARAM_BGMFILE; ///<背景音文件
std::string _caller, _called, _calltype; ///<主被叫
std::string _bgtype, _bgmfile;
std::string _bghungup;
const static char* PARAMITEM_BGM;
const static char* PARAMITEM_RING;
const static char* _s_param_bghungup;
/**
* @brief
*
* @param [in/out] map<string : const
* @param [in/out] vars : variable_t>&
* @return std::string
* @retval
* @see
* @note
* @author chenyuzhen
* @date 2011/10/12 11:46:54
**/
virtual std::string enter(const map<string, variable_t>& vars)const;
};
#endif //__NODE_BRIDGEEX_H_
/* vim: set expandtab ts=4 sw=4 sts=4 tw=100: */