[Freeswitch-users] MD5 hash calculation on gateway

Michael Jerris mike at jerris.com
Thu Apr 6 00:54:34 MSD 2017


We don’t have a way to do this. It doesn’t look like there is a strait forward way to do so, but you can dig into the nua_authenticate function in the sofia-sip library to see if there is.  Let me know if you find a way in there that allows it.

> On Apr 5, 2017, at 3:36 PM, Gregor Nanger <gregor at infomedia.si> wrote:
> 
> thx Michael! But can I use a1-hash parameter on gateways?
> 
> 2017-04-05 22:31 GMT+02:00 Michael Jerris <mike at jerris.com <mailto:mike at jerris.com>>:
> src/mod/endpoints/mod_sofia/sofia_reg.c:2947:                   if (!strcasecmp(var, "a1-hash")) {
> 
> We support storing the a1-hash in the directory instead of the naked password.
> 
> Mike
> 
> 
>> On Apr 5, 2017, at 3:18 PM, Gregor Nanger <gregor at infomedia.si <mailto:gregor at infomedia.si>> wrote:
>> 
>> Can someone point me where in source code is MD5 has calculation for gateways.
>> 
>> I want to store provider password as a1-hash string and respond with this string instead of calculating hash wiht user:domain:password, because do not want to store password in plain string in xml file.
>> 
>> Best regards, Gregor
> 
> 
> _________________________________________________________________________
> 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/>
> 
> 
> 
> -- 
> Gregor Nanger
>  
> CTO
> t./f.: 00386 (0) 7 6000 308/309 • m:. 00386 (0)41 756485 
> • Infomedia d.o.o. • Jerebova 3, Novo mesto, Slovenia 
> • www.infomedia.si <http://www.infomedia.si/>_________________________________________________________________________
> 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/20170405/02a19c2d/attachment.html 


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