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