Skip to content

Commit

Permalink
refactor(sip-jibri): params for no-tcp and no-udp
Browse files Browse the repository at this point in the history
  • Loading branch information
emrahcom committed Jul 23, 2024
1 parent 3eda445 commit d9952e8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion sip-jibri/rootfs/defaults/pjsua.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{{ $DISABLE_SIP_UDP := .Env.DISABLE_SIP_UDP | default "false" | toBool -}}
{{ $DISABLE_SIP_TCP := .Env.DISABLE_SIP_TCP | default "false" | toBool -}}
--capture-dev=7
--playback-dev=8
--video
Expand All @@ -20,14 +22,19 @@
--add-codec speex
--add-codec G722
--add-codec opus
--no-tcp
--no-vad
--ec-tail 0
--quality 10
--max-calls=1
--auto-keyframe=30
--no-stderr
--log-file=/config/logs/pjsua.log
{{ if $DISABLE_SIP_UDP -}}
--no-udp
{{ end -}}
{{ if $DISABLE_SIP_TCP -}}
--no-tcp
{{ end -}}
{{ if .Env.SIP_ID -}}
--id "{{ .Env.SIP_ID }}"
{{ end -}}
Expand Down

0 comments on commit d9952e8

Please sign in to comment.