mirror of https://github.com/sipwise/sems.git
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com> git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1524 8eb893ce-cfd4-0310-b710-fb5ebe64c474sayer/1.4-spce2.6
parent
786406594f
commit
3f038c4145
@ -0,0 +1,4 @@
|
||||
SET(sems_module_name conf_auth)
|
||||
SET(ivr_files conf_auth)
|
||||
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/config.rules.txt)
|
||||
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/ivr.rules.txt)
|
||||
@ -0,0 +1,10 @@
|
||||
set (audio_files
|
||||
enter_pin.wav
|
||||
welcome.wav
|
||||
)
|
||||
|
||||
SET(sems_module_name pin_collect)
|
||||
SET(ivr_files pin_collect)
|
||||
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/config.rules.txt)
|
||||
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/audio.rules.txt)
|
||||
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/ivr.rules.txt)
|
||||
@ -0,0 +1,15 @@
|
||||
|
||||
# authentication mode:
|
||||
# XMLRPC : authenticate against XMLRPC server
|
||||
# REFER : add pin to REFER sent out to be checked at proxy
|
||||
auth_mode=XMLRPC
|
||||
|
||||
# XMLRPC url to authenticate against if auth_mode==XMLRPC
|
||||
auth_xmlrpc_url = http://127.0.0.1:9090/
|
||||
|
||||
# messages to play to caller
|
||||
welcome_msg=${SEMS_AUDIO_PREFIX}/sems/audio/pin_collect/welcome.wav
|
||||
pin_msg=${SEMS_AUDIO_PREFIX}/sems/audio/pin_collect/enter_pin.wav
|
||||
fail_msg=${SEMS_AUDIO_PREFIX}/sems/audio/pin_collect/fail.wav
|
||||
auth_fail_msg=${SEMS_AUDIO_PREFIX}/sems/audio/pin_collect/notcorrect.wav
|
||||
|
||||
@ -0,0 +1,6 @@
|
||||
FOREACH (ivr_file ${ivr_files})
|
||||
EXECUTE_PROCESS(COMMAND python -c "import py_compile; py_compile.compile('${CMAKE_CURRENT_SOURCE_DIR}/${ivr_file}.py')")
|
||||
EXECUTE_PROCESS(COMMAND python -O -c "import py_compile; py_compile.compile('${CMAKE_CURRENT_SOURCE_DIR}/${ivr_file}.py')")
|
||||
INSTALL (FILES ${ivr_file}.py ${ivr_file}.pyc ${ivr_file}.pyo DESTINATION ${SEMS_EXEC_PREFIX}/${SEMS_LIBDIR}/sems/ivr)
|
||||
ENDFOREACH()
|
||||
|
||||
Loading…
Reference in new issue