SHARE
TWEET

Untitled

a guest Sep 8th, 2015 37 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     <condition field="destination_number" expression="^(\+\d{3,20})$">
  2.       <action application="set" data="dialed_number=$1" inline="true"/>
  3.       <action application="export" data="dialed_number=$1" inline="true"/>
  4.     </condition>
  5.     <condition field="destination_number" expression="^(\d{3,20})$">
  6.       <action application="set" data="dialed_number=${country_code}$1" inline="true"/>
  7.       <action application="export" data="dialed_number=${country_code}$1" inline="true"/>
  8.     </condition>
  9.     <condition field="${dialed_number}" IF-USER-EXISTS>
  10.       <action application="set" data="call_timeout=20"/>
  11.       <action application="set" data="hangup_after_bridge=true"/>
  12.       <action application="set" data="continue_on_fail=true"/>
  13.       <action application="bridge" data="user/${dialed_number}@${domain_name}"/>
  14.       <action application="answer"/>
  15.       <action application="sleep" data="1000"/>
  16.       <action application="bridge" data="loopback/app=voicemail:default ${domain_name} ${dialed_number}"/>
  17.     </condition>  
  18.     <condition field="${dialed_number}" IF-USER-DO-NOT-EXISTS>
  19.       <action application="set" data="effective_caller_id_number=${effective_caller_id_number}"/>
  20.       <action application="set" data="effective_caller_id_name=${effective_caller_id_number}"/>
  21.       <action application="bridge" data="sofia/gateway/pstn-outbound/${dialed_number}"/>
  22.     </condition>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top