Hi, In sofia_reg.c I find variables like 'sip_auth_username','sip_auth_password',etc. Can anyone please tell me from where it will get value for all these variables? Is it from some query in lua script or is it from any sip URL? Regards, Archana
Hi hope this URL help you http://wiki.freeswitch.org/wiki/Mod_lua/Serving_Configuration On Fri, Dec 7, 2012 at 11:34 PM, Archana Venugopan <a.venugopan@mundio.com>wrote:
Hi,****
** **
In sofia_reg.c I find variables like ‘sip_auth_username’,’sip_auth_password’,etc. Can anyone please tell me from where it will get value for all these variables?****
Is it from some query in lua script or is it from any sip URL?****
** **
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
Hi, Thanks. Yes I checked this link and which says like the values are fetched based on the domain name from sip_profiles. But if that is the case if I change the user_id to some name based on domain, its not picking up sip_auth_username and throwing error!! Correct me please if my understanding is wrong. Regards, Archana From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of ram Sent: 07 December 2012 18:10 To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] sofia_reg.c Hi hope this URL help you http://wiki.freeswitch.org/wiki/Mod_lua/Serving_Configuration On Fri, Dec 7, 2012 at 11:34 PM, Archana Venugopan <a.venugopan@mundio.com<mailto:a.venugopan@mundio.com>> wrote: Hi, In sofia_reg.c I find variables like 'sip_auth_username','sip_auth_password',etc. Can anyone please tell me from where it will get value for all these variables? Is it from some query in lua script or is it from any sip URL? Regards, Archana _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org<mailto: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<mailto: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
They're just normal channel variables http://wiki.freeswitch.org/wiki/Channel_Variables#sip_auth_username http://wiki.freeswitch.org/wiki/Channel_Variables#sip_auth_password When set on an outbound leg they'll be used for authentication. You don't need them if you're dialing a sofia/gateway/ prefix. There're multiple ways to set them... you can set them on the aleg to export to the bleg, or put them within the dialstring - for example: <action application="bridge" data="[sip_auth_username=user1,sip_auth_password=pass123]sofia/profile/1234@a.b.c.d "/> How you actually get the value to assign is going to be down to your specific setup. It could be static in dialplan, or fetched from somewhere else (eg lua, db etc). On 7 December 2012 18:04, Archana Venugopan <a.venugopan@mundio.com> wrote:
Hi,****
** **
In sofia_reg.c I find variables like ‘sip_auth_username’,’sip_auth_password’,etc. Can anyone please tell me from where it will get value for all these variables?****
Is it from some query in lua script or is it from any sip URL?****
** **
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
These come from the SIP headers for the dialog in question. -MC On Fri, Dec 7, 2012 at 10:04 AM, Archana Venugopan <a.venugopan@mundio.com>wrote:
Hi,****
** **
In sofia_reg.c I find variables like ‘sip_auth_username’,’sip_auth_password’,etc. Can anyone please tell me from where it will get value for all these variables?****
Is it from some query in lua script or is it from any sip URL?****
** **
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
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
participants (4)
-
Archana Venugopan
-
Michael Collins
-
ram
-
Steven Ayre