[Freeswitch-users] sofia_reg.c

Steven Ayre steveayre at gmail.com
Fri Dec 7 21:15:58 MSK 2012


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 at 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 at 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 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20121207/8d7601d2/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list