<div style="font-family: 'Courier New'; font-size: 13px; ">Miha, I think that there is some misunderstanding on your part. Let me try to make that clear.<div><br></div><div>You will NEVER see plain text passwords in FreeSWITCH. No matter what state the channel is on, you just won't.</div><div><br></div><div>On the other hand, you client is being able to authenticate correctly. If you look at a SIP dialog, you will see that it responds to the 401 correctly somewhere, meaning that it has been authenticated.</div><div><br></div><div>Re-reading your emails, now it has crossed my mind that you are looking to do per-call authentication on RADIUS and that authentication has nothing to do with SIP. In that case, you won't be able to use the SIP password on the directory either. Just set a new variable for that on the user directory and then you can use that.</div><div><br></div><div>Regards,</div></div>
<div><div><br></div><div>-- </div><div>João Mesquita</div><div>Sent with <a href="http://www.sparrowmailapp.com/?sig">Sparrow</a></div><div><br></div></div>
<p style="color: #A0A0A8;">On Monday, March 5, 2012 at 11:51 AM, Miha Zoubek wrote:</p><blockquote type="cite"><div>
<span><div><div>
<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
On 03/05/2012 09:33 AM, Gregor Nanger wrote:
<blockquote type="cite"><div>Yes Miha!
<div><br>
</div>
<div>I think that is impossible to get password in raw format via
variables. If you have registration data somewhere else in
database, you can make sql query.</div>
<div><br>
</div>
<div>You need to make, that on redirection your sbc is using IP
authentication, not username/pass. That way, you wouldn't need
password.</div>
<div><br>
</div>
<div>BR Grega</div>
<div>
<div>
<div style="font-size:13.3px;font-family:Verdana,Arial,Helvetica,sans-serif"><img moz-do-not-send="true" src="https://wisestamp.appspot.com/pixel.png?p=chrome&v=3.11.16.0&t=1330936168561&u=2cae5e430c4ca423" height="1" width="1"></div>
</div>
<br>
<br>
<div>2012/3/5 Miha Zoubek <span dir="ltr"><<a moz-do-not-send="true" href="mailto:miha@softnet.si">miha@softnet.si</a>></span><br><blockquote type="cite"><div>
<div bgcolor="#FFFFFF" text="#000000"> Hi @João,<br>
<br>
first thank you for your quick response.<br>
<br>
I have add ${sip_authorized} condition, but still no luck,
as when 302 happens FS indicate user as inbound call who
is calling on redirected number due to this I can not use
password which is set for phone who is having redirect set
and is connected on FS. SO, I can only use variables which
are set for incoming call.<br>
<br>
This is my public dialplan:<br>
<br>
<small><include>
<div><br>
<br>
<br>
<extension name="check_auth" continue="true"><br>
<condition field="${sip_authorized}"
expression="^true$" break="never"><br>
<anti-action application="respond"
data="407"/><br>
</condition><br>
</extension><br>
<br>
<br>
<br>
</div>
<extension name="trunk_sbc_1"><br>
<br>
<br>
<!-- <condition field="${user_exists(id
${destination_number}.fs_kabelvoip1 <a moz-do-not-send="true" href="http://fs_kabelvoip1.fs1.softnet.si" target="_blank">fs_kabelvoip1.fs1.softnet.si</a>)}"
expression="true">--><br>
<condition field="${user_exists(id
${destination_number}.fs_kabelvoip1 <a moz-do-not-send="true" href="http://fs_kabelvoip1.fs1.softnet.si" target="_blank">fs_kabelvoip1.fs1.softnet.si</a>)}"
expression="true"><br>
<!-- <condition field="destination_number"
expression="$"> --><br>
<action application="log" /> <br>
<br>
<action application="set" data="domain_name=<a moz-do-not-send="true" href="http://fs_kabelvoip1.fs1.softnet.si" target="_blank">fs_kabelvoip1.fs1.softnet.si</a>"/><br>
<action application="set" data="domain=<a moz-do-not-send="true" href="http://fs_kabelvoip1.fs1.softnet.si" target="_blank">fs_kabelvoip1.fs1.softnet.si</a>"/><br>
<action application="export"
data="destination_number"=$1"/><br>
<!-- <action application="transfer" data="1000
XML default"/> -->
<div><br>
<action application="set"
data="process_cdr=false"/><br>
</div>
<action application="set"
data="domain_name=$${domain}"/><br>
<action application="info"/> <br>
<action application="bridge"
data="sofia/internal/${destination_number}.fs_kabelvoip1%<a moz-do-not-send="true" href="http://fs_kabelvoip1.fs1.softnet.si" target="_blank">fs_kabelvoip1.fs1.softnet.si</a>"/>
<br>
<!-- This example maps the DID 5551212 to ring
1000 in the default context -->
<div><br>
<br>
<br>
<anti-action application="log" data="INFO
################# CALL FORWARD
################\n"/><br>
<!-- <anti-action application="log" data=" INFO
sip_redirect_contact_={ip_redirect_contact_}" />
--><br>
<!-- <anti-action application="set"
data="sip_redirect_contex=default" /> --><br>
<anti-action application="info"/><br>
<anti-action application="set"
data="process_cdr=false"/> <br>
</div>
<anti-action application="execute_extension"
data="{origination_callee_id_name='${sip_req_user}'}IZVEDI_PREUSMERITEV
XML default"/> <br>
<br>
<br>
<br>
</condition><br>
</extension><br>
</include><br>
</small><br>
<br>
I have also add log to pastebin: <a moz-do-not-send="true" href="http://pastebin.freeswitch.org/18575" target="_blank">http://pastebin.freeswitch.org/18575</a><br>
<br>
Thanks!<span><font color="#888888"><br>
Miha</font></span>
<div>
<div><br>
<br>
On 03/04/2012 09:31 PM, João Mesquita wrote:
<blockquote type="cite"><div>
<div style="font-family:'Courier
New';font-size:13px">Yes<br>
</div>
<div>
<div><br>
</div>
<div>-- </div>
<div>João Mesquita</div>
<div>Sent with <a moz-do-not-send="true" href="http://www.sparrowmailapp.com/?sig" target="_blank">Sparrow</a></div>
<div><br>
</div>
</div>
<p style="color:#a0a0a8">On Sunday, March 4, 2012 at
2:17 PM, Miha wrote:</p><blockquote type="cite"><div>
<span>
<div>
<div>
<div>Thank you for that!</div>
<div><br>
</div>
<div>After that I will be able to use
variables from user/dir?</div>
<div><br>
</div>
<div>Regards,</div>
<div>Miha</div>
<div><br>
</div>
<div>On Sun, 4 Mar 2012 01:14:13 -0300</div>
<div> Jo?o Mesquita <<a moz-do-not-send="true" href="mailto:jmesquita@freeswitch.org" target="_blank">jmesquita@freeswitch.org</a>>
wrote:</div><blockquote type="cite"><div>
<div>
<div>You won't get the user's password
in plain text like that</div>
<div>EVER. If we did that, we would be
considered to be</div>
<div>insanely insecure.</div>
<div><br>
</div>
<div>I am guessing you are using SIP
only so you can take a</div>
<div>look at the dialplan/public.xml
file of the default</div>
<div>configs. On the end of that file
you will see that there</div>
<div>is a verification to do dial plan
based authentication.</div>
<div><br>
</div>
<div>Look for this extension in
particular:</div>
<div><br>
</div>
<div><extension name="check_auth"
continue="true"></div>
<div> <condition
field="${sip_authorized}"</div>
<div>expression="^true$"
break="never"></div>
<div> <anti-action
application="respond" data="407"/></div>
<div> </condition></div>
<div></extension></div>
<div><extension
name="transfer_to_default"></div>
<div> <condition></div>
<div> <action application="transfer"</div>
<div>data="${destination_number} XML
default"/></div>
<div> </condition></div>
<div></extension></div>
<div><br>
</div>
<div><br>
</div>
<div>Regards, </div>
<div><br>
</div>
<div>-- </div>
<div>Jo?o Mesquita</div>
<div>Sent with Sparrow (<a moz-do-not-send="true" href="http://www.sparrowmailapp.com/?sig" target="_blank">http://www.sparrowmailapp.com/?sig</a>)</div>
<div><br>
</div>
<div><br>
</div>
<div>On Friday, March 2, 2012 at 7:09
AM, Miha Zoubek wrote:</div>
<div><br>
</div><blockquote type="cite"><div>
<div>
<div>Hi,</div>
<div> </div>
<div>in my directory I set variable
password (<variable</div>
</div>
</div></blockquote><div>name="password" value="52166"/>)
for every user.</div><blockquote type="cite"><div>
<div>
<div> </div>
<div>After I am doing 302 redirect
in my public dialplan and</div>
</div>
</div></blockquote><div>transfer call to extension, I can
not use varible</div>
<div>pasword.</div><blockquote type="cite"><div>
<div>How can I get varible password,
so that I can</div>
</div></blockquote><div>authenticate call.</div><blockquote type="cite"><div>
<div>
<div> </div>
<div>public dialplan:</div>
<div> </div>
<div><anti-action
application="log" data="INFO</div>
</div>
</div></blockquote><div>################# CALL FORWARD
################\n"/></div><blockquote type="cite"><div>
<div><!-- <anti-action
application="log" data=" INFO</div>
</div></blockquote><div>sip_redirect_contact_={ip_redirect_contact_}"
/> --></div><blockquote type="cite"><div>
<div><!-- <anti-action
application="set"</div>
</div></blockquote><div>data="sip_redirect_contex=default"
/> --></div><blockquote type="cite"><div>
<div>
<div><anti-action
application="info"/></div>
<div> <anti-action
application="set"</div>
</div>
</div></blockquote><div>data="process_cdr=false"/></div><blockquote type="cite"><div>
<div> <anti-action
application="execute_extension"</div>
</div></blockquote><div>data="IZVEDI_PREUSMERITEV XML
default"/> </div><blockquote type="cite"><div>
<div>
<div> </div>
<div>default dialplan:</div>
<div> </div>
<div><condition
field="destination_number"</div>
</div>
</div></blockquote><div>expression="IZVEDI_PREUSMERITEV"
/></div><blockquote type="cite"><div>
<div><condition
field="${sip_redirect_contact_user_0}"</div>
</div></blockquote><div>expression="^0(\d+)$" ></div><blockquote type="cite"><div>
<div>
<div><action application="set"
data="process_cdr=true"/></div>
<div> <action inline="true"
application="set"</div>
</div>
</div></blockquote><div>data="CALLINGNUMBER=${sip_redirect_contact_user_0}"/></div><blockquote type="cite"><div>
<div> <action inline="true"
application="set"</div>
</div></blockquote><div>data="USERNAME=${sip_req_user}"/></div><blockquote type="cite"><div>
<div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div><action
application="info"/></div>
<div> </div>
<div><action application="set"</div>
</div>
</div></blockquote><div>data="effective_caller_id_name=${sip_req_user}"/></div><blockquote type="cite"><div>
<div><action application="set"</div>
</div></blockquote><div>data="origination_caller_id_name=${sip_req_user}
"/></div><blockquote type="cite"><div>
<div>
<div> </div>
<div> </div>
<div> <action inline="true"
application="set"</div>
</div>
</div></blockquote><div>data="PASSWD=${password}"/></div><blockquote type="cite"><div>
<div> <action
application="execute_extension"</div>
</div></blockquote><div>data="RADIUS_ANI_AUTH XML
default"/></div><blockquote type="cite"><div>
<div> <action application="enum"</div>
</div></blockquote><div>data="386${sip_redirect_contact_user_0:1}</div>
<div><a moz-do-not-send="true" href="http://enumsbc.softnet.si" target="_blank">enumsbc.softnet.si</a>
(<a moz-do-not-send="true" href="http://enumsbc.softnet.si" target="_blank">http://enumsbc.softnet.si</a>)"/></div><blockquote type="cite"><div>
<div>
<div> </div>
<div><action application="bridge"</div>
</div>
</div></blockquote></div>
</div></blockquote><div>data="{origination_callee_id_name='${effective_caller_id_name}'}${enum_auto_route}"/></div><blockquote type="cite"><blockquote type="cite"><div>
<div>
<div> </div>
<div> </div>
<div><action
application="info"/></div>
<div><action application="bridge"</div>
</div>
</div></blockquote></blockquote><div>data="sofia/external/386${sip_redirect_contact_user_0:1}@<a moz-do-not-send="true" href="http://xxx.xxx.xxx.xxx" target="_blank">xxx.xxx.xxx.xxx</a>"</div>
<div>(<a moz-do-not-send="true" href="mailto:sofia/external/386$%7Bsip_redirect_contact_user_0:1%7D@xxx.xxx.xxx.xxx" target="_blank">mailto:sofia/external/386${sip_redirect_contact_user_0:1}@xxx.xxx.xxx.xxx</a>)</div><blockquote type="cite"><div>
<div>
<div>/></div><blockquote type="cite"><div>
<div> </div>
</div></blockquote></div>
</div></blockquote><div>_________________________________________________________________________</div><blockquote type="cite"><div>
<div><blockquote type="cite"><div>
<div>
<div>Professional FreeSWITCH
Consulting Services:</div>
<div><a moz-do-not-send="true" href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a></div>
</div>
</div></blockquote><div>(<a moz-do-not-send="true" href="mailto:consulting@freeswitch.org" target="_blank">mailto:consulting@freeswitch.org</a>)</div><blockquote type="cite"><div>
<div>
<div><a moz-do-not-send="true" href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a></div>
<div> </div>
<div>FreeSWITCH-powered IP PBX: The
CudaTel Communication</div>
</div>
</div></blockquote><div>Server</div><blockquote type="cite"><div>
<div>
<div><a moz-do-not-send="true" href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a></div>
<div> </div>
<div>Official FreeSWITCH Sites</div>
<div><a moz-do-not-send="true" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></div>
<div><a moz-do-not-send="true" href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a></div>
<div><a moz-do-not-send="true" href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a></div>
<div> </div>
<div>FreeSWITCH-users mailing list</div>
<div><a moz-do-not-send="true" href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a></div>
</div>
</div></blockquote><div>(<a moz-do-not-send="true" href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">mailto:FreeSWITCH-users@lists.freeswitch.org</a>)</div>
</div>
</div></blockquote><div><a moz-do-not-send="true" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></div>
<div>UNSUBSCRIBE:<a moz-do-not-send="true" href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a></div><blockquote type="cite"><blockquote type="cite"><div>
<div>
<div><a moz-do-not-send="true" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></div>
<div> </div>
<div> </div>
</div>
</div></blockquote></blockquote><div><br>
</div>
<div><br>
</div>
<div>_________________________________________________________________________</div>
<div>Professional FreeSWITCH Consulting
Services:</div>
<div><a moz-do-not-send="true" href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a></div>
<div><a moz-do-not-send="true" href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a></div>
<div><br>
</div>
<div>FreeSWITCH-powered IP PBX: The CudaTel
Communication Server</div>
<div><a moz-do-not-send="true" href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a></div>
<div><br>
</div>
<div>Official FreeSWITCH Sites</div>
<div><a moz-do-not-send="true" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></div>
<div><a moz-do-not-send="true" href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a></div>
<div><a moz-do-not-send="true" href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a></div>
<div><br>
</div>
<div>FreeSWITCH-users mailing list</div>
<div><a moz-do-not-send="true" href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a></div>
<div><a moz-do-not-send="true" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></div>
<div>UNSUBSCRIBE:<a moz-do-not-send="true" href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a></div>
<div><a moz-do-not-send="true" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></div>
</div>
</div>
</span> </div></blockquote><div> <br>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a moz-do-not-send="true" href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>
<a moz-do-not-send="true" href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a moz-do-not-send="true" href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a>
Official FreeSWITCH Sites
<a moz-do-not-send="true" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
<a moz-do-not-send="true" href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a>
<a moz-do-not-send="true" href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a moz-do-not-send="true" href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a moz-do-not-send="true" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a moz-do-not-send="true" href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a moz-do-not-send="true" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
</pre>
</div></blockquote><br>
</div>
</div>
</div>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a moz-do-not-send="true" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a moz-do-not-send="true" href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a moz-do-not-send="true" href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a moz-do-not-send="true" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a moz-do-not-send="true" href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a moz-do-not-send="true" href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a moz-do-not-send="true" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a moz-do-not-send="true" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a moz-do-not-send="true" href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a moz-do-not-send="true" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
</div></blockquote></div>
<br>
</div>
<br>
<fieldset></fieldset>
<br>
<pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a href="http://www.cudatel.com">http://www.cudatel.com</a>
Official FreeSWITCH Sites
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a>
<a href="http://www.cluecon.com">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
</div></blockquote>
Hi,<br>
<br>
so you say that I can not authenticate call via radius when is goes
for 302 redirect?<br>
<br>
Regards,<br>
Miha<br>
</div><div><div>_________________________________________________________________________</div><div>Professional FreeSWITCH Consulting Services:</div><div><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a></div><div><a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a></div><div><br></div><div>FreeSWITCH-powered IP PBX: The CudaTel Communication Server</div><div><a href="http://www.cudatel.com">http://www.cudatel.com</a></div><div><br></div><div>Official FreeSWITCH Sites</div><div><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></div><div><a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a></div><div><a href="http://www.cluecon.com">http://www.cluecon.com</a></div><div><br></div><div>FreeSWITCH-users mailing list</div><div><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a></div><div><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></div><div>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a></div><div><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></div></div></div></span>
</div></blockquote><div>
<br>
</div>