2017-01-04 16:32:47 +00:00
<!-- Refuse test cases requires FS - 9855 to be resolved -->
<!-- TEST01: Basic rx/tx fax test using T.30 -->
<!-- expand bgapi originate {absolute_codec_string=pcmu}sofia/external/9100@${local_ip_v4}:5080 9101 XML public -->
<extension name= "rxfax_txfax_test" >
2015-08-24 16:02:23 +00:00
<condition field= "destination_number" expression= "^9100$" >
2017-01-04 16:32:47 +00:00
<action application= "set" data= "fax_enable_image_resizing=true" />
<action application= "set" data= "fax_ident=rxfax_test_a" />
<action application= "set" data= "fax_header=rxfax_test_a_header" />
2015-08-24 16:02:23 +00:00
<action application= "answer" />
<action application= "rxfax" data= "/tmp/${uuid}.tif" />
</condition>
</extension>
<extension name= "txfax" >
<condition field= "destination_number" expression= "^9101$" >
2017-01-04 16:32:47 +00:00
<action application= "set" data= "fax_enable_image_resizing=true" />
<action application= "set" data= "fax_ident=txfax_test_b" />
<action application= "set" data= "fax_header=txfax_test_b_header" />
2015-08-24 16:02:23 +00:00
<action application= "answer" />
<action application= "txfax" data= "/root/fax.tif" />
</condition>
</extension>
2015-08-24 16:05:16 +00:00
2017-01-04 16:32:47 +00:00
<!-- TEST02: Basic rx/tx fax test using t.38 -->
<!-- expand bgapi originate {absolute_codec_string=pcmu}sofia/external/9102@${local_ip_v4}:5080 9103 XML public -->
2015-08-24 16:05:16 +00:00
<extension name= "rxfax_t38" >
<condition field= "destination_number" expression= "^9102$" >
2017-01-04 16:32:47 +00:00
<!-- Uncomment for glare testing -->
2017-01-12 17:56:38 +00:00
<action application= "set" data= "fax_enable_t38_request=true" />
2015-08-24 16:05:16 +00:00
<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$" >
2017-01-04 16:32:47 +00:00
<action application= "set" data= "fax_enable_image_resizing=true" />
2015-08-24 16:05:16 +00:00
<action application= "set" data= "fax_enable_t38=true" />
<action application= "answer" />
<action application= "txfax" data= "/root/fax.tif" />
</condition>
</extension>
2017-01-04 16:32:47 +00:00
<!-- TEST03: rx/tx fax test using t.38 passthru (4 - legs) -->
<!-- expand bgapi originate {absolute_codec_string=PCMU}sofia/external/9104@${local_ip_v4}:5080 9105 XML public -->
2015-08-24 20:18:16 +00:00
<extension name= "rxfax_t38_a" >
<condition field= "destination_number" expression= "^9104$" >
2017-01-04 16:32:47 +00:00
<action application= "set" data= "fax_enable_image_resizing=true" />
2015-08-24 20:18:16 +00:00
<action application= "set" data= "fax_enable_t38_request=true" />
<action application= "set" data= "fax_enable_t38=true" />
<action application= "answer" />
2017-01-04 16:32:47 +00:00
<action application= "txfax" data= "/root/fax.tif" />
2015-08-24 20:18:16 +00:00
</condition>
</extension>
<extension name= "t38_passthru" >
<condition field= "destination_number" expression= "^9105$" >
<action application= "export" data= "t38_passthru=true" />
2017-01-04 16:32:47 +00:00
<action application= "bridge" data= "{absolute_codec_string=PCMU}sofia/external/sip:9106@${local_ip_v4}:5080" />
2015-08-24 20:18:16 +00:00
</condition>
</extension>
<extension name= "txfax_t38_b" >
<condition field= "destination_number" expression= "^9106$" >
<action application= "set" data= "fax_enable_t38=true" />
<action application= "answer" />
2017-01-04 16:32:47 +00:00
<action application= "rxfax" data= "/tmp/${uuid}.tif" />
2015-08-24 20:18:16 +00:00
</condition>
</extension>
2017-01-04 16:32:47 +00:00
<!-- TEST04: t.30 to t.38 transcoding using t38_gateway (4 - legs) -->
<!-- expand bgapi originate {absolute_codec_string=pcmu}sofia/external/9107@${local_ip_v4}:5080 9108 XML public -->
<extension name= "rxfax_t30_a" >
2016-10-04 15:29:08 +00:00
<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>
2017-01-04 16:32:47 +00:00
<!-- TEST05: t.38 to t.30, t.30 middle bridge refuses the t.38 reinvite fax should be successful (4 - legs) -->
<!-- expand bgapi originate {absolute_codec_string=PCMU}sofia/external/9117@${local_ip_v4}:5080 9118 XML public -->
<extension name= "txfax_t38_a" >
<condition field= "destination_number" expression= "^9117$" >
<action application= "set" data= "fax_enable_image_resizing=true" />
<action application= "set" data= "fax_enable_t38_request=true" />
<action application= "set" data= "fax_enable_t38=true" />
<action application= "set" data= "fax_verbose=true" />
<action application= "answer" />
<action application= "txfax" data= "/root/fax.tif" />
</condition>
</extension>
<extension name= "t38_gateway" >
<condition field= "destination_number" expression= "^9118$" >
<action application= "bridge" data= "{fax_enable_t38=false,refuse_t38=true,absolute_codec_string=PCMU,execute_on_answer='t38_gateway peer'}sofia/external/sip:9119@${local_ip_v4}:5080" />
</condition>
</extension>
<extension name= "rxfax_t30_b_refuse" >
<condition field= "destination_number" expression= "^9119$" >
<action application= "set" data= "fax_verbose=true" />
<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>
<!-- TEST06: Refuse t.38 in both directions and keep the call using t.30 (4 - legs) -->
<!-- expand bgapi originate {absolute_codec_string=PCMU}sofia/external/9127@${local_ip_v4}:5080 9128 XML public -->
<extension name= "txfax_t38_refuse_a" >
<condition field= "destination_number" expression= "^9127$" >
<action application= "set" data= "fax_enable_image_resizing=true" />
<action application= "set" data= "fax_enable_t38_request=true" />
<action application= "set" data= "fax_enable_t38=true" />
<action application= "set" data= "fax_verbose=true" />
<action application= "answer" />
<action application= "txfax" data= "/root/fax.tif" />
</condition>
</extension>
<extension name= "t38_gateway" >
<condition field= "destination_number" expression= "^9128$" >
<action application= "set" data= "refuse_t38=true" />
<action application= "bridge" data= "{fax_enable_t38=false,refuse_t38=true,absolute_codec_string=PCMU}sofia/external/sip:9129@${local_ip_v4}:5080" />
</condition>
</extension>
<extension name= "rxfax_t30_b_refuse" >
<condition field= "destination_number" expression= "^9129$" >
<action application= "set" data= "fax_enable_t38_request=true" />
<action application= "set" data= "fax_enable_t38=true" />
<action application= "set" data= "fax_verbose=true" />
<action application= "answer" />
<action application= "rxfax" data= "/tmp/${uuid}.tif" />
</condition>
</extension>
<!-- TEST07: t.38 refuse on a, t.30 refuse on b, call stays t.30 (4 - legs) -->
<!-- expand bgapi originate {absolute_codec_string=PCMU}sofia/external/9137@${local_ip_v4}:5080 9138 XML public -->
<extension name= "txfax_t38_refuse_a" >
<condition field= "destination_number" expression= "^9137$" >
<action application= "set" data= "fax_enable_image_resizing=true" />
<action application= "set" data= "refuse_t38=true" />
<action application= "answer" />
<action application= "txfax" data= "/root/fax.tif" />
</condition>
</extension>
<extension name= "t30_bridge" >
<condition field= "destination_number" expression= "^9138$" >
<action application= "set_name" data= "txfax_t38_refuse_b" />
<action application= "set" data= "fax_enable_t38_request=true" />
<action application= "set" data= "fax_enable_t38=true" />
<action application= "set" data= "fax_verbose=true" />
<action application= "bridge" data= "{fax_enable_t38_request=true,fax_enable_t38=true,absolute_codec_string=PCMU}sofia/external/sip:9139@${local_ip_v4}:5080" />
</condition>
</extension>
<extension name= "rxfax_t30_b_refuse" >
<condition field= "destination_number" expression= "^9139$" >
<action application= "set_name" data= "txfax_t38_refuse_d" />
<action application= "set" data= "refuse_t38=true" />
<action application= "answer" />
<action application= "rxfax" data= "/tmp/${uuid}.tif" />
</condition>
</extension>
<!-- TEST08: t.38 via passthru with refuse, call stays t.30 (4 - legs) -->
<!-- expand bgapi originate {absolute_codec_string=PCMU}sofia/external/9144@${local_ip_v4}:5080 9145 XML public -->
<extension name= "rxfax_t38_a" >
<condition field= "destination_number" expression= "^9144$" >
<action application= "set" data= "fax_enable_image_resizing=true" />
<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>
<extension name= "t38_passthru" >
<condition field= "destination_number" expression= "^9145$" >
<action application= "export" data= "t38_passthru=true" />
<action application= "bridge" data= "{absolute_codec_string=PCMU}sofia/external/sip:9146@${local_ip_v4}:5080" />
</condition>
</extension>
<extension name= "rxfax_t30_b_refuse" >
<condition field= "destination_number" expression= "^9146$" >
<action application= "set" data= "refuse_t38=true" />
<action application= "answer" />
<action application= "rxfax" data= "/tmp/${uuid}.tif" />
</condition>
</extension>
<!-- TEST09: Colour faxing with t.38 passthru, t.38 end to end (4 - legs) -->
<!-- gs - q - sDEVICE=tiff24nc - r204x98 - dBATCH - dPDFFitPage - dNOPAUSE - sOutputFile=colour.tif colour.pdf -->
<!-- expand bgapi originate {fax_enable_image_resizing=true,fax_enable_colour=true,absolute_codec_string=PCMU}sofia/external/9154@${local_ip_v4}:5080 9155 XML public -->
<extension name= "txfax_t38_a" >
<condition field= "destination_number" expression= "^9154$" >
<action application= "set" data= "fax_enable_image_resizing=true" />
<action application= "set" data= "fax_enable_colour=true" />
<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/colour.tif" />
</condition>
</extension>
<extension name= "t38_passthru" >
<condition field= "destination_number" expression= "^9155$" >
<action application= "export" data= "t38_passthru=true" />
<action application= "bridge" data= "{absolute_codec_string=PCMU}sofia/external/sip:9156@${local_ip_v4}:5080" />
</condition>
</extension>
<extension name= "rxfax_t38_b" >
<condition field= "destination_number" expression= "^9156$" >
<action application= "set" data= "fax_enable_t38=true" />
<action application= "set" data= "fax_enable_colour=true" />
<action application= "answer" />
<action application= "rxfax" data= "/tmp/colour-${uuid}.tif" />
</condition>
</extension>
2016-10-04 15:29:08 +00:00
2017-01-12 17:56:38 +00:00
<!-- TEST10: (FS - 9943) Basic rx/tx fax test to validate the default handling without t38 enabled an falling back to t.30 -->
<!-- expand bgapi originate {absolute_codec_string=pcmu}sofia/external/9160@${local_ip_v4}:5080 9161 XML public -->
<extension name= "rxfax_txfax_test" >
<condition field= "destination_number" expression= "^9160$" >
<action application= "answer" />
<action application= "rxfax" data= "/tmp/${uuid}.tif" />
</condition>
</extension>
<extension name= "txfax" >
<condition field= "destination_number" expression= "^9161$" >
<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>