Advertisement
Guest User

Tasker example for handling incoming diverted calls

a guest
Nov 18th, 2015
832
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.81 KB | None | 0 0
  1. <TaskerData sr="" dvi="1" tv="4.7u3m">
  2.     <Profile sr="prof60" ve="2">
  3.         <cdate>1447629648869</cdate>
  4.         <edate>1447858089914</edate>
  5.         <id>60</id>
  6.         <limit>true</limit>
  7.         <mid0>61</mid0>
  8.         <nme>Diverted call example</nme>
  9.         <Event sr="con0" ve="2">
  10.             <code>599</code>
  11.             <Str sr="arg0" ve="3">ch.masshardt.divertedcall.STATE_CHANGED</Str>
  12.             <Int sr="arg1" val="0"/>
  13.             <Int sr="arg2" val="0"/>
  14.             <Str sr="arg3" ve="3"/>
  15.             <Str sr="arg4" ve="3"/>
  16.         </Event>
  17.     </Profile>
  18.     <Task sr="task61">
  19.         <cdate>1447629651591</cdate>
  20.         <edate>1447856512666</edate>
  21.         <id>61</id>
  22.         <Action sr="act0" ve="7">
  23.             <code>37</code>
  24.             <ConditionList sr="if">
  25.                 <bool0>And</bool0>
  26.                 <Condition sr="c0" ve="3">
  27.                     <lhs>%state</lhs>
  28.                     <op>0</op>
  29.                     <rhs>RINGING</rhs>
  30.                 </Condition>
  31.                 <Condition sr="c1" ve="3">
  32.                     <lhs>%contact_name</lhs>
  33.                     <op>0</op>
  34.                     <rhs>NO_CONTACT_FOUND</rhs>
  35.                 </Condition>
  36.             </ConditionList>
  37.         </Action>
  38.         <Action sr="act1" ve="7">
  39.             <code>130</code>
  40.             <Str sr="arg0" ve="3">TaskDivertedCallIncoming</Str>
  41.             <Int sr="arg1">
  42.                 <var>%priority</var>
  43.             </Int>
  44.             <Str sr="arg2" ve="3"/>
  45.             <Str sr="arg3" ve="3"/>
  46.             <Str sr="arg4" ve="3"/>
  47.             <Int sr="arg5" val="0"/>
  48.         </Action>
  49.         <Action sr="act2" ve="7">
  50.             <code>43</code>
  51.             <ConditionList sr="if">
  52.                 <Condition sr="c0" ve="3">
  53.                     <lhs>%state</lhs>
  54.                     <op>0</op>
  55.                     <rhs>IDLE</rhs>
  56.                 </Condition>
  57.             </ConditionList>
  58.         </Action>
  59.         <Action sr="act3" ve="7">
  60.             <code>130</code>
  61.             <Str sr="arg0" ve="3">TaskDivertedCallEnded</Str>
  62.             <Int sr="arg1">
  63.                 <var>%priority</var>
  64.             </Int>
  65.             <Str sr="arg2" ve="3"/>
  66.             <Str sr="arg3" ve="3"/>
  67.             <Str sr="arg4" ve="3"/>
  68.             <Int sr="arg5" val="0"/>
  69.         </Action>
  70.         <Action sr="act4" ve="7">
  71.             <code>38</code>
  72.         </Action>
  73.     </Task>
  74. </TaskerData>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement