|
@@ -516,11 +516,12 @@ class OutboundClient:
|
|
|
new_device_id = 'D' + str(Snowflake().next_id())
|
|
|
|
|
|
kwargs = json.loads(info.serialize('json'))
|
|
|
+ kwargs['variable_sip_h_P-LIBRA-CallId'] = call_id
|
|
|
destination = self.server.agent.register(**kwargs)
|
|
|
self.server.logger.info("device_id=%s, destination=%s", device_id, destination)
|
|
|
|
|
|
Cache.add_device_user_part(device_id, destination)
|
|
|
- con.execute("bridge", "{sip_h_P-LIBRA-CallId=%s,sip_h_P-LIBRA-DeviceId=%s}user/%s"%(call_id, new_device_id, destination), device_id)
|
|
|
+ con.execute("bridge", "{sip_h_P-LIBRA-CallId=%s,sip_h_P-LIBRA-DeviceId=%s,origination_uuid=%s}user/%s"%(call_id, new_device_id, new_device_id, destination), device_id)
|
|
|
|
|
|
|
|
|
|
|
@@ -544,6 +545,24 @@ class OutboundClient:
|
|
|
except:
|
|
|
traceback.print_exc()
|
|
|
|
|
|
+ def build_call_info(self, info):
|
|
|
+ pass
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
class CustomTCPServer(socketserver.TCPServer):
|