From davidcsi, 7 Years ago, written in XML.
- go back
Embed
Viewing differences between and Untitled
  1. <extension name="local_call2">
  2.         <condition field="destination_number" expression="^(9.*)$"/>
  3.         <condition field="${cond(${rand_val} > 4 ? YES : NO)}" expression="^YES$">
  4.                 <action application="log" data="ERR I AM IN THE BUSY SHIT"/>
  5.                 <action application="set" data="continue_on_fail=true"/>
  6.                 <action application="ring_ready"/>
  7.                 <action application="sleep" data="3000"/>
  8.                 <action application="hangup" data="USER_BUSY"/>
  9.  
  10.                 <anti-action application="log" data="ERR I AM IN THE ANSWER SHIT"/>
  11.                 <anti-action application="set" data="continue_on_fail=true"/>
  12.                 <anti-action application="ring_ready"/>
  13.                 <anti-action application="sleep" data="3000"/>
  14.                 <anti-action application="sched_hangup" data="+15 allotted_timeout"/>
  15.                 <anti-action application="answer"/>
  16.                 <acti-action application="callcenter" data="support@default"/>
  17.                 <anti-action application="hangup"/>
  18.             </condition>
  19. </extension>