VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
sranil at gmail.com Guest
|
Posted: Sun Sep 20, 2009 3:26 pm Post subject: [Freeswitch-users] User Creation with DB in Freeswitch |
|
|
Hi All,
Is there any way in which user information can be stored in database instead of the xml files.
Regards,
Anil
--
Anil Kumar S. R.
http://sranil.googlepages.com/
"The best way to succeed in this world is to act on the advice you give to others." |
|
Back to top |
|
|
brian at freeswitch.org Guest
|
Posted: Sun Sep 20, 2009 3:29 pm Post subject: [Freeswitch-users] User Creation with DB in Freeswitch |
|
|
Using XML CURL
http://wiki.freeswitch.org/wiki/Mod_xml_curl
/b
On Sep 20, 2009, at 3:13 PM, Anil Kumar S. R. wrote:
Quote: | Hi All,
Is there any way in which user information can be stored in database instead of the xml files.
Regards,
Anil
--
Anil Kumar S. R.
http://sranil.googlepages.com/
|
|
|
Back to top |
|
|
mitul at enterux.com Guest
|
Posted: Sun Sep 20, 2009 11:01 pm Post subject: [Freeswitch-users] User Creation with DB in Freeswitch |
|
|
Yes use odbc in fs
Thanks & Regards,Mitul Limbani,
Founder & CEO,
Enterux Solutions Pvt. Ltd.,
The Enterprise Linux Company (r),
http://www.enterux.com
http://www.entVoice.com
On 21-Sep-2009, at 1:43 AM, "Anil Kumar S. R." <sranil@gmail.com (sranil@gmail.com)> wrote:
|
|
Back to top |
|
|
brian at freeswitch.org Guest
|
Posted: Mon Sep 21, 2009 4:49 am Post subject: [Freeswitch-users] User Creation with DB in Freeswitch |
|
|
You can't put the users directly into a db with FreeSWITCH you'll have to serve up the XML document via XML CURL or write your own module to do so via the module interfaces provided.
/b
On Sep 20, 2009, at 10:44 PM, Mitul Limbani wrote:
|
|
Back to top |
|
|
shaheryarkh at googlem... Guest
|
Posted: Mon Sep 21, 2009 5:15 am Post subject: [Freeswitch-users] User Creation with DB in Freeswitch |
|
|
Yes, XML CURL is really cool. I once bombed FS with 12,000 wrong registrations (bad username or password) in less then 50 seconds (49496 ms to be exact) and it processed all of them and gave correct responses using XML CURL.
I am willing to do this test again soon, with correct registration data this time, to see how many registration Sofia SIP module configured with XML CURL module can handle at a time.
Thank you.
On Mon, Sep 21, 2009 at 3:42 PM, Brian West <brian@freeswitch.org (brian@freeswitch.org)> wrote:
--
Muhammad Shahzad
-----------------------------------
CISCO Rich Media Communication Specialist (CRMCS)
CISCO Certified Network Associate (CCNA)
Cell: +92 334 422 40 88
MSN: shari_786pk@hotmail.com (shari_786pk@hotmail.com)
Email: shaheryarkh@googlemail.com (shaheryarkh@googlemail.com) |
|
Back to top |
|
|
shaheryarkh at googlem... Guest
|
Posted: Mon Sep 21, 2009 5:35 am Post subject: [Freeswitch-users] User Creation with DB in Freeswitch |
|
|
I searched my sent emails and found the results, copying it below (after removing some sensitive info),
1,000 Calls
==================================================
Total 1000 REGISTER calls sent in 890 ms at rate of 1123/sec
Total 1000 responses receieved in 4516 ms at rate of 221/sec:
Detailed responses received:
 - 403 responses:    1000    (Forbidden)
                   ------
 TOTAL responses:    1000 (rate=221/sec)
Maximum outstanding job: 894
Peak memory size: 15MB
5,000 Calls
==================================================
Total 5000 REGISTER calls sent in 28539 ms at rate of 175/sec
Total 5000 responses receieved in 36398 ms at rate of 137/sec:
Detailed responses received:
 - 403 responses:    5000    (Forbidden)
                   ------
 TOTAL responses:    5000 (rate=137/sec)
Maximum outstanding job: 1001
Peak memory size: 63MB
10,000 Calls
==================================================
Total 10000 REGISTER calls sent in 60741 ms at rate of 164/sec
Total 9289 responses receieved in 62740 ms at rate of 148/sec:
Detailed responses received:
 - 403 responses:    9289    (Forbidden)
                   ------
 TOTAL responses:    9289 (rate=148/sec)
Maximum outstanding job: 1047
Peak memory size: 78MB
12,000 Calls
==================================================
Total 12000 REGISTER calls sent in 49496 ms at rate of 242/sec
Total 12314 responses receieved in 60582 ms at rate of 203/sec:
Detailed responses received:
 - 403 responses:   12314    (Forbidden)
                   ------
 TOTAL responses:   12314 (rate=203/sec)
Maximum outstanding job: 1018
Peak memory size: 143MB
So, FS doesn't crash even on 12,000 bad registrations (600 regs per second). I did tweak its configurations a little however no change was made to source code to make this happen.
Thank you.
On Mon, Sep 21, 2009 at 4:07 PM, Muhammad Shahzad <shaheryarkh@googlemail.com (shaheryarkh@googlemail.com)> wrote:
Quote: | Yes, XML CURL is really cool. I once bombed FS with 12,000 wrong registrations (bad username or password) in less then 50 seconds (49496 ms to be exact) and it processed all of them and gave correct responses using XML CURL.
I am willing to do this test again soon, with correct registration data this time, to see how many registration Sofia SIP module configured with XML CURL module can handle at a time.
Thank you.
On Mon, Sep 21, 2009 at 3:42 PM, Brian West <brian@freeswitch.org (brian@freeswitch.org)> wrote:
--
Muhammad Shahzad
-----------------------------------
CISCO Rich Media Communication Specialist (CRMCS)
CISCO Certified Network Associate (CCNA)
Cell: +92 334 422 40 88
MSN: shari_786pk@hotmail.com (shari_786pk@hotmail.com)
Email: shaheryarkh@googlemail.com (shaheryarkh@googlemail.com)
|
--
Muhammad Shahzad
-----------------------------------
CISCO Rich Media Communication Specialist (CRMCS)
CISCO Certified Network Associate (CCNA)
Cell: +92 334 422 40 88
MSN: shari_786pk@hotmail.com (shari_786pk@hotmail.com)
Email: shaheryarkh@googlemail.com (shaheryarkh@googlemail.com) |
|
Back to top |
|
|
demuel at thephinix.org Guest
|
|
Back to top |
|
|
sranil at gmail.com Guest
|
Posted: Wed Sep 23, 2009 1:57 pm Post subject: [Freeswitch-users] User Creation with DB in Freeswitch |
|
|
I didn't get much help for my problem with XML CURL. What I meant to say is, suppose I want to have some 10000 users on freeswitch. Do we have to create some many xml files in the directory or is there some way in which the users can be put in the db ?
Also. my another question is, what is the command by which we can get the number of users that are currently registered on the freeswitch?
Thanks,
Anil
2009/9/21 Brian West <brian@freeswitch.org (brian@freeswitch.org)>
--
Anil Kumar S. R.
http://sranil.googlepages.com/
"The best way to succeed in this world is to act on the advice you give to others." |
|
Back to top |
|
|
mike at jerris.com Guest
|
Posted: Wed Sep 23, 2009 2:29 pm Post subject: [Freeswitch-users] User Creation with DB in Freeswitch |
|
|
There are tons of details on this at http://wiki.freeswitch.org/wiki/Mod_xml_curl
Are you having an issue?
Mike
On Sep 23, 2009, at 2:37 PM, Anil Kumar S. R. wrote:
Quote: | I didn't get much help for my problem with XML CURL. What I meant to say is, suppose I want to have some 10000 users on freeswitch. Do we have to create some many xml files in the directory or is there some way in which the users can be put in the db ?
Also. my another question is, what is the command by which we can get the number of users that are currently registered on the freeswitch?
Thanks,
Anil
2009/9/21 Brian West <brian@freeswitch.org (brian@freeswitch.org)>
Quote: | You can't put the users directly into a db with FreeSWITCH you'll have to serve up the XML document via XML CURL or write your own module to do so via the module interfaces provided.
/b
On Sep 20, 2009, at 10:44 PM, Mitul Limbani wrote:
Quote: | Yes use odbc in fs
|
|
|
|
|
Back to top |
|
|
gabe at gundy.org Guest
|
Posted: Thu Sep 24, 2009 12:46 am Post subject: [Freeswitch-users] User Creation with DB in Freeswitch |
|
|
On Wed, Sep 23, 2009 at 12:37 PM, Anil Kumar S. R. <sranil@gmail.com> wrote:
Quote: | I didn't get much help for my problem with XML CURL. What I meant to say is,
suppose I want to have some 10000 users on freeswitch. Do we have to create
some many xml files in the directory or is there some way in which the users
can be put in the db ?
|
That's the whole point. You serve up the XML from *your* web server
using whatever technologies that *you* would like on the back-end.
You'll want to make that XML reply dynamic.
Use php, perl, python, c#, java or whatever other language *you* want.
Pull the data from MySQL, flat-files, PostgreSQL, MSSQL, LDAP or
whatever *you* want. Just serve up the right bit of configuration to
FreeSWITCH and you're done.
Good luck. Spend more time in the docs. Others have posted the links.
Best,
Gabe
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
costa.zikalala at gmai... Guest
|
Posted: Thu Sep 24, 2009 9:06 am Post subject: [Freeswitch-users] User Creation with DB in Freeswitch |
|
|
Hi Gabe
Thanks for you response to this question.
Do you perhaps have a link to an example (or just further detail) to what you've descibed below.
I guess one would also use a similar setup to generate dialplans from web forms.
Thanks again,
Costa
2009/9/24 Gabriel Gunderson <gabe@gundy.org (gabe@gundy.org)>
Quote: | On Wed, Sep 23, 2009 at 12:37 PM, Anil Kumar S. R. <sranil@gmail.com (sranil@gmail.com)> wrote:
Quote: | I didn't get much help for my problem with XML CURL. What I meant to say is,
suppose I want to have some 10000 users on freeswitch. Do we have to create
some many xml files in the directory or is there some way in which the users
can be put in the db ?
|
That's the whole point. You serve up the XML from *your* web server
using whatever technologies that *you* would like on the back-end.
You'll want to make that XML reply dynamic.
Use php, perl, python, c#, java or whatever other language *you* want.
Pull the data from MySQL, flat-files, PostgreSQL, MSSQL, LDAP or
whatever *you* want. Just serve up the right bit of configuration to
FreeSWITCH and you're done.
Good luck. Spend more time in the docs. Others have posted the links.
Best,
Gabe
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
|
|
|
Back to top |
|
|
mike at jerris.com Guest
|
Posted: Thu Sep 24, 2009 11:39 pm Post subject: [Freeswitch-users] User Creation with DB in Freeswitch |
|
|
There are a number of examples out there such as:
http://svn.freeswitch.org/svn/freeswitch/trunk/contrib/intralanman/PHP/fs_curl/
Mike
On Sep 24, 2009, at 7:02 AM, Costa Zikalala wrote:
Quote: | Hi Gabe
Thanks for you response to this question.
Do you perhaps have a link to an example (or just further detail) to what you've descibed below.
I guess one would also use a similar setup to generate dialplans from web forms.
Thanks again,
Costa
2009/9/24 Gabriel Gunderson <gabe@gundy.org (gabe@gundy.org)>
Quote: | On Wed, Sep 23, 2009 at 12:37 PM, Anil Kumar S. R. <sranil@gmail.com (sranil@gmail.com)> wrote:
Quote: | I didn't get much help for my problem with XML CURL. What I meant to say is,
suppose I want to have some 10000 users on freeswitch. Do we have to create
some many xml files in the directory or is there some way in which the users
can be put in the db ?
|
That's the whole point. You serve up the XML from *your* web server
using whatever technologies that *you* would like on the back-end.
You'll want to make that XML reply dynamic.
Use php, perl, python, c#, java or whatever other language *you* want.
Pull the data from MySQL, flat-files, PostgreSQL, MSSQL, LDAP or
whatever *you* want. Just serve up the right bit of configuration to
FreeSWITCH and you're done.
Good luck. Spend more time in the docs. Others have posted the links.
|
|
|
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|