Use "100" for the authentication name as well. -MC On Thu, Dec 6, 2012 at 9:25 AM, Archana Venugopan <a.venugopan@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@lists.freeswitch.org [mailto: freeswitch-users-bounces@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@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@lists.freeswitch.org [mailto: freeswitch-users-bounces@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@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@lists.freeswitch.org [mailto: freeswitch-users-bounces@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'. 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@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@internal> show registrations****
reg_user,realm,token,url,expires,network_ip,network_port,network_proto,hostname ****
100,fsfailover.uk01.com ,e4969067f9a8c098,sofia/internal/sip:100@192.168.2.234:5060 ;transport=udp,1354638871,192.168.2.234,5060,udp,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@gmail.com’. Can we do this? While coming to freeswitch whether there would be any issues?****
****
Regards,****
Archana****
****
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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****
****
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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****
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org****
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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****
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
****
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org