修改应用对接服务

This commit is contained in:
lilong 2020-05-15 14:28:51 +08:00
parent 87d9ca4a0d
commit ffd2c21bf8
3 changed files with 23 additions and 6 deletions

View File

@ -25,13 +25,13 @@ return [
//生成静态文件地址
'swoole_http_url' => [
//生成网关
'gateway' => 'http://127.0.0.1:8001/gateway',
'gateway' => 'http://127.0.0.1:9501/gateway',
//生成分机
'directory' => 'http://127.0.0.1:8001/directory',
'directory' => 'http://127.0.0.1:9501/directory',
//生成拨号计划
'dialplan' => 'http://127.0.0.1:8001/dialplan',
'dialplan' => 'http://127.0.0.1:9501/dialplan',
//生成callcenter
'callcenter' => 'http://127.0.0.1:8001/callcenter',
'callcenter' => 'http://127.0.0.1:9501/callcenter',
],
'esl' => [

View File

@ -25,6 +25,24 @@ user=www
numprocs=4
redirect_stderr=true
[program:callcenter-listen]
process_name=%(program_name)s_%(process_num)02d
command=/www/server/php/73/bin/php /www/wwwroot/wh.com/artisan callcenter:listen
autostart=true
autorestart=true
user=www
numprocs=1
redirect_stderr=true
[program:callcenter-run]
process_name=%(program_name)s_%(process_num)02d
command=/www/server/php/73/bin/php /www/wwwroot/wh.com/artisan callcenter:run
autostart=true
autorestart=true
user=www
numprocs=1
redirect_stderr=true
[program:esl-listen-channel_answer]
process_name=%(program_name)s_%(process_num)02d
command=/www/server/php/73/bin/php /www/wwwroot/wh.com/artisan esl:listen CHANNEL_ANSWER

View File

@ -7,7 +7,6 @@ do
echo "$?"
echo "freeswitch process already started!"
else
supervisorctl stop callcenter-run:*
echo "$?"
/usr/local/freeswitch/bin/freeswitch -u www -g www -ncwait
echo "freeswitch process has been restarted!"
@ -15,7 +14,7 @@ do
echo "restart asr"
supervisorctl restart esl-listen:
supervisorctl restart callcenter-listen:*
supervisorctl start callcenter-run:*
supervisorctl restart callcenter-run:*
fi
sleep 5