freeswitch/conf/testing/dialplan/default/0026_fax.xml

82 lines
3.1 KiB
XML
Raw Normal View History

2015-08-24 20:18:16 +00:00
<!-- expand bgapi originate {absolute_codec_string=pcmu}sofia/external/9100@${local_ip_v4}:5090 9101 -->
2015-08-24 16:02:23 +00:00
<extension name="rxfax">
<condition field="destination_number" expression="^9100$">
<action application="answer"/>
<action application="rxfax" data="/tmp/${uuid}.tif"/>
</condition>
</extension>
<extension name="txfax">
<condition field="destination_number" expression="^9101$">
<action application="answer"/>
<action application="txfax" data="/root/fax.tif"/>
</condition>
</extension>
2015-08-24 16:05:16 +00:00
2015-08-24 20:18:16 +00:00
<!-- expand bgapi originate {absolute_codec_string=pcmu}sofia/external/9102@${local_ip_v4}:5090 9103 -->
2015-08-24 16:05:16 +00:00
<extension name="rxfax_t38">
<condition field="destination_number" expression="^9102$">
<action application="set" data="fax_enable_t38_request=true"/>
<action application="set" data="fax_enable_t38=true"/>
<action application="answer"/>
<action application="rxfax" data="/tmp/${uuid}.tif"/>
</condition>
</extension>
<extension name="txfax_t38">
<condition field="destination_number" expression="^9103$">
<action application="set" data="fax_enable_t38=true"/>
<action application="answer"/>
<action application="txfax" data="/root/fax.tif"/>
</condition>
</extension>
2015-08-24 20:18:16 +00:00
<!-- expand bgapi originate {absolute_codec_string=pcmu}sofia/external/9104@${local_ip_v4}:5090 9105 -->
<extension name="rxfax_t38_a">
<condition field="destination_number" expression="^9104$">
<action application="set" data="fax_enable_t38_request=true"/>
<action application="set" data="fax_enable_t38=true"/>
<action application="answer"/>
<action application="rxfax" data="/tmp/${uuid}.tif"/>
</condition>
</extension>
<extension name="t38_passthru">
<condition field="destination_number" expression="^9105$">
<action application="export" data="t38_passthru=true"/>
<action application="bridge" data="{absolute_codec_string=PCMU}sofia/external/sip:9106@${local_ip_v4}:5090"/>
</condition>
</extension>
<extension name="txfax_t38_b">
<condition field="destination_number" expression="^9106$">
<action application="set" data="fax_enable_t38=true"/>
<action application="answer"/>
<action application="txfax" data="/root/fax.tif"/>
</condition>
</extension>
2016-10-04 15:29:08 +00:00
<!-- expand bgapi originate {absolute_codec_string=pcmu}sofia/external/9107@${local_ip_v4}:5080 9108 -->
<extension name="rxfax_t38_a">
<condition field="destination_number" expression="^9107$">
<action application="answer"/>
<action application="rxfax" data="/tmp/${uuid}.tif"/>
</condition>
</extension>
<extension name="t38_gateway">
<condition field="destination_number" expression="^9108$">
<action application="bridge" data="{sip_execute_on_image='t38_gateway self nocng',absolute_codec_string=PCMU}sofia/external/sip:9109@${local_ip_v4}:5080"/>
</condition>
</extension>
<extension name="txfax_t38_b">
<condition field="destination_number" expression="^9109$">
<action application="set" data="fax_enable_t38_request=true"/>
<action application="set" data="fax_enable_t38=true"/>
<action application="answer"/>
<action application="txfax" data="/root/fax.tif"/>
</condition>
</extension>