On Oct 9, 4:43 am, Pent <
supp...@apps.dinglisch.net> wrote:
>
> See Call Revert.
OK, that worked to clear it. Now I'm working on getting the task to
work using variable split. I'm operating on the assumption I'll have
to put a # before the extensions. I can get it to work intermittently.
I can't tell if it's the comma pause bug, or if the phone simply dials
faster than Tasker can process the task actions. I set the task to
highest priority and clear the variables at the top of the loop.
For debugging I created a flash action that displays the values of the
split variables. My test is dialing #45444 without any leading
numbers. Sometimes I get conum1 = blank and conum2 = 45444, other
times it displays conum2 as %conum2. I infer the variable is not set,
in that case, and tasker is displaying the name as a string. If
someone can recommend a change, I'd appreciate it.
I'd really like to trigger the event for where phone offhood and the
length of %conum = 5. All other numbers don't get diverted. Other than
me writing a loop to count the characters using variable set, etc. (if
even possible), is there a means of knowing how long a string is?
Thanks.
XML and logs below.
<class cl="TaskerData" sr="">
<class cl="Profile" sr="prof10">
<nme>Divert Work Extension</nme>
<id>9999</id>
<pri>10</pri>
<mid0>11</mid0>
<cdate>1318295737956</cdate>
<class cl="EventContext" sr="con0">
<code>2</code>
</class>
</class>
<class cl="Task" sr="task11">
<id>11</id>
<class cl="Action" sr="act1">
<class cl="IntArg" sr="arg1">
</class>
<op>9</op>
<class cl="StringArg" sr="arg0" ve="3">
<val>%CONUM2</val>
</class>
<rhs></rhs>
<code>549</code>
<lhs>%CONUM2</lhs>
</class>
<pri>10</pri>
<class cl="Action" sr="act0">
<class cl="IntArg" sr="arg1">
</class>
<op>9</op>
<class cl="StringArg" sr="arg0" ve="3">
<val>%CONUM1</val>
</class>
<rhs></rhs>
<code>549</code>
<lhs>%CONUM1</lhs>
</class>
<class cl="Action" sr="act4">
<class cl="IntArg" sr="arg2">
<val>1</val>
</class>
<code>97</code>
<class cl="StringArg" sr="arg1" ve="3">
<val>
3522650111,,,,,%CONUM2</val>
</class>
<class cl="StringArg" sr="arg0" ve="3">
<val>*#*</val>
</class>
</class>
<class cl="Action" sr="act2">
<class cl="IntArg" sr="arg2">
</class>
<code>590</code>
<class cl="StringArg" sr="arg1" ve="3">
<val>#</val>
</class>
<class cl="StringArg" sr="arg0" ve="3">
<val>%CONUM</val>
</class>
</class>
<class cl="Action" sr="act3">
<code>548</code>
<class cl="IntArg" sr="arg1">
<val>1</val>
</class>
<class cl="StringArg" sr="arg0" ve="3">
<val>CONUM %CONUM
CONUM1 %CONUM1
CONUM2 %CONUM2</val>
</class>
</class>
</class>
<tv>1.1.1u1m</tv>
</class>
<class cl="TaskerData" sr="">
<class cl="Task" sr="task8">
<id>8</id>
<class cl="Action" sr="act0">
<code>99</code>
<class cl="IntArg" sr="arg1">
<val>1</val>
</class>
<class cl="StringArg" sr="arg0" ve="3">
<val></val>
</class>
</class>
</class>
<class cl="Profile" sr="prof7">
<nme>Revert All Numbers</nme>
<id>9999</id>
<cdate>1318300335171</cdate>
<class cl="EventContext" sr="con0">
<code>4</code>
</class>
<mid0>8</mid0>
</class>
<tv>1.1.1u1m</tv>
20111010 22.40.53 P INSTANT ID10 Divert Work Extension
20111010 22.40.53 T RUNNING ID11/1
A1: Variable Clear [Name:%CONUM1 Pattern Matching:] Variable Clear
[ %CONUM1 Is Set ]
A2: Variable Clear [Name:%CONUM2 Pattern Matching:] Variable Clear
[ %CONUM2 Is Set ]
A3: Variable Split [Name:%CONUM Splitter:# Delete Base:]
A4: Flash [Text:CONUM %CONUM
CONUM1 %CONUM1
CONUM2 %CONUM2 Long:]
A5: Call Divert [From Match:*#* To:
3522650111,,,,,%CONUM2 Info:]
20111010 22.40.54 T EXIT_OK ID11/1
A1: Variable Clear [Name:%CONUM1 Pattern Matching:] Variable Clear
[ %CONUM1 Is Set ]
A2: Variable Clear [Name:%CONUM2 Pattern Matching:] Variable Clear
[ %CONUM2 Is Set ]
A3: Variable Split [Name:%CONUM Splitter:# Delete Base:]
A4: Flash [Text:CONUM %CONUM
CONUM1 %CONUM1
CONUM2 %CONUM2 Long:]
A5: Call Divert [From Match:*#* To:
3522650111,,,,,%CONUM2 Info:]
20111010 22.41.02 P INSTANT ID7 Revert All Numbers
20111010 22.41.02 T RUNNING ID8/1
A1: Call Revert [Number: Info:]
20111010 22.41.03 T EXIT_OK ID8/1
A1: Call Revert [Number: Info:]