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&#39;t need password.</div>
<div><br></div><div>BR Grega</div><div><div id="WISESTAMP_SIG_8136"><div style="font-size:13.3px;font-family:Verdana,Arial,Helvetica,sans-serif"><img src="https://wisestamp.appspot.com/pixel.png?p=chrome&amp;v=3.11.16.0&amp;t=1330936168561&amp;u=2cae5e430c4ca423" width="1" height="1"></div>
</div><br><br><div class="gmail_quote">2012/3/5 Miha Zoubek <span dir="ltr">&lt;<a href="mailto:miha@softnet.si">miha@softnet.si</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

  
    
  
  <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>&lt;include&gt;<div class="im"><br>
      <br>
      <br>
      &lt;extension name=&quot;check_auth&quot; continue=&quot;true&quot;&gt;<br>
        &lt;condition field=&quot;${sip_authorized}&quot; expression=&quot;^true$&quot;
      break=&quot;never&quot;&gt;<br>
          &lt;anti-action application=&quot;respond&quot; data=&quot;407&quot;/&gt;<br>
        &lt;/condition&gt;<br>
      &lt;/extension&gt;<br>
      <br>
      <br>
      <br></div>
        &lt;extension name=&quot;trunk_sbc_1&quot;&gt;<br>
      <br>
      <br>
      &lt;!-- &lt;condition field=&quot;${user_exists(id
      ${destination_number}.fs_kabelvoip1
      <a href="http://fs_kabelvoip1.fs1.softnet.si" target="_blank">fs_kabelvoip1.fs1.softnet.si</a>)}&quot; expression=&quot;true&quot;&gt;--&gt;<br>
      &lt;condition field=&quot;${user_exists(id
      ${destination_number}.fs_kabelvoip1
      <a href="http://fs_kabelvoip1.fs1.softnet.si" target="_blank">fs_kabelvoip1.fs1.softnet.si</a>)}&quot; expression=&quot;true&quot;&gt;<br>
      &lt;!-- &lt;condition field=&quot;destination_number&quot;
      expression=&quot;$&quot;&gt; --&gt;<br>
      &lt;action application=&quot;log&quot; /&gt; <br>
      <br>
      &lt;action application=&quot;set&quot;
      data=&quot;domain_name=<a href="http://fs_kabelvoip1.fs1.softnet.si" target="_blank">fs_kabelvoip1.fs1.softnet.si</a>&quot;/&gt;<br>
      &lt;action application=&quot;set&quot;
      data=&quot;domain=<a href="http://fs_kabelvoip1.fs1.softnet.si" target="_blank">fs_kabelvoip1.fs1.softnet.si</a>&quot;/&gt;<br>
             &lt;action application=&quot;export&quot;
      data=&quot;destination_number&quot;=$1&quot;/&gt;<br>
      &lt;!--  &lt;action application=&quot;transfer&quot; data=&quot;1000 XML
      default&quot;/&gt; --&gt;<div class="im"><br>
      &lt;action application=&quot;set&quot; data=&quot;process_cdr=false&quot;/&gt;<br></div>
       &lt;action application=&quot;set&quot; data=&quot;domain_name=$${domain}&quot;/&gt;<br>
       &lt;action application=&quot;info&quot;/&gt; <br>
          &lt;action application=&quot;bridge&quot;
      data=&quot;sofia/internal/${destination_number}.fs_kabelvoip1%<a href="http://fs_kabelvoip1.fs1.softnet.si" target="_blank">fs_kabelvoip1.fs1.softnet.si</a>&quot;/&gt;
      <br>
            &lt;!-- This example maps the DID 5551212 to ring 1000 in
      the default context --&gt;<div class="im"><br>
      <br>
      <br>
      &lt;anti-action application=&quot;log&quot; data=&quot;INFO #################
      CALL FORWARD ################\n&quot;/&gt;<br>
      &lt;!-- &lt;anti-action application=&quot;log&quot; data=&quot; INFO
      sip_redirect_contact_={ip_redirect_contact_}&quot; /&gt; --&gt;<br>
      &lt;!-- &lt;anti-action application=&quot;set&quot;
      data=&quot;sip_redirect_contex=default&quot; /&gt;   --&gt;<br>
      &lt;anti-action application=&quot;info&quot;/&gt;<br>
       &lt;anti-action application=&quot;set&quot; data=&quot;process_cdr=false&quot;/&gt; <br></div>
       &lt;anti-action application=&quot;execute_extension&quot;
      data=&quot;{origination_callee_id_name=&#39;${sip_req_user}&#39;}IZVEDI_PREUSMERITEV
      XML default&quot;/&gt; <br>
      <br>
      <br>
      <br>
       &lt;/condition&gt;<br>
        &lt;/extension&gt;<br>
      &lt;/include&gt;<br>
    </small><br>
    <br>
    I have also add log to pastebin:
    
    <a href="http://pastebin.freeswitch.org/18575" target="_blank">http://pastebin.freeswitch.org/18575</a><br>
    <br>
    Thanks!<span class="HOEnZb"><font color="#888888"><br>
    Miha</font></span><div><div class="h5"><br>
    <br>
    On 03/04/2012 09:31 PM, Joćo Mesquita wrote:
    <blockquote type="cite">
      <div style="font-family:&#39;Courier New&#39;;font-size:13px">Yes<br>
      </div>
      <div>
        <div><br>
        </div>
        <div>-- </div>
        <div>Joćo Mesquita</div>
        <div>Sent with <a 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" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px">
        <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 &lt;<a href="mailto:jmesquita@freeswitch.org" target="_blank">jmesquita@freeswitch.org</a>&gt;
                wrote:</div>
              <blockquote type="cite">
                <div>
                  <div>You won&#39;t get the user&#39;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>&lt;extension name=&quot;check_auth&quot;
                    continue=&quot;true&quot;&gt;</div>
                  <div> &lt;condition field=&quot;${sip_authorized}&quot;</div>
                  <div>expression=&quot;^true$&quot; break=&quot;never&quot;&gt;</div>
                  <div> &lt;anti-action application=&quot;respond&quot;
                    data=&quot;407&quot;/&gt;</div>
                  <div> &lt;/condition&gt;</div>
                  <div>&lt;/extension&gt;</div>
                  <div>&lt;extension name=&quot;transfer_to_default&quot;&gt;</div>
                  <div> &lt;condition&gt;</div>
                  <div> &lt;action application=&quot;transfer&quot;</div>
                  <div>data=&quot;${destination_number} XML default&quot;/&gt;</div>
                  <div> &lt;/condition&gt;</div>
                  <div>&lt;/extension&gt;</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 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>Hi,</div>
                      <div> </div>
                      <div>in my directory I set variable password
                        (&lt;variable</div>
                    </div>
                  </blockquote>
                  <div>name=&quot;password&quot; value=&quot;52166&quot;/&gt;) for every
                    user.</div>
                  <blockquote type="cite">
                    <div>
                      <div> </div>
                      <div>After I am doing 302 redirect in my public
                        dialplan and</div>
                    </div>
                  </blockquote>
                  <div>transfer call to extension, I can not use varible</div>
                  <div>pasword.</div>
                  <blockquote type="cite">
                    <div>How can I get varible password, so that I can</div>
                  </blockquote>
                  <div>authenticate call.</div>
                  <blockquote type="cite">
                    <div>
                      <div> </div>
                      <div>public dialplan:</div>
                      <div> </div>
                      <div>&lt;anti-action application=&quot;log&quot; data=&quot;INFO</div>
                    </div>
                  </blockquote>
                  <div>################# CALL FORWARD
                    ################\n&quot;/&gt;</div>
                  <blockquote type="cite">
                    <div>&lt;!-- &lt;anti-action application=&quot;log&quot;
                      data=&quot; INFO</div>
                  </blockquote>
                  <div>sip_redirect_contact_={ip_redirect_contact_}&quot;
                    /&gt; --&gt;</div>
                  <blockquote type="cite">
                    <div>&lt;!-- &lt;anti-action application=&quot;set&quot;</div>
                  </blockquote>
                  <div>data=&quot;sip_redirect_contex=default&quot; /&gt; --&gt;</div>
                  <blockquote type="cite">
                    <div>
                      <div>&lt;anti-action application=&quot;info&quot;/&gt;</div>
                      <div> &lt;anti-action application=&quot;set&quot;</div>
                    </div>
                  </blockquote>
                  <div>data=&quot;process_cdr=false&quot;/&gt;</div>
                  <blockquote type="cite">
                    <div> &lt;anti-action
                      application=&quot;execute_extension&quot;</div>
                  </blockquote>
                  <div>data=&quot;IZVEDI_PREUSMERITEV XML default&quot;/&gt; </div>
                  <blockquote type="cite">
                    <div>
                      <div> </div>
                      <div>default dialplan:</div>
                      <div> </div>
                      <div>&lt;condition field=&quot;destination_number&quot;</div>
                    </div>
                  </blockquote>
                  <div>expression=&quot;IZVEDI_PREUSMERITEV&quot; /&gt;</div>
                  <blockquote type="cite">
                    <div>&lt;condition
                      field=&quot;${sip_redirect_contact_user_0}&quot;</div>
                  </blockquote>
                  <div>expression=&quot;^0(\d+)$&quot; &gt;</div>
                  <blockquote type="cite">
                    <div>
                      <div>&lt;action application=&quot;set&quot;
                        data=&quot;process_cdr=true&quot;/&gt;</div>
                      <div> &lt;action inline=&quot;true&quot; application=&quot;set&quot;</div>
                    </div>
                  </blockquote>
                  <div>data=&quot;CALLINGNUMBER=${sip_redirect_contact_user_0}&quot;/&gt;</div>
                  <blockquote type="cite">
                    <div> &lt;action inline=&quot;true&quot; application=&quot;set&quot;</div>
                  </blockquote>
                  <div>data=&quot;USERNAME=${sip_req_user}&quot;/&gt;</div>
                  <blockquote type="cite">
                    <div>
                      <div> </div>
                      <div> </div>
                      <div> </div>
                      <div> </div>
                      <div>&lt;action application=&quot;info&quot;/&gt;</div>
                      <div> </div>
                      <div>&lt;action application=&quot;set&quot;</div>
                    </div>
                  </blockquote>
                  <div>data=&quot;effective_caller_id_name=${sip_req_user}&quot;/&gt;</div>
                  <blockquote type="cite">
                    <div>&lt;action application=&quot;set&quot;</div>
                  </blockquote>
                  <div>data=&quot;origination_caller_id_name=${sip_req_user}
                    &quot;/&gt;</div>
                  <blockquote type="cite">
                    <div>
                      <div> </div>
                      <div> </div>
                      <div> &lt;action inline=&quot;true&quot; application=&quot;set&quot;</div>
                    </div>
                  </blockquote>
                  <div>data=&quot;PASSWD=${password}&quot;/&gt;</div>
                  <blockquote type="cite">
                    <div> &lt;action application=&quot;execute_extension&quot;</div>
                  </blockquote>
                  <div>data=&quot;RADIUS_ANI_AUTH XML default&quot;/&gt;</div>
                  <blockquote type="cite">
                    <div> &lt;action application=&quot;enum&quot;</div>
                  </blockquote>
                  <div>data=&quot;386${sip_redirect_contact_user_0:1}</div>
                  <div><a href="http://enumsbc.softnet.si" target="_blank">enumsbc.softnet.si</a> (<a href="http://enumsbc.softnet.si" target="_blank">http://enumsbc.softnet.si</a>)&quot;/&gt;</div>
                  <blockquote type="cite">
                    <div>
                      <div> </div>
                      <div>&lt;action application=&quot;bridge&quot;</div>
                    </div>
                  </blockquote>
                </div>
              </blockquote>
              <div>data=&quot;{origination_callee_id_name=&#39;${effective_caller_id_name}&#39;}${enum_auto_route}&quot;/&gt;</div>
              <blockquote type="cite">
                <blockquote type="cite">
                  <div>
                    <div> </div>
                    <div> </div>
                    <div>&lt;action application=&quot;info&quot;/&gt;</div>
                    <div>&lt;action application=&quot;bridge&quot;</div>
                  </div>
                </blockquote>
              </blockquote>
              <div>data=&quot;sofia/external/386${sip_redirect_contact_user_0:1}@<a href="http://xxx.xxx.xxx.xxx" target="_blank">xxx.xxx.xxx.xxx</a>&quot;</div>
              <div>(<a 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>/&gt;</div>
                  <blockquote type="cite">
                    <div> </div>
                  </blockquote>
                </div>
              </blockquote>
              <div>_________________________________________________________________________</div>
              <blockquote type="cite">
                <div>
                  <blockquote type="cite">
                    <div>
                      <div>Professional FreeSWITCH Consulting Services:</div>
                      <div><a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a></div>
                    </div>
                  </blockquote>
                  <div>(<a href="mailto:consulting@freeswitch.org" target="_blank">mailto:consulting@freeswitch.org</a>)</div>
                  <blockquote type="cite">
                    <div>
                      <div><a 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>
                  </blockquote>
                  <div>Server</div>
                  <blockquote type="cite">
                    <div>
                      <div><a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a></div>
                      <div> </div>
                      <div>Official FreeSWITCH Sites</div>
                      <div><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></div>
                      <div><a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a></div>
                      <div><a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a></div>
                      <div> </div>
                      <div>FreeSWITCH-users mailing list</div>
                      <div><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a></div>
                    </div>
                  </blockquote>
                  <div>(<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">mailto:FreeSWITCH-users@lists.freeswitch.org</a>)</div>
                </div>
              </blockquote>
              <div><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></div>
              <div>UNSUBSCRIBE:<a 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><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></div>
                    <div> </div>
                    <div> </div>
                  </div>
                </blockquote>
              </blockquote>
              <div><br>
              </div>
              <div><br>
              </div>
              <div>_________________________________________________________________________</div>
              <div>Professional FreeSWITCH Consulting Services:</div>
              <div><a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a></div>
              <div><a 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 href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a></div>
              <div><br>
              </div>
              <div>Official FreeSWITCH Sites</div>
              <div><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></div>
              <div><a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a></div>
              <div><a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a></div>
              <div><br>
              </div>
              <div>FreeSWITCH-users mailing list</div>
              <div><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a></div>
              <div><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></div>
              <div>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a></div>
              <div><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></div>
            </div>
          </div>
        </span> </blockquote>
      <div> <br>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a>

Official FreeSWITCH Sites
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
</pre>
    </blockquote>
    <br>
  </div></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>