dp.xml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <include>
  2. <extension name="h" continue="true">
  3. <condition field="destination_number" expression="^h264_(.*)$" break="never">
  4. <action application="set" data="absolute_codec_string=opus,pcmu,h264"/>
  5. <action application="transfer" data="$1"/>
  6. </condition>
  7. </extension>
  8. <extension name="v" continue="true">
  9. <condition field="destination_number" expression="^vp8_(.*)$" break="never">
  10. <action application="set" data="absolute_codec_string=opus,pcmu,vp8"/>
  11. <action application="transfer" data="$1"/>
  12. </condition>
  13. </extension>
  14. <extension name="h" continue="true">
  15. <condition field="destination_number" expression="^hbr_(.*)$" break="never">
  16. <action application="export" data="nolocal:absolute_codec_string=opus,pcmu,h264"/>
  17. <action application="transfer" data="$1"/>
  18. </condition>
  19. </extension>
  20. <extension name="v" continue="true">
  21. <condition field="destination_number" expression="^vbr_(.*)$" break="never">
  22. <action application="export" data="nolocal:absolute_codec_string=opus,pcmu,vp8"/>
  23. <action application="transfer" data="$1"/>
  24. </condition>
  25. </extension>
  26. <extension name="bug">
  27. <condition field="destination_number" expression="^vbr_(.*)$">
  28. <action application="set" data="absolute_codec_string=pcmu,vp8"/>
  29. <action application="answer"/>
  30. <action application="bridge" data="vlc//var/www/vid/$1" />
  31. </condition>
  32. </extension>
  33. <extension name="bug">
  34. <condition field="destination_number" expression="^vid_(.*)$">
  35. <action application="answer"/>
  36. <action application="play_video" data="/var/www/vid/$1" />
  37. </condition>
  38. </extension>
  39. <extension name="bug">
  40. <condition field="destination_number" expression="^decode$|^9952$">
  41. <action application="answer"/>
  42. <action application="set" data="hold_music=silence_stream://-1"/>
  43. <action application="decode_video"/>
  44. </condition>
  45. </extension>
  46. </include>