[sr-dev] [kamailio] Is cross module function call a good practice? (#50)

Klaus Darilion klaus.mailinglists at pernau.at
Thu Jan 22 19:25:01 CET 2015


copying code is always bad. Many modules are just built to offer
functions for other modules.
regards
klaus

On 22.01.2015 17:11, mading087 wrote:
> Started creating a new module auth_jwt, which supports JSON Web Token
> for auth. Need to access the database to validate some claims in the
> token. Wonder if I should just make a function call to auth_db or copy
> the code from auth_db? Which approach is a better approach? Thanks.
> 
>> Reply to this email directly or view it on GitHub
> <https://github.com/kamailio/kamailio/issues/50>.
> 
> 
> 
> _______________________________________________
> sr-dev mailing list
> sr-dev at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
> 



More information about the sr-dev mailing list