Skip to content

Commit

Permalink
Passes auto-answer parameters from code.
Browse files Browse the repository at this point in the history
  • Loading branch information
damencho committed Nov 28, 2019
1 parent 203ce85 commit 17eeb95
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 1 addition & 3 deletions resources/debian-package/etc/jitsi/jibri/pjsua.config
Expand Up @@ -24,8 +24,6 @@
--no-vad
--ec-tail 0
--quality 10
#--auto-answer-timer=30
#--auto-answer=200
#--max-calls=1
--max-calls=1
--no-stderr
--log-file=/var/log/jitsi/jibri/pjsua.log
Expand Up @@ -72,7 +72,10 @@ class PjsuaClient(private val pjsuaClientParams: PjsuaClientParams) : SipClient(
command.add("--id=${pjsuaClientParams.sipClientParams.displayName} <sip:jibri@127.0.0.1>")
}

if (!pjsuaClientParams.sipClientParams.autoAnswer) {
if (pjsuaClientParams.sipClientParams.autoAnswer) {
command.add("--auto-answer-timer=30")
command.add("--auto-answer=200")
} else {
command.add("sip:${pjsuaClientParams.sipClientParams.sipAddress}")
}

Expand Down

0 comments on commit 17eeb95

Please sign in to comment.