mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-08 04:33:49 +00:00
In cluster installation first node search channel uuid and send it inside special SIP header. So other node can just use it and do not call Lua script again.
14 lines
670 B
XML
14 lines
670 B
XML
<context name="{v_context}">
|
|
<extension name="group-intercept" number="*8" continue="false" app_uuid="15332e83-12f5-44d3-8472-633736eb4b9b">
|
|
<condition field="destination_number" expression="^\*8$"/>
|
|
<!-- if it is call from another node then needed UUID already in sip header -->
|
|
<!-- So we can just do intercept without calling Lua script again on current node -->
|
|
<condition field="${sip_h_X-intercept_uuid}" expression="^(.+)$" break="on-true">
|
|
<action application="intercept" data="$1"/>
|
|
</condition>
|
|
<condition>
|
|
<action application="answer"/>
|
|
<action application="lua" data="intercept_group.lua"/>
|
|
</condition>
|
|
</extension>
|
|
</context> |