From ffd2c21bf87f36ca8fe35674a1770e501e1311e6 Mon Sep 17 00:00:00 2001 From: lilong <712120393@qq.com> Date: Fri, 15 May 2020 14:28:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BA=94=E7=94=A8=E5=AF=B9?= =?UTF-8?q?=E6=8E=A5=E6=9C=8D=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/freeswitch.php | 8 ++++---- public/service/fs.ini | 18 ++++++++++++++++++ public/service/fs_auto_restart.sh | 3 +-- 3 files changed, 23 insertions(+), 6 deletions(-) diff --git a/config/freeswitch.php b/config/freeswitch.php index a44f774b..9e01c9a6 100644 --- a/config/freeswitch.php +++ b/config/freeswitch.php @@ -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' => [ diff --git a/public/service/fs.ini b/public/service/fs.ini index 52e4a986..d5ca02e9 100644 --- a/public/service/fs.ini +++ b/public/service/fs.ini @@ -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 diff --git a/public/service/fs_auto_restart.sh b/public/service/fs_auto_restart.sh index 6972e2f3..64256bde 100644 --- a/public/service/fs_auto_restart.sh +++ b/public/service/fs_auto_restart.sh @@ -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