Fix. Export call direction to B-Leg. (#2895)

It is needed to use with b-leg filtering.
This commit is contained in:
Alexey Melnichuk
2017-10-26 19:33:35 +03:00
committed by FusionPBX
parent 03355ff9ff
commit 74355eee06
3 changed files with 3 additions and 3 deletions

View File

@@ -416,7 +416,7 @@
$array['dialplans'][$x]['dialplan_details'][$y]['domain_uuid'] = $_SESSION['domain_uuid'];
$array['dialplans'][$x]['dialplan_details'][$y]['dialplan_uuid'] = $dialplan_uuid;
$array['dialplans'][$x]['dialplan_details'][$y]['dialplan_detail_tag'] = 'action';
$array['dialplans'][$x]['dialplan_details'][$y]['dialplan_detail_type'] = 'set';
$array['dialplans'][$x]['dialplan_details'][$y]['dialplan_detail_type'] = 'export';
$array['dialplans'][$x]['dialplan_details'][$y]['dialplan_detail_data'] = 'call_direction=outbound';
$array['dialplans'][$x]['dialplan_details'][$y]['dialplan_detail_order'] = $y * 10;
$array['dialplans'][$x]['dialplan_details'][$y]['dialplan_detail_group'] = '0';

View File

@@ -835,7 +835,7 @@ include "root.php";
}
}
//add the call direction and domain name and uuid
$xml .= " <action application=\"set\" data=\"call_direction=inbound\" inline=\"true\"/>\n";
$xml .= " <action application=\"export\" data=\"call_direction=inbound\" inline=\"true\"/>\n";
if ($domain_uuid != null and $domain_uuid != '') {
$domain_name = $domains[$domain_uuid];
$xml .= " <action application=\"set\" data=\"domain_uuid=" . $domain_uuid . "\" inline=\"true\"/>\n";

View File

@@ -1,7 +1,7 @@
<context name="{v_context}">
<extension name="call-direction" number="" continue="true" app_uuid="3780f814-5543-4350-b65d-563512d1fe71" enabled="true">
<condition field="${call_direction}" expression="^(inbound|outbound|local)$" break="never">
<anti-action application="set" data="call_direction=local" inline="true"/>
<anti-action application="export" data="call_direction=local" inline="true"/>
</condition>
</extension>
</context>