2
0

01_example.com.xml 1.4 KB

123456789101112131415161718192021222324252627282930
  1. <include>
  2. <extension name="local.example.com">
  3. <condition field="${toll_allow}" expression="local"/>
  4. <condition field="destination_number" expression="^(\d{7})$">
  5. <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/>
  6. <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/>
  7. <action application="bridge" data="sofia/gateway/${default_gateway}/1${default_areacode}$1"/>
  8. </condition>
  9. </extension>
  10. <extension name="domestic.example.com">
  11. <condition field="${toll_allow}" expression="domestic"/>
  12. <condition field="destination_number" expression="^(\d{11})$">
  13. <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/>
  14. <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/>
  15. <action application="bridge" data="sofia/gateway/${default_gateway}/$1"/>
  16. </condition>
  17. </extension>
  18. <extension name="international.example.com">
  19. <condition field="${toll_allow}" expression="international"/>
  20. <condition field="destination_number" expression="^(011\d+)$">
  21. <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/>
  22. <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/>
  23. <action application="bridge" data="sofia/gateway/${default_gateway}/$1"/>
  24. </condition>
  25. </extension>
  26. </include>