[Freeswitch-users] How to load user account from databse ?

Henry Huang red.rain.seven at gmail.com
Mon Oct 26 20:26:55 PDT 2009


We have used xml_odbc to get user data from database.

One question though, xml_odbc will load all the user info in database to
memory just like it is loading from plain xml config files when FS starts. I
was wondering if mod_xml_curl is doing this differently by only requesting
user information on demand (real time)? and not loading all the user
information from the beginning of FS start.



On Tue, Oct 27, 2009 at 5:39 AM, Costa Zikalala <costa.zikalala at gmail.com>wrote:

> Thanks for your response Michael,
>
> Both the resources you've referred to don't explicitly say much about
> databases. Could you elaborate just a bit on how on information would
> retrieved from a database (MySQL) and presented to mod_xml_curl.
>
> Thanks again.
>
>
>
> 2009/10/26 Michael Collins <msc at freeswitch.org>
>
>>
>>
>> On Sun, Oct 25, 2009 at 6:58 AM, Lei Tang <lei.tlfly at gmail.com> wrote:
>>
>>> Hi All:
>>>    I'm a newbie to FS.  I'm using  FS as a sbc and have about 20000 user
>>> account . Does somebody can tell me how to  make FS load use account
>>> information from a database such as mssql or mysql?  Could you give me a
>>> sample configuration file?
>>>    Thanks a lots.
>>>
>>>
>> Lei,
>>
>> The feature that you want is mod_xml_curl - it allows you to pull config
>> information from a web server, and that web server will do the db lookup.
>> For more information check out these resources:
>>
>> Wiki docs: http://wiki.freeswitch.org/wiki/Mod_xml_curl
>> Example:
>> http://fisheye.freeswitch.org/browse/FreeSWITCH/contrib/trixter/xml-curl
>>
>> We don't have a soup-to-nuts how-to on mod_xml_curl because it can be done
>> in so many different ways. Someone could write a book on implementing
>> xml_curl techniques. Your best bet is to figure out how you want to store
>> your user information, then decide what's the best way to pull that
>> information from the database, then setup a web server to handle the
>> request/return process. Between the docs and the examples you should be able
>> to get up and running.
>>
>> -MC
>>
>> _______________________________________________
>> 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
>>
>>
>
> _______________________________________________
> 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
>
>


-- 
Henry Huang
UniC Solution - Communication Unified
VoIP & Open Source software Consultant
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20091027/16961e3a/attachment-0001.html 


More information about the FreeSWITCH-users mailing list