On Sunday, March 4, 2012 at 2:17 PM, Miha wrote:
Thank you for that!After that I will be able to use variables from user/dir?Regards,MihaOn Sun, 4 Mar 2012 01:14:13 -0300Jo?o Mesquita <jmesquita@freeswitch.org> wrote:You won't get the user's password in plain text like thatEVER. If we did that, we would be considered to beinsanely insecure.I am guessing you are using SIP only so you can take alook at the dialplan/public.xml file of the defaultconfigs. On the end of that file you will see that thereis a verification to do dial plan based authentication.Look for this extension in particular:<extension name="check_auth" continue="true"><condition field="${sip_authorized}"expression="^true$" break="never"><anti-action application="respond" data="407"/></condition></extension><extension name="transfer_to_default"><condition><action application="transfer"data="${destination_number} XML default"/></condition></extension>Regards,--Jo?o MesquitaSent with Sparrow (http://www.sparrowmailapp.com/?sig)On Friday, March 2, 2012 at 7:09 AM, Miha Zoubek wrote:Hi,in my directory I set variable password (<variablename="password" value="52166"/>) for every user.After I am doing 302 redirect in my public dialplan andtransfer call to extension, I can not use variblepasword.How can I get varible password, so that I canauthenticate call.public dialplan:<anti-action application="log" data="INFO################# CALL FORWARD ################\n"/><!-- <anti-action application="log" data=" INFOsip_redirect_contact_={ip_redirect_contact_}" /> --><!-- <anti-action application="set"data="sip_redirect_contex=default" /> --><anti-action application="info"/><anti-action application="set"data="process_cdr=false"/><anti-action application="execute_extension"data="IZVEDI_PREUSMERITEV XML default"/>default dialplan:<condition field="destination_number"expression="IZVEDI_PREUSMERITEV" /><condition field="${sip_redirect_contact_user_0}"expression="^0(\d+)$" ><action application="set" data="process_cdr=true"/><action inline="true" application="set"data="CALLINGNUMBER=${sip_redirect_contact_user_0}"/><action inline="true" application="set"data="USERNAME=${sip_req_user}"/><action application="info"/><action application="set"data="effective_caller_id_name=${sip_req_user}"/><action application="set"data="origination_caller_id_name=${sip_req_user} "/><action inline="true" application="set"data="PASSWD=${password}"/><action application="execute_extension"data="RADIUS_ANI_AUTH XML default"/><action application="enum"data="386${sip_redirect_contact_user_0:1}enumsbc.softnet.si (http://enumsbc.softnet.si)"/><action application="bridge"data="{origination_callee_id_name='${effective_caller_id_name}'}${enum_auto_route}"/><action application="info"/><action application="bridge"data="sofia/external/386${sip_redirect_contact_user_0:1}@xxx.xxx.xxx.xxx"/>_________________________________________________________________________Professional FreeSWITCH Consulting Services:ServerOfficial FreeSWITCH SitesFreeSWITCH-users mailing list_________________________________________________________________________Professional FreeSWITCH Consulting Services:FreeSWITCH-powered IP PBX: The CudaTel Communication ServerOfficial FreeSWITCH SitesFreeSWITCH-users mailing list