|
@@ -23,7 +23,7 @@ from src.core.callcenter.esl.constant.esl_constant import BRIDGE_VARIABLES, BRID
|
|
|
UUID_RECORD, UUID_SETVAR, UUID_GETVAR
|
|
|
import src.core.callcenter.esl.utils.esl_event_util as EslEventUtil
|
|
|
import src.core.callcenter.esl.handler as event_handler
|
|
|
-from src.core.callcenter.esl.constant.sip_header_constant import sipHeaderHoldMusic, profile1, profile2
|
|
|
+from src.core.callcenter.esl.constant.sip_header_constant import sipHeaderHoldMusic, profile1, profile2, sipHeaderCallId
|
|
|
from src.core.callcenter.enumeration import CallCause, DeviceType, DelayActionEnum, HangupDir, CallType, NextType, \
|
|
|
Direction, CdrType
|
|
|
from src.core.callcenter.esl.handler.default_esl_event_handler import DefaultEslEventHandler
|
|
@@ -413,11 +413,11 @@ class InboundClient:
|
|
|
arg = ''.join(builder)
|
|
|
self.con.api(TRANSFER, arg)
|
|
|
|
|
|
- def bridge_break(self, device_id):
|
|
|
+ def bridge_break(self, call_id, device_id):
|
|
|
"""拆线"""
|
|
|
builder = [
|
|
|
device_id,
|
|
|
- " -both 'set:hangup_after_bridge=false,set:park_after_bridge=true,set:" + SIP_HEADER + sipHeaderHoldMusic + "=true,park:' inline "
|
|
|
+ " -both 'set:hangup_after_bridge=false,set:park_after_bridge=true,set:" + SIP_HEADER + sipHeaderHoldMusic + "=true,set:"+SIP_HEADER+sipHeaderCallId+"="+call_id+",park:' inline "
|
|
|
]
|
|
|
_con = None
|
|
|
try:
|