000000.xml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <!-- Eavesdrop Test Rig -->
  2. <!-- Target Bridge To Spy On -->
  3. <extension name="party-a-to-party-b-bridge">
  4. <condition field="destination_number" expression="^bridge$">
  5. <action application="set" data="test_role=bridge_partya"/>
  6. <action application="set" data="eavesdrop_group=bridge"/>
  7. <action application="set" data="absolute_codec_string=${sip_h_X-Party-A-Codec}"/>
  8. <action application="bridge" data="{test_role=bridge_partyb,eavesdrop_group=bridge,absolute_codec_string=${sip_h_X-Party-B-Codec}}sofia/external/sip:partyb@${local_ip_v4}:5090"/>
  9. </condition>
  10. </extension>
  11. <!-- Eavesdrop Target App -->
  12. <extension name="eavesdrop-target">
  13. <condition field="destination_number" expression="^eavesdrop$">
  14. <action application="set" data="test_role=eavesdrop_target"/>
  15. <action application="set" data="eavesdrop_require_group=bridge"/>
  16. <action application="set" data="absolute_codec_string=${sip_h_X-Eavesdrop-Codec}"/>
  17. <action application="answer"/>
  18. <action application="eavesdrop" data="all"/>
  19. </condition>
  20. </extension>
  21. <!-- Target Party B -->
  22. <extension name="party-b-answer">
  23. <condition field="destination_number" expression="^partyb$">
  24. <action application="set" data="test_role=partyb"/>
  25. <action application="set" data="absolute_codec_string=${sip_h_X-Party-B-Codec}"/>
  26. <action application="answer"/>
  27. <action application="spandsp_start_dtmf"/>
  28. <action application="playback" data="silence_stream://-1"/>
  29. </condition>
  30. </extension>
  31. <!-- Source Party A -->
  32. <extension name="party-a-playback">
  33. <condition field="destination_number" expression="^partya$">
  34. <action application="set" data="test_role=partya"/>
  35. <action application="answer"/>
  36. <action application="spandsp_start_dtmf"/>
  37. <action application="playback" data="silence_stream://-1"/>
  38. </condition>
  39. </extension>
  40. <!-- Eavesdrop Party -->
  41. <extension name="eavesdroper">
  42. <condition field="destination_number" expression="^eavesdroper$">
  43. <action application="set" data="test_role=eavesdrop_source"/>
  44. <action application="answer"/>
  45. <action application="spandsp_start_dtmf"/>
  46. <action application="playback" data="silence_stream://-1"/>
  47. </condition>
  48. </extension>