Open Tasker ignores number in %acnumber

Discussion in 'AutoContacts' started by marksou, Jul 28, 2015.

  1. marksou

    marksou New Member

    Joined:
    Jul 28, 2015
    Messages:
    4
    Likes Received:
    0
    I have a contact with 4 different numbers. I have specified the number in %acnumber but this is ignored and the first number under contact is dialled. How can I solve this?
    Mark

    Below is my description
    Task: DialSian (3)
    A1: AutoContacts [ Configuration:Contact Name or Nickname: Sian
    Phone Number: 07********* Package:com.joaomgcd.autocontacts Name:AutoContacts Timeout (Seconds):1000 ]
    A2: Flash [ Text:Calling %acname Long:Off ]
    A3: Call [ Number:%acnumber Auto Dial:On ]

    Task: Anon (5)
    A1: Flash [ Text:Looking for contact %contact... Long:Off ]
    A2: AutoContacts [ Configuration:Contact Name or Nickname: %contact Package:com.joaomgcd.autocontacts Name:AutoContacts Timeout (Seconds):1000 ]
    A3: Flash [ Text:Found contact %acname Long:Off ]
    A4: Call [ Number:%acnumber Auto Dial:On ]
     
    Last edited: Jul 28, 2015
  2. nhmlb23

    nhmlb23 New Member

    Joined:
    Feb 14, 2015
    Messages:
    6
    Likes Received:
    2
    In the first task if you flash %acnumbers() will you get all 4 numbers?
    In the second task how do you set %contact? Autovoice?

    Skickat från min D6603 via Tapatalk
     
  3. marksou

    marksou New Member

    Joined:
    Jul 28, 2015
    Messages:
    4
    Likes Received:
    0
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    5,506
    Likes Received:
    508
    @marksou why are you using %acnumber if you already have the number you want beforehand?
    Also, as @nhmlb23 said, can you check if %acnumbers() contains all 4 numbers?
     
  5. marksou

    marksou New Member

    Joined:
    Jul 28, 2015
    Messages:
    4
    Likes Received:
    0
    Hi @joaomgcd, I followed the steps in the video about using AutoContacts with AutoVoice. I wasn't sure why it would always dial the first number listed for my contact instead of the number specified in A1.
    %acnumbers() does contain all 4 numbers.
     
  6. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    5,506
    Likes Received:
    508
    If you already have the number you want, you don't need to look it up :). Just use the number you already have.
    In any case, %acnumber will always contain the first number that contact has, but in your case you don't need that cause you already have his number there in the task.
    Hope this clarifies it.
     
  7. marksou

    marksou New Member

    Joined:
    Jul 28, 2015
    Messages:
    4
    Likes Received:
    0
    Thanks @joaomgcd, I'll try that!

    Sent from my A0001 using Tapatalk
     
  8. Selva

    Selva New Member

    Joined:
    Dec 27, 2017
    Messages:
    11
    Likes Received:
    0
    Hi how to correct this error
    I am very new to TASKER
    Tasker dialling or messaging to anonymous number or contacts.
    I have tried %acnumber, %acname,%cname,%contact variables. Nothing working for me.
    Please anyone explain in simple steps.
    Thanks a lot
     
  9. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    5,506
    Likes Received:
    508
    Can you please export your profile's description (not xml) so I can take a look? Long-click the profile in Tasker->export description Thanks in advance
     
  10. Selva

    Selva New Member

    Joined:
    Dec 27, 2017
    Messages:
    11
    Likes Received:
    0
    Profile: Make Call (41)
    Event: Pushover Notification [ Configuration:Title=~"call" ]
    Enter: Anon (39)
    A1: If [ %pushovermessage ~R \+?1?\s*(\d{3}) - (\d{3}) - (\d{4}) ]
    A2: Call [ Number:%pushovermessage Auto Dial:On ]
    A3: Wait [ MS:0 Seconds:2 Minutes:0 Hours:0 Days:0 ]
    A4: Speakerphone [ Set:On ]
    A5: In-Call Volume [ Level:5 Display:Off Sound:Off ]
    A6: Else
    A7: AutoContacts Query 2.0 [ Configuration:Names: %pushovermessage
    Sort: 0
    Sort Direction: Ascending
    Fields to Get: Phone Number Timeout (Seconds):60 ]
    A8: Call [ Number:%acnumber Auto Dial:On ]
    A9: Wait [ MS:0 Seconds:2 Minutes:0 Hours:0 Days:0 ]
    A10: Speakerphone [ Set:On ]
    A11: In-Call Volume [ Level:5 Display:Off Sound:Off ]
     
  11. Selva

    Selva New Member

    Joined:
    Dec 27, 2017
    Messages:
    11
    Likes Received:
    0
    Profile: Send Message (37)
    Event: Pushover Notification [ Configuration:Title=~"text" ]
    Enter: Anon (35)
    A1: If [ %pushovermessage ~ send ]
    A2: AutoContacts Query 2.0 [ Configuration:Names: %CONTACT
    Sort: 0
    Sort Direction: Ascending
    Fields to Get: Phone Number
    Joiner: =:= Timeout (Seconds):60 ]
    A3: Variable Set [ Name:%acnumber To:%CONTACT Recurse Variables:Off Do Maths:Off Append:Off ] If [ %CONTACT ~R \+?1?\s*(\d{3}) - (\d{3}) - (\d{4}) ]
    A4: Send SMS [ Number:%acnumber Message:%TEXT Store In Messaging App:On ]
    A5: Else
    A6: Variable Set [ Name:%splitter To: message Recurse Variables:Off Do Maths:Off Append:Off ]
    A7: Variable Split [ Name:%pushovermessage Splitter:%splitter Delete Base:Off ]
    A8: Variable Set [ Name:%CONTACT To:%pushovermessage1 Recurse Variables:Off Do Maths:Off Append:Off ]
    A9: Variable Set [ Name:%TEXT To:%pushovermessage2 Recurse Variables:Off Do Maths:Off Append:Off ]
    A10: Variable Search Replace [ Variable:%TEXT Search:\s*([;,.:'?!%])\s* Ignore Case:Off Multi-Line:Off One Match Only:Off Store Matches In: Replace Matches:On Replace With:$1 ]
    A11: Variable Search Replace [ Variable:%TEXT Search:([$:'])\s* Ignore Case:Off Multi-Line:Off One Match Only:Off Store Matches In: Replace Matches:On Replace With:$1 ]
    A12: Variable Search Replace [ Variable:%TEXT Search:(a\. m\.) Ignore Case:Off Multi-Line:Off One Match Only:Off Store Matches In: Replace Matches:On Replace With:AM ]
    A13: Variable Search Replace [ Variable:%TEXT Search:(p\. m\.) Ignore Case:Off Multi-Line:Off One Match Only:Off Store Matches In: Replace Matches:On Replace With:pM ]
    A14: Variable Search Replace [ Variable:%TEXT Search:\s\b(st|nd|rd|th)\b Ignore Case:On Multi-Line:Off One Match Only:Off Store Matches In: Replace Matches:On Replace With:$1 ]
    A15: Variable Convert [ Name:%TEXT Function:To Upper Case First Store Result In: ]
     
  12. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    5,506
    Likes Received:
    508
    Ok, for the Make Call profile can you please let me know what %pushovermessage contains?
     
  13. Selva

    Selva New Member

    Joined:
    Dec 27, 2017
    Messages:
    11
    Likes Received:
    0
    Pls see the screenshot.
     

    Attached Files:

  14. Selva

    Selva New Member

    Joined:
    Dec 27, 2017
    Messages:
    11
    Likes Received:
    0
    Can you post the xml file of the profile for using autovoice natural language for
    1.Making calls
    2.Sending message
    3.Navigation
    Thanks in advance.
     
  15. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    5,506
    Likes Received:
    508
    Sorry, but it would really be easier if you could just post what %pushovermessage so we can figure it out. Use a Flash action for example. Thanks
     
: acnumber

Share This Page