Advertisement
Guest User

Untitled

a guest
Sep 10th, 2020 (edited)
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.83 KB | None | 0 0
  1. <extension name="check seconds">
  2.     <condition field="destination_number" expression="^\+?(\d+)$" break="never">
  3.             <!-- <action application="log" data="CRIT ###REDIS REQ### ${sip_auth_username}_$1 ### ${hiredis_raw(default get ${sip_auth_username}_$1)}"/> -->
  4.             <action application="set" data="request_call_seconds=${hiredis_raw(default get ${sip_auth_username}_$1)}" />
  5.             <action application="set" data="api_result=${cond(${request_call_seconds} > 0 ? true : false)}" />
  6.             <action application="log" data="CRIT ###api_result### ${api_result}" />
  7.             <action application="log" data="CRIT ###request_call_seconds### ${request_call_seconds}" />
  8.             <action application="set" data="request_phone_dst=$1"/>
  9.             <action application="transfer" data="$1"/>
  10.     </condition>
  11. <extension>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement