diff --git a/templates/410_process-ngcp.yaml.tt2 b/templates/410_process-ngcp.yaml.tt2 index c5bead2..f528032 100644 --- a/templates/410_process-ngcp.yaml.tt2 +++ b/templates/410_process-ngcp.yaml.tt2 @@ -69,7 +69,10 @@ process: running: {{if and [% is_proxy ? 1 : 0 %] .Vars.NODE_ACTIVE}} true {{else}} false {{end}} sems-b2b: - running: {{if and [% is_proxy ? 1 : 0 %] .Vars.NODE_ACTIVE}} true {{else}} false {{end}} + running: {{if and [% is_proxy && b2b.enable == "yes"? 1 : 0 %] .Vars.NODE_ACTIVE}} true {{else}} false {{end}} + + ngcp-sems: + running: {{if and [% is_proxy && sems.enable == "yes"? 1 : 0 %] .Vars.NODE_ACTIVE}} true {{else}} false {{end}} ngcp-witnessd: running: true diff --git a/templates/821_network-ports-ngcp.yaml.tt2 b/templates/821_network-ports-ngcp.yaml.tt2 index 2f5a236..ba45ae4 100644 --- a/templates/821_network-ports-ngcp.yaml.tt2 +++ b/templates/821_network-ports-ngcp.yaml.tt2 @@ -159,7 +159,24 @@ port: tcp:5582: listening: {{.Vars.NODE_ACTIVE}} ip: ["[% sip_int_ips.0 %]"] +[% IF sems.enable == "yes" -%] + # SEMS + tcp:8090: + listening: {{.Vars.NODE_ACTIVE}} + ip: ["[% sip_int_ips.0 %]"] + + # SEMS + udp:5040: + listening: {{.Vars.NODE_ACTIVE}} + ip: ["[% sip_int_ips.0 %]"] + + # SEMS + udp:5080: + listening: {{.Vars.NODE_ACTIVE}} + ip: ["[% sip_int_ips.0 %]"] +[% END -%] +[% IF b2b.enable == "yes" -%] # sems-pbx tcp:5088: listening: {{.Vars.NODE_ACTIVE}} @@ -180,6 +197,7 @@ port: listening: {{.Vars.NODE_ACTIVE}} ip: ["[% sip_int_ips.0 %]"] +[% END -%] # Asterisk tcp:5038: listening: {{.Vars.NODE_ACTIVE}}