123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255 |
- <!-- 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">
- <condition field="destination_number" expression="^9100$">
- <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"/>
- <action application="answer"/>
- <action application="rxfax" data="/tmp/${uuid}.tif"/>
- </condition>
- </extension>
- <extension name="txfax">
- <condition field="destination_number" expression="^9101$">
- <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"/>
- <action application="answer"/>
- <action application="txfax" data="/root/fax.tif"/>
- </condition>
- </extension>
- <!-- 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 -->
- <extension name="rxfax_t38">
- <condition field="destination_number" expression="^9102$">
- <!-- Uncomment for glare testing -->
- <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_image_resizing=true"/>
- <action application="set" data="fax_enable_t38=true"/>
- <action application="answer"/>
- <action application="txfax" data="/root/fax.tif"/>
- </condition>
- </extension>
- <!-- 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 -->
- <extension name="rxfax_t38_a">
- <condition field="destination_number" expression="^9104$">
- <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="^9105$">
- <action application="export" data="t38_passthru=true"/>
- <action application="bridge" data="{absolute_codec_string=PCMU}sofia/external/sip:9106@${local_ip_v4}:5080"/>
- </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="rxfax" data="/tmp/${uuid}.tif"/>
- </condition>
- </extension>
- <!-- 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">
- <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>
- <!-- 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>
- <!-- 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>
|