sales fix
This commit is contained in:
@@ -95,6 +95,7 @@ def build_service_specs(env: dict[str, str] | None = None) -> list[dict[str, Any
|
||||
{"name": "kb", "port": 8008, "module": "services.kb_service.app:app"},
|
||||
{"name": "reporting", "port": 8009, "module": "services.reporting_service.app:app"},
|
||||
{"name": "supervisor", "port": 8010, "module": "services.supervisor_service.app:app"},
|
||||
{"name": "sales", "port": 8020, "module": "services.sales_service.app:app"},
|
||||
{"name": "gateway", "port": gateway_port, "module": "gateway.app:app"},
|
||||
]
|
||||
|
||||
@@ -121,6 +122,7 @@ def build_gateway_env(env: dict[str, str] | None = None) -> dict[str, str]:
|
||||
"KB_SERVICE_URL": f"{base}:{ports['kb']}",
|
||||
"REPORTING_SERVICE_URL": f"{base}:{ports['reporting']}",
|
||||
"SUPERVISOR_SERVICE_URL": f"{base}:{ports['supervisor']}",
|
||||
"SALES_SERVICE_URL": f"{base}:{ports['sales']}",
|
||||
}
|
||||
|
||||
|
||||
@@ -338,6 +340,7 @@ def spawn_service(spec: dict[str, Any], runtime_dir: Path, data_dir: Path, base_
|
||||
"AI_VOICE_RUNTIME_TRUSTED_SERVICE_SUBJECTS",
|
||||
"svc:ai-voice-runtime",
|
||||
)
|
||||
env.update(build_gateway_env(env))
|
||||
env["ASTERISK_CALLCONTROL_CLAIM_CONTEXT"] = env.get("ASTERISK_CALLCONTROL_CLAIM_CONTEXT", "mvpcc-claim")
|
||||
env["ASTERISK_CALLCONTROL_TRANSFER_CONTEXT"] = env.get(
|
||||
"ASTERISK_CALLCONTROL_TRANSFER_CONTEXT",
|
||||
@@ -348,8 +351,6 @@ def spawn_service(spec: dict[str, Any], runtime_dir: Path, data_dir: Path, base_
|
||||
env["RECORDING_MAX_BYTES"] = env.get("RECORDING_MAX_BYTES", "26214400")
|
||||
if spec["name"] == "streaming-asr-sidecar":
|
||||
Path(env["AI_VOICE_V2_STREAMING_ASR_CACHE_DIR"]).mkdir(parents=True, exist_ok=True)
|
||||
if spec["name"] == "gateway":
|
||||
env.update(build_gateway_env(env))
|
||||
|
||||
stdout_path, stderr_path = create_log_paths(runtime_dir, str(spec["name"]))
|
||||
creationflags = 0
|
||||
|
||||
Reference in New Issue
Block a user