[Freeswitch-users] Module initialization failure status

Ahmed habiba ahabiba at gmail.com
Mon Apr 4 09:18:55 MSD 2016


Any other return status would be considered as failed i.e “SWITCH_STATUS_FALSE <http://docs.freeswitch.org/switch__types_8h.html#fedb3923fc3ae51937cef145c5499dc11e51a33abaa215d06337d2b38f1f4c53>” but you should print a reasonable debug message to allow the user of your module the exact failure reason.

> 
> From: Chris Mandra <mandra at 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 at lists.freeswitch.org>
> Reply-To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
> 
> 
> Anything?
> 
> On Saturday, April 2, 2016, Chris Mandra <mandra at gmail.com <mailto:mandra at 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 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/20160404/37586cd9/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list