|
@@ -231,7 +231,7 @@ class InboundClient:
|
|
|
"""桥接电话"""
|
|
|
self.multi_set_var(device_id1, BRIDGE_VARIABLES)
|
|
|
self.multi_set_var(device_id2, BRIDGE_VARIABLES)
|
|
|
- self.con.bgapi(BRIDGE, device_id1 + SPACE + device_id2)
|
|
|
+ self.bgapi(BRIDGE, arg=device_id1 + SPACE + device_id2, desc="bridge_call")
|
|
|
|
|
|
def transfer_call(self, _from, _to):
|
|
|
"""转接"""
|
|
@@ -324,7 +324,7 @@ class InboundClient:
|
|
|
val
|
|
|
]
|
|
|
command = ' '.join(builder)
|
|
|
- self.bgapi(command, desc ="bridge_break")
|
|
|
+ self.bgapi(command, desc ="set_var")
|
|
|
|
|
|
def multi_set_var(self, uuid, params):
|
|
|
builder = [
|
|
@@ -335,7 +335,7 @@ class InboundClient:
|
|
|
builder1.append(k + "="+v)
|
|
|
builder.append(';'.join(builder1))
|
|
|
command = ''.join(builder)
|
|
|
- self.con.bgapi(command, EMPTY)
|
|
|
+ self.bgapi(command, desc="multi_set_var")
|
|
|
|
|
|
def record(self, uuid, action, path, limit):
|
|
|
builder = [
|