[Freeswitch-users] 302 redirect variable
Miha Zoubek
miha at softnet.si
Fri Mar 2 13:09:27 MSK 2012
Hi,
in my directory I set variable password (<variable name="password"
value="52166"/>) for every user.
After I am doing 302 redirect in my public dialplan and transfer call to
extension, I can not use varible pasword.
How can I get varible password, so that I can authenticate call.
public dialplan:
<anti-action application="log" data="INFO ################# CALL FORWARD
################\n"/>
<!-- <anti-action application="log" data=" INFO
sip_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"/>
<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" />
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120302/a05def75/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list