[Freeswitch-users] sip registration
Michael Collins
msc at freeswitch.org
Wed Dec 5 23:34:18 MSK 2012
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>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] *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>
> 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] *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 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
> ,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*
> ***
>
> ****
>
> I want to change this 100 to some e-mail address, so instead of 100 it
> will be something like ‘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
> 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
> 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://wiki.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****
>
>
>
>
> --
> 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
> 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
> 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/20121205/1d78c6d9/attachment-0001.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list