[Freeswitch-users] Passing stuff from javascript to mod_xml_curl and then to a authentication web service

Gregor Nanger gregor at infomedia.si
Fri May 6 22:49:02 MSD 2016


And also domain if you're using multi domain. Then find user in your db and
return whole xml also with password. As you would do with conf file. You
can look at this as for freeswitch is same if it reads conf file from file
system or from url.

On Fri, May 6, 2016, 20:41 Colin Morelli <colin.morelli at gmail.com> wrote:

> FS posts the username to your web service in a parameter called "user"
>
> On Fri, May 6, 2016 at 2:29 PM Oivvio Polite <mylists at polite.se> wrote:
>
>> On fre, maj 06, 2016 at 08:51:25 -0500, Ken Rice wrote:
>> > mod_xml_curl just requests configurations.... in the case of the
>> directory,
>> > it literally requests the exact same thing you would put in the static
>> XML
>> > files for configs.
>> >
>> > In the event of someone logging in with Verto, FreeSWITCH will make an
>> xml
>> > curl call to the webservice providing the directory expecting to get an
>> xml
>> > blob back that is a complete directory config for that user. The
>> Username
>> > and Password provided by Verto are them compared. Does password in the
>> xml
>> > field for the user passed from the xml webservice == the password
>> passed in
>> > from the verto login attempt if yes the user is authenticated.
>>
>> Ok things are getting clearer but I'm not quite there. From what you're
>> saying "... back that is a complete directory config for that user" I
>> get the impression that my webservice should answer with the xml for a
>> single user, but how do I pass the username to the webservice?
>>
>> Or is it rather the case that I push the entire directory containing ALL
>> users on every single request?
>>
>> Oivvio
>>
>> _________________________________________________________________________
>> 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
>>
> _________________________________________________________________________
> 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

-- 
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160506/952836fd/attachment.html 


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