They're just normal channel variables<div><a href="http://wiki.freeswitch.org/wiki/Channel_Variables#sip_auth_username">http://wiki.freeswitch.org/wiki/Channel_Variables#sip_auth_username</a><br></div><div><a href="http://wiki.freeswitch.org/wiki/Channel_Variables#sip_auth_password">http://wiki.freeswitch.org/wiki/Channel_Variables#sip_auth_password</a><br>
</div><div><br></div><div>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.</div><div><br></div><div>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:</div>
<div><action application="bridge" data="[sip_auth_username=user1,sip_auth_password=pass123]sofia/profile/1234@a.b.c.d"/></div><div><br></div><div>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).</div>
<div><br></div><div><br></div><div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 7 December 2012 18:04, Archana Venugopan <span dir="ltr"><<a href="mailto:a.venugopan@mundio.com" target="_blank">a.venugopan@mundio.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-GB" link="blue" vlink="purple">
<div>
<p class="MsoNormal">Hi,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">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?<u></u><u></u></p>
<p class="MsoNormal">Is it from some query in lua script or is it from any sip URL?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Regards,<u></u><u></u></p>
<p class="MsoNormal">Archana<span style="font-size:10.0pt"><u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>