mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-02-14 23:25:00 +00:00
Fix. Export call direction to B-Leg. (#2895)
It is needed to use with b-leg filtering.
This commit is contained in:
committed by
FusionPBX
parent
03355ff9ff
commit
74355eee06
@@ -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';
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user