[Freeswitch-users] Voicemail DB Authentication
Vallimamod Abdullah
vma at vallimamod.org
Sun Oct 6 11:53:51 UTC 2019
Hi,
When you use xml-curl, the vm password is retrieved from the xml user directory that you provide through your app. So, you shouldn't need to update any FS instance's internal DB.
Best Regards,
--
Vallimamod Abdullah
SIP Solutions
vma at sip.solutions
linkedin.com/in/vallimamod
.
> On 5 Oct 2019, at 16:43, H Yavari <hyavari at rocketmail.com> wrote:
>
> Hi to all,
>
> About this solution, when you have multi FS instances, how we can manage share info on DB? currently I handle the vm event, and update my DB, but how update other FS instances' internal DB?
>
> Regards,
> HY
>
>
> On Monday, September 30, 2019, 06:15:22 PM GMT+3:30, H Yavari via FreeSWITCH-users <freeswitch-users at lists.freeswitch.org> wrote:
>
>
> Thank you.
> I will check this solution.
>
> Regards,
> HY
>
> On Monday, September 30, 2019, 06:14:16 AM PDT, Vallimamod Abdullah <vma at vallimamod.org> wrote:
>
>
> Hi,
>
> Yes, you have the following params[1]:
>
> VM-Action: change-password
> VM-User-Password: <new password>
> VM-User: <user>
> VM-Domain: <domain>
>
> To my knowledge, freeswitch doesn't save the new password to the xml file but to its core db in voicemail_prefs table[2].
>
> [1] https://github.com/signalwire/freeswitch/blob/master/src/mod/applications/mod_voicemail/mod_voicemail.c#L2316 <https://github.com/signalwire/freeswitch/blob/master/src/mod/applications/mod_voicemail/mod_voicemail.c#L2316>
> [2] https://github.com/signalwire/freeswitch/blob/master/src/mod/applications/mod_voicemail/mod_voicemail.c#L2344 <https://github.com/signalwire/freeswitch/blob/master/src/mod/applications/mod_voicemail/mod_voicemail.c#L2344>
>
>
> Best Regards,
> --
> Vallimamod Abdullah
> SIP Solutions
> vma at sip.solutions <mailto:vma at sip.solutions>
> linkedin.com/in/vallimamod
> .
>
>
> > On 30 Sep 2019, at 12:05, H Yavari <hyavari at rocketmail.com <mailto:hyavari at rocketmail.com>> wrote:
> >
> > Hi Vallimamod,
> >
> > Thanks for reply.
> >
> > This event includes password?Is it secure in this way? I couldn't fine to see this event's params.
> > Also when we use xml_curl, if user changes password, Freeswitch saves it in local xml?
> >
> >
> > Regards,
> > H.Yavarfi
> >
> > On Monday, September 30, 2019, 01:33:38 AM PDT, Vallimamod Abdullah <vma at vallimamod.org <mailto:vma at vallimamod.org>> wrote:
> >
> >
> > Hi,
> >
> > When the user changes his password through the voicemail app, a custom ESL event is fired: vm::maintenance
> > You can listen for it through an esl client to get and save the new password to DB.
> >
> >
> > Best Regards,
> > --
> > Vallimamod Abdullah
> > SIP Solutions
> > vma at sip.solutions <mailto:vma at sip.solutions>
> > linkedin.com/in/vallimamod
> > .
> >
> >
> > > On 30 Sep 2019, at 07:26, H Yavari via FreeSWITCH-users <freeswitch-users at lists.freeswitch.org <mailto:freeswitch-users at lists.freeswitch.org>> wrote:
> > >
> > >
> > > From: H Yavari <hyavari at rocketmail.com <mailto:hyavari at rocketmail.com>>
> > > Subject: Re: [Freeswitch-users] Voicemail DB Authentication
> > > Date: 30 September 2019 at 07:25:29 CEST
> > > To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org <mailto:freeswitch-users at lists.freeswitch.org>>, David Villasmil <david.villasmil.work at gmail.com <mailto:david.villasmil.work at gmail.com>>
> > >
> > >
> > > Thank David.
> > >
> > > But how we should save the pass in DB? user comes through phone and changes his/her password, so we have to use ODBC for voicemails? although it would be different db with xml_curl for user configs and we should manage both db sync ourselves.
> > >
> > > What do you think?
> > > I thought FreeSwitch should be more flexible than this.
> > >
> > > Regards,
> > > HY
> > >
> > > On Saturday, September 28, 2019, 08:35:15 AM PDT, David Villasmil <david.villasmil.work at gmail.com <mailto:david.villasmil.work at gmail.com>> wrote:
> > >
> > >
> > > It’s been a while, but I’m pretty sure if you change a password in the dB, and you’re serving the config via XML_CURL it’ll take effect immediately. Every time a request comes into fs, the config is requested from the xml_curl server, which means it’ll server the current config.
> > >
> > > On Sat, 28 Sep 2019 at 15:18, H Yavari via FreeSWITCH-users <freeswitch-users at lists.freeswitch.org <mailto:freeswitch-users at lists.freeswitch.org>> wrote:
> > >
> > >
> > >
> > > ---------- Forwarded message ----------
> > > From: H Yavari <hyavari at rocketmail.com <mailto:hyavari at rocketmail.com>>
> > > To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org <mailto:freeswitch-users at lists.freeswitch.org>>
> > > Cc:
> > > Bcc:
> > > Date: Sat, 28 Sep 2019 13:47:04 +0000 (UTC)
> > > Subject: Voicemail DB Authentication
> > > Hi to all,
> > >
> > > I've searched a little in wiki to find a solution for VM user authentication through remote DB, but couldn't find enough hints. Anyone can give some idea about it?
> > >
> > > Currently, I noticed that we can't store just user / pass for extensions in external DB and query when we need it, we should use mod_xml_curl and load the directory xml in this way. So, it would be included vm pass also, but problem comes when user changes his/her vm's pass. I couldn't find any method to handle it.
> > >
> > > Thanks for help.
> > >
> > > Regards,
> > > HY
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > ---------- Forwarded message ----------
> > > From: H Yavari via FreeSWITCH-users <freeswitch-users at lists.freeswitch.org <mailto:freeswitch-users at lists.freeswitch.org>>
> > > To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org <mailto:freeswitch-users at lists.freeswitch.org>>
> > > Cc:
> > > Bcc:
> > > Date: Sat, 28 Sep 2019 07:18:38 -0700 (PDT)
> > > Subject: [Freeswitch-users] Voicemail DB Authentication
> > > _________________________________________________________________________
> > >
> > > The FreeSWITCH project is sponsored by SignalWire https://signalwire.com <https://signalwire.com/>
> > > Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
> > > Build your next product on our scalable cloud platform.
> > >
> > > Join our online community to chat in real time https://signalwire.community <https://signalwire.community/>
> > >
> > > Professional FreeSWITCH Services
> > > sales at freeswitch.com <mailto:sales at freeswitch.com>
> > > https://freeswitch.com <https://freeswitch.com/>
> > >
> > > Official FreeSWITCH Sites
> > > https://freeswitch.com/oss <https://freeswitch.com/oss>
> > > https://freeswitch.org/confluence <https://freeswitch.org/confluence>
> > > https://cluecon.com <https://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>
> > > https://freeswitch.com <https://freeswitch.com/>
> > > --
> > > Regards,
> > >
> > > David Villasmil
> > > email: david.villasmil.work at gmail.com <mailto:david.villasmil.work at gmail.com>
> > > phone: +34669448337
>
> > >
> > >
> > > _________________________________________________________________________
> > >
> > > The FreeSWITCH project is sponsored by SignalWire https://signalwire.com <https://signalwire.com/>
> > > Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
> > > Build your next product on our scalable cloud platform.
> > >
> > > Join our online community to chat in real time https://signalwire.community <https://signalwire.community/>
> > >
> > > Professional FreeSWITCH Services
> > > sales at freeswitch.com <mailto:sales at freeswitch.com>
> > > https://freeswitch.com <https://freeswitch.com/>
> > >
> > > Official FreeSWITCH Sites
> > > https://freeswitch.com/oss <https://freeswitch.com/oss>
> > > https://freeswitch.org/confluence <https://freeswitch.org/confluence>
> > > https://cluecon.com <https://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>
> > > https://freeswitch.com <https://freeswitch.com/>
>
>
> _________________________________________________________________________
>
> The FreeSWITCH project is sponsored by SignalWire https://signalwire.com <https://signalwire.com/>
> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
> Build your next product on our scalable cloud platform.
>
> Join our online community to chat in real time https://signalwire.community <https://signalwire.community/>
>
> Professional FreeSWITCH Services
> sales at freeswitch.com <mailto:sales at freeswitch.com>
> https://freeswitch.com <https://freeswitch.com/>
>
> Official FreeSWITCH Sites
> https://freeswitch.com/oss <https://freeswitch.com/oss>
> https://freeswitch.org/confluence <https://freeswitch.org/confluence>
> https://cluecon.com <https://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>
> https://freeswitch.com <https://freeswitch.com/>
> _________________________________________________________________________
>
> The FreeSWITCH project is sponsored by SignalWire https://signalwire.com <https://signalwire.com/>
> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
> Build your next product on our scalable cloud platform.
>
> Join our online community to chat in real time https://signalwire.community <https://signalwire.community/>
>
> Professional FreeSWITCH Services
> sales at freeswitch.com <mailto:sales at freeswitch.com>
> https://freeswitch.com <https://freeswitch.com/>
>
> Official FreeSWITCH Sites
> https://freeswitch.com/oss <https://freeswitch.com/oss>
> https://freeswitch.org/confluence <https://freeswitch.org/confluence>
> https://cluecon.com <https://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>
> https://freeswitch.com <https://freeswitch.com/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20191006/2acb8a0b/attachment-0001.html>
More information about the FreeSWITCH-users
mailing list