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