install lp-autoanswer service

This commit is contained in:
Danmei Chen 2018-04-20 16:45:40 +02:00
parent a891e599b6
commit 7ffd7a93c8
3 changed files with 17 additions and 0 deletions

View file

@ -51,3 +51,7 @@ bc_generate_rpm_specfile("rpm/liblinphone.spec.cmake" "${PROJECT_SOURCE_DIR}/lib
include(CPack)
install(FILES rpm/lp-autoanswer.service DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/systemd/system)
install(FILES rpm/lp-autoanswer.conf DESTINATION ${CMAKE_INSTALL_PREFIX}/etc/sysconfig
RENAME lp-autoanswer)

View file

@ -0,0 +1,2 @@
OPTIONS=--verbose --listening-uri "sip:toto@localhost:5090"

View file

@ -0,0 +1,11 @@
[Unit]
Description=Linphone autoanswer service
After=network.target
[Service]
Type=simple
EnvironmentFile=/etc/sysconfig/lp-autoanswer
ExecStart=/usr/bin/lp-auto-answer $OPTIONS
[Install]
WantedBy=multi-user.target