[Freeswitch-users] Password in dialplan

Miha Zoubek miha at softnet.si
Mon Jan 9 10:20:38 MSK 2012


Hi,

can anyone can help me how can I get same password from user/dir also 
for radius authorization?

Thanks!

regards,
Miha

On 1/6/2012 9:40 AM, Miha Zoubek wrote:
> Hi Michael,
>
> this I have in my dialplan:
> <action inline="true" application="set" 
> data="USERNAME=${dialed_extension}"/>
> <action inline="true" application="set" data="PASSWD=1235"/>
> <!-- <action inline="true" application="set" 
> data="DIALED_NUMBER=$1"/>  -->
> <action application="auth_function" data="in ${DIALED_NUMBER}, in 
> ${USERNAME}, in ${PASSWD}, out AUTH_RESULT"/>
>
> in user/dir:
>
> user id="013108500">
> <params>
> <param name="password" value="54166"/>
>
> When user make call we authenticate it with freeradius. I would like 
> that, the same password for user login is also for radius 
> authentication, but I do not know how to link this with dial plan 
> (that the dial plan will parse password from user dir for auth_function.
>
> Thanks!
>
> Regards,
> Miha
>
> On 1/5/2012 4:49 PM, Michael Collins wrote:
>> How is this user being authenticated?
>> -MC
>>
>> On Wed, Jan 4, 2012 at 11:19 PM, Miha Zoubek <miha at softnet.si 
>> <mailto:miha at softnet.si>> wrote:
>>
>>     Hi,
>>
>>     in dial plan I have this line (for radius):
>>
>>     <action inline="true" application="set"
>>     data="PASSWD=$${default_password}"/>
>>
>>     Deafult password is set to 1234. As I do not wont default
>>     password for radius, I would just like to have here password
>>     which is set for user in directory.
>>
>>     <param name="password" value="11122"/>
>>
>>     How to set  in dialplan that the password will be taken from
>>     user/dir?
>>
>>     <action inline="true" application="set"
>>     data="PASSWD=$${password}"/> Like this?
>>
>>     Thanks!
>>
>>     Miha
>>
>>     -- 
>>     Best regards / Lep Pozdrav
>>     Miha Zoubek
>>     Softnet d.o.o.
>>
>>
>>     _________________________________________________________________________
>>     Professional FreeSWITCH Consulting Services:
>>     consulting at freeswitch.org <mailto: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
>>     <mailto: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
>
>
> -- 
> Best regards / Lep Pozdrav
> Miha Zoubek
> Softnet d.o.o.
>
>
> _________________________________________________________________________
> 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


-- 
Best regards / Lep Pozdrav
Miha Zoubek
Softnet d.o.o.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120109/c0002e35/attachment.html 


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