Skip to content

Commit

Permalink
feat(events): update ICE enforcement IP address
Browse files Browse the repository at this point in the history
On the event `nethvoice-proxy-settings-changed`, update the ICEENFORCE
environment variable and also restart the janus service.
  • Loading branch information
Amygos committed Dec 5, 2024
1 parent 099b2c0 commit 4a09116
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ ksrv = agent.list_service_providers(agent.redis_connect(use_replica=True), "sip"
agent.set_env('NETHVOICE_PROXY_FQDN', ksrv[0]["fqdn"])
agent.set_env('PROXY_IP', ksrv[0]["host"])
agent.set_env('PROXY_PORT', ksrv[0]["port"])
agent.set_env("ICEENFORCE", ksrv[0]["address"])

# Configure nethvoice-proxy to route SIP traffic for Nethvoice
response = agent.tasks.run(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ exec 1>&2 # ensure any output is sent to stderr

#restart services if they are already running

systemctl --user try-restart freepbx tancredi
systemctl --user try-restart freepbx tancredi janus

0 comments on commit 4a09116

Please sign in to comment.