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:
<extension name="huawei_csoft_gw_outbound_call_international">
<condition field="${int}" expression="1"/>
<condition field="destination_number" expression="^00[\d]{7,}?$">
<action application="set" data="effective_caller_id_number=280${caller_id_number}"/>
<action application="bridge" data="sofia/gateway/huawei_csoft/${destination_number}"/>
</condition>
</extension>
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.
i have used "execute_extension" in the following way:
<extension name="is_international_allowed">
<condition field="destination_number" expression="^iia$">
<action application="lua" data="get_user_profile.lua" />
</condition>
</extension>
<extension name="huawei_csoft_gw_outbound_call_international">
<condition field="destination_number" expression="^00[\d]{7,}?$">
<action application="execute_extension" data="iia XML smart_private"/> -->
</condition>
<condition field="${int}" expression="1"/>
<condition field="destination_number" expression="^00[\d]{7,}?$">
<action application="set" data="effective_caller_id_number=280${caller_id_number}"/>
<action application="bridge" data="sofia/gateway/huawei_csoft/${destination_number}"/>
</condition>
</extension>
i know this is simple but i m missing something here, i appreciate any ideas. thanks!!