Any other return status would be considered as failed i.e “SWITCH_STATUS_FALSE” but you should print a reasonable debug message to allow the user of your module the exact failure reason.


From: Chris Mandra <mandra@gmail.com>
Subject: Re: [Freeswitch-users] Module initialization failure status
Date: April 4, 2016 at 1:16:48 AM GMT+3
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org>
Reply-To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org>


Anything?

On Saturday, April 2, 2016, Chris Mandra <mandra@gmail.com> wrote:
Hi Guys - Happy Saturday. 
Quick question: what is  the proper status to return if a module fails on initialization?
That is: should it always return SWITCH_STATUS_SUCCESS ?
What if something goes wrong?  What status should it return?
Thanks!chris




--
mandra
c:410.258.5281


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