[Freeswitch-users] defunct processes created by bgsystem / system

Dave Horton daveh at beachdognet.com
Thu Aug 10 01:28:16 UTC 2017


Well, the script actually does execute, so I don’t think that is the issue.


On Aug 9, 2017, at 5:06 PM, Guillermo Ruiz Camauer <grcamauer at gmail.com> wrote:

I think you need to call "bgsystem" data = "php /opt/scripts/push_handler.php ${uuid} ${sip_contact_user} ${host}"/>
and pake sure tha PHP executable is in your path.

On Wed, Aug 9, 2017 at 2:45 PM, Dave Horton <daveh at beachdognet.com <mailto:daveh at beachdognet.com>> wrote:
I have the following action in my dialplan:

 <action application="bgsystem" data = "/opt/scripts/push_handler.php ${uuid} ${sip_contact_user} ${host}"/>

each time that command gets executed I see another defunct freeswitch process created:

root at cor03-san:/usr/local/freeswitch/log# ps -ef | grep freeswitch
root 23010 1 2 06:37 ? 00:00:25 /usr/local/freeswitch/bin/freeswitch -nc -nonat
root 23209 23010 0 06:44 ? 00:00:00 [freeswitch] <defunct>
root 23242 23010 0 06:45 ? 00:00:00 [freeswitch] <defunct>
root 23300 23010 0 06:48 ? 00:00:00 [freeswitch] <defunct>

I tried changing 'bgsystem' to 'system' and reloaded the dialplan, but it continued to drop defunct processes.

I’ve entered Jira FS-10572 as it seems like this is a bug, but I am wondering if there is a workaround of some kind?
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org <mailto:consulting at freeswitch.org>
http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>

Official FreeSWITCH Sites
http://www.freeswitch.org <http://www.freeswitch.org/>
http://confluence.freeswitch.org <http://confluence.freeswitch.org/>
http://www.cluecon.com <http://www.cluecon.com/>

FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org <mailto:FreeSWITCH-users at lists.freeswitch.org>
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users>
http://www.freeswitch.org <http://www.freeswitch.org/>


-- 
Guillermo Ruiz Camauer
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20170809/6372706b/attachment.html>


More information about the FreeSWITCH-users mailing list