<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><font face="Calibri, sans-serif" size="3">Guys, i have a script the sets some variables the i m supposed to use to decide if a condition meets, i have tried to use the execute_extension app but it does not work, this is the dialplan:</font><div style="font-family: Calibri, sans-serif; font-size: 12pt; "><br></div><div style="font-family: Calibri, sans-serif; font-size: 12pt; "><br></div><div style="font-family: Calibri, sans-serif; font-size: 12pt; "><div><extension name="huawei_csoft_gw_outbound_call_international"></div><div> <span style="font-size: 12pt; "><condition field="${int}" expression="1"/></span></div><div> <condition field="destination_number" expression="^00[\d]{7,}?$"></div><div> <action application="set" data="effective_caller_id_number=280${caller_id_number}"/></div><div> <action application="bridge" data="sofia/gateway/huawei_csoft/${destination_number}"/></div><div> </condition></div><div> </extension></div></div><div style="font-family: Calibri, sans-serif; font-size: 12pt; "><br></div><div style="font-family: Calibri, sans-serif; font-size: 12pt; ">the script that sets the var ${int} is called "get_user_profile.lua", i have placed it all over the place and cant make this work.</div><div style="font-family: Calibri, sans-serif; font-size: 12pt; ">i have used "execute_extension" in the following way:</div><div style="font-family: Calibri, sans-serif; font-size: 12pt; "><br></div><div><div><font face="Calibri, sans-serif"><extension name="is_international_allowed"></font></div><div><font face="Calibri, sans-serif"> <condition field="destination_number" expression="^iia$"></font></div><div><font face="Calibri, sans-serif"> <action application="lua" data="get_user_profile.lua" /> </font></div><div><font face="Calibri, sans-serif"> </condition></font></div><div><font face="Calibri, sans-serif"> </extension></font></div><div><br></div><div><font face="Calibri, sans-serif"> <extension name="huawei_csoft_gw_outbound_call_international"></font></div><div><font face="Calibri, sans-serif"> </font><span style="font-family: Calibri, sans-serif; "> <condition field="destination_number" expression="^00[\d]{7,}?$"></span></div><div><font face="Calibri, sans-serif"> <action application="execute_extension" data="iia XML smart_private"/> --></font></div><div><font face="Calibri, sans-serif"> </font><span style="font-family: Calibri, sans-serif; "></condition></span></div><div><font face="Calibri, sans-serif"> <condition field="${int}" expression="1"/></font></div><div><font face="Calibri, sans-serif"> <condition field="destination_number" expression="^00[\d]{7,}?$"></font></div><div><font face="Calibri, sans-serif"> <action application="set" data="effective_caller_id_number=280${caller_id_number}"/></font></div><div><font face="Calibri, sans-serif"> <action application="bridge" data="sofia/gateway/huawei_csoft/${destination_number}"/></font></div><div><font face="Calibri, sans-serif"> </condition></font></div><div><font face="Calibri, sans-serif"> </extension></font></div></div><div><font face="Calibri, sans-serif"><br></font></div><div><font face="Calibri, sans-serif">i know this is simple but i m missing something here, i appreciate any ideas. thanks!!</font></div><div><font face="Calibri, sans-serif"><br></font></div>                                            </div></body>
</html>