[Freeswitch-users] sip registration

Archana Venugopan a.venugopan at mundio.com
Sat Dec 8 13:33:25 MSK 2012


Hi Michael,

Thanks. I have gone through that wiki already, but in our freeswitch we don't use XML to check the userid and password rather we use DB in some script(not sure where). Also mod_xml_curl has been disabled too.
But in none of the lua script I find that its verifying the password from the URL to DB too. SO am confused.

Sorry I know am missing something but not sure where.

Thanks again.

Regards,
Archana

From: freeswitch-users-bounces at lists.freeswitch.org [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Michael Collins
Sent: 07 December 2012 21:56
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] sip registration

Archana,

Did you see this page on the wiki?
http://wiki.freeswitch.org/wiki/XML_User_Directory_Guide#Alphanumeric_to_numeric_user_mapping

It's been there for years. I promise you that the wiki has more information than you are giving it credit for. Just remember that our wiki is a microcosm of the Internet: it has what you're looking for but you need Google to search it and you have to dig through all the results. :)

Try that and see if it does what you need.

As far as your question goes, there isn't a "script" that checks it. Rather, the module that is doing the authentication will look in the XML data for the user id and password. If mod_xml_curl is enable then FS will go fetch the XML data from your server.

-MC
On Fri, Dec 7, 2012 at 1:21 AM, Archana Venugopan <a.venugopan at mundio.com<mailto:a.venugopan at mundio.com>> wrote:
Hi,

I want to give some alphabets instead of number. I want to know which script checks this authentication name to corresponding DB table. Please let me know.
Thanks

Regards,
Archana

From: freeswitch-users-bounces at lists.freeswitch.org<mailto:freeswitch-users-bounces at lists.freeswitch.org> [mailto:freeswitch-users-bounces at lists.freeswitch.org<mailto:freeswitch-users-bounces at lists.freeswitch.org>] On Behalf Of Michael Collins
Sent: 06 December 2012 21:58
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] sip registration

Use "100" for the authentication name as well.
-MC
On Thu, Dec 6, 2012 at 9:25 AM, Archana Venugopan <a.venugopan at mundio.com<mailto:a.venugopan at mundio.com>> wrote:
Hi,
Thanks. I thought it will look in mod_sofia code. In the below screen I register the ID '100'. Now instead of '100' in "Authentication Name" I need to give some e-mail ID or name(Archana) which should validate in DB.
I tried giving a name in "Authentication Name" but the phone was not registered. Am not sure this authentication name is being looked in which column in table too.
Please let me know if this will be picked from any sofia code or any C script? Once we register in the below screen which script validates the Settings in freeswitch?

Sorry if am repeating the same question, but I could not get the exact code and am clueless.
Global SIP Settings
Top of Form
Basic SIP Authentication Settings



Screen Name

Screen Name 2

Phone Number

Caller ID

Authentication Name

Password

Bottom of Form


Regards,
Archana

From: freeswitch-users-bounces at lists.freeswitch.org<mailto:freeswitch-users-bounces at lists.freeswitch.org> [mailto:freeswitch-users-bounces at lists.freeswitch.org<mailto:freeswitch-users-bounces at lists.freeswitch.org>] On Behalf Of Michael Collins
Sent: 05 December 2012 20:34
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] sip registration

When an event that requires a user lookup takes place then the system will look in the XML user directory unless it has been configured to look somewhere else. The other places to look are usually:
mod_xml_curl
One of the language like Lua, Perl, Python

If it's xml_curl then FS will do a POST to your web server in hopes of receiving back the necessary XML for the given user. It would be up to you to have your web server handle the request, poll the database, then format and return the XML data. See this wiki page<http://wiki.freeswitch.org/wiki/Xml_curl#How_do_I_configure_mod_xml_curl.3F> for more info on xml curl.

If it's a language then you'll have a "binding" in the conf file for the language that will handle the lookup. Again, your script will need to handle the communication with your database. See this wiki page<http://wiki.freeswitch.org/wiki/Mod_lua/Serving_Configuration> for more information.

Hope this helps.
-MC
On Wed, Dec 5, 2012 at 9:30 AM, Archana Venugopan <a.venugopan at mundio.com<mailto:a.venugopan at mundio.com>> wrote:
Hi,
Thanks for the information. But sorry, how to access user_data API command.

Am not clear on the flow. Once we register domain and usernumber in sip what exactly happens? Which script picks up this domain and username and validates with our database?
Could you please provide me with an overview.

Many thanks

Regards,
Archana

From: freeswitch-users-bounces at lists.freeswitch.org<mailto:freeswitch-users-bounces at lists.freeswitch.org> [mailto:freeswitch-users-bounces at lists.freeswitch.org<mailto:freeswitch-users-bounces at lists.freeswitch.org>] On Behalf Of Michael Collins
Sent: 05 December 2012 17:13
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] sip registration

If you're talking about the user configuration then yes, you could create an "email" parameter or variable and access it with the user_data API command.
-MC
On Wed, Dec 5, 2012 at 1:35 AM, Archana Venugopan <a.venugopan at mundio.com<mailto:a.venugopan at mundio.com>> wrote:
Hi,
In that case can I have 1 more column say e-mail and can this e-mail be checked in DB instead of checking reg_user('100')? Is that feasible?
Also which code should be changed any idea please?

Regards,
Archana

From: freeswitch-users-bounces at lists.freeswitch.org<mailto:freeswitch-users-bounces at lists.freeswitch.org> [mailto:freeswitch-users-bounces at lists.freeswitch.org<mailto:freeswitch-users-bounces at lists.freeswitch.org>] On Behalf Of Steven Ayre
Sent: 04 December 2012 19:51
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] sip registration

You can have a user 'ana' in the domain 'gmail.com<http://gmail.com>'. Though using someone else's domain as local in your FS setup may not be a good idea.
You can't have a @ in the username itself (per the SIP standard, not limited to FreeSWITCH).

On 4 December 2012 18:00, Archana Venugopan <a.venugopan at mundio.com<mailto:a.venugopan at mundio.com>> wrote:
Hi,

Currently we register authentication name as say '100' in sip registration, this comes to freeswitch and it will check in our DB for 100 and if its present then registrations would be successful.

freeswitch at internal> show registrations
reg_user,realm,token,url,expires,network_ip,network_port,network_proto,hostname
100,fsfailover.uk01.com<http://fsfailover.uk01.com>,e4969067f9a8c098,sofia/internal/sip:100 at 192.168.2.234:5060;transport=udp,1354638871,192.168.2.234,5060,udp,squay-laptop-1.squay.com<http://squay-laptop-1.squay.com>

I want to change this 100 to some e-mail address, so instead of 100 it will be something like 'ana at gmail.com<mailto:ana at gmail.com>'. Can we do this? While coming to freeswitch whether there would be any issues?

Regards,
Archana


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org<mailto:consulting at freeswitch.org>
http://www.freeswitchsolutions.com




Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
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
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org<mailto:consulting at freeswitch.org>
http://www.freeswitchsolutions.com




Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
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
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



--
Michael S Collins
Twitter: @mercutioviz
http://www.FreeSWITCH.org
http://www.ClueCon.com
http://www.OSTAG.org

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org<mailto:consulting at freeswitch.org>
http://www.freeswitchsolutions.com




Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
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
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



--
Michael S Collins
Twitter: @mercutioviz
http://www.FreeSWITCH.org
http://www.ClueCon.com
http://www.OSTAG.org

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org<mailto:consulting at freeswitch.org>
http://www.freeswitchsolutions.com




Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
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
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



--
Michael S Collins
Twitter: @mercutioviz
http://www.FreeSWITCH.org
http://www.ClueCon.com
http://www.OSTAG.org

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org<mailto:consulting at freeswitch.org>
http://www.freeswitchsolutions.com




Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
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
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



--
Michael S Collins
Twitter: @mercutioviz
http://www.FreeSWITCH.org
http://www.ClueCon.com
http://www.OSTAG.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20121208/78cd2028/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list