Open 'Phone Ringing'

Discussion in 'Tasker' started by dastrix, Mar 21, 2019.

  1. dastrix

    dastrix Member

    Joined:
    Jan 8, 2019
    Messages:
    36
    Likes Received:
    0
    Hi All

    Does this only work with the native dialer? Im trying to trigger a task based on the phone ringing from both the native dialer and also Zoipher.

    It works on the native dialer (as in someone calls me via the celluar network)

    Thanks!
     
    Last edited: Mar 21, 2019
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    8,876
    Likes Received:
    747
    Yes, it sometimes only works on the native ringer.
     
  3. dastrix

    dastrix Member

    Joined:
    Jan 8, 2019
    Messages:
    36
    Likes Received:
    0
    Is there a method to allow it to work with Zoiper?
     
  4. alienclone

    alienclone New Member

    Joined:
    Feb 8, 2017
    Messages:
    26
    Likes Received:
    0
    if Zoiper shows a notification when you get a call, then you could use AutoNotification
     
  5. dastrix

    dastrix Member

    Joined:
    Jan 8, 2019
    Messages:
    36
    Likes Received:
    0
    It pops up the dialer of zoiper when a call comes in, if i miss it theres a notifcation yes
     
  6. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    8,876
    Likes Received:
    747
    Maybe you can monitor the notifications instead :)
     
  7. dastrix

    dastrix Member

    Joined:
    Jan 8, 2019
    Messages:
    36
    Likes Received:
    0
    Thanks, ive purchased AutoNotification.

    I set it up to match the application. And added that as the first item in my task.

    I dont think an actual notification is created from Zoiper , rather it pops up this:

    https://ibb.co/M6F7rdk
     
  8. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    8,876
    Likes Received:
    747
    But there is a call notification icon up there. Did you check?
     
  9. dastrix

    dastrix Member

    Joined:
    Jan 8, 2019
    Messages:
    36
    Likes Received:
    0
    OK, how would I match that. Do I still use AutoNotification (hope so i bought it ha!)

    I have this:

    Mute Music (2)
    A1: AutoNotification Query [ Configuration:Notification Apps: Zoiper
    App Name: Zoiper
    Title: Incoming Timeout (Seconds):20 ]
    A2: HTTP Get [ Server:port:https://SomeStuff:443 Path:rest/items/spotify_current_playing Attributes: Cookies: User Agent:application/json Timeout:10 Mime Type: Output File: Trust Any Certificate:Off ]
    A3: Stop [ With Error:Off Task: ] If [ %Spotify_current_playing ~ OFF ]
    A4: HTTP Post [ Server:port:https://SomeStuff:443 Path:rest/items/spotify_action Data / File:pause Cookies: User Agent:application/json Timeout:10 Content Type:text/plain Output File: Trust Any Certificate:Off ]
     
  10. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    8,876
    Likes Received:
    747
    Yeah :) Does that not work?
     
  11. dastrix

    dastrix Member

    Joined:
    Jan 8, 2019
    Messages:
    36
    Likes Received:
    0
    It doesnt :(

    If i initiate a test call to zoipher, it doesnt.
     
  12. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    8,876
    Likes Received:
    747
    Oh wait, you have to create a profile, not just a task. You have to create a profile with the AutoNotification Intercept event condition.
     
  13. dastrix

    dastrix Member

    Joined:
    Jan 8, 2019
    Messages:
    36
    Likes Received:
    0
    So I have this:

    Profile: Mute Music (5)
    Event: Phone Ringing [ Caller:* ]
    State: Wifi Connected [ SSID:Tard MAC:* IP:* Active:Yes ]
    State: AutoNotification Intercept [ Configuration:Notification Apps: Zoiper ]
    Enter: Mute Music (2)
    A1: AutoNotification Query [ Configuration:Notification Apps: Zoiper
    App Name: Zoiper
    Title: Incoming Timeout (Seconds):20 ]
    A2: HTTP Get [ Server:port:https://XXX Path:rest/items/spotify_current_playing Attributes: Cookies: User Agent:application/json Timeout:10 Mime Type: Output File: Trust Any Certificate:Off ]
    A3: Stop [ With Error:Off Task: ] If [ %Spotify_current_playing ~ OFF ]
    A4: HTTP Post [ Server:port:XXX Path:rest/items/spotify_action Data / File:pause Cookies: User Agent:application/json Timeout:10 Content Type:text/plain Output File: Trust Any Certificate:Off ]
     
  14. dastrix

    dastrix Member

    Joined:
    Jan 8, 2019
    Messages:
    36
    Likes Received:
    0
    Its highlighting as green because Zoiper is connected in the background. I just want this to run when Zoiper rings.
     
  15. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    8,876
    Likes Received:
    747
    Don't use the AutoNotification Intercept state, use the event. Also, remove the Phone Ringing event.
     
  16. dastrix

    dastrix Member

    Joined:
    Jan 8, 2019
    Messages:
    36
    Likes Received:
    0
    Did that, i even triggered the notification and filled from current, selected Zoiper - Doorbird and it doesnt fill anything in.
     
  17. dastrix

    dastrix Member

    Joined:
    Jan 8, 2019
    Messages:
    36
    Likes Received:
    0
    Hi joaomgcd, ive had no luck with this Auto Notification using intercept. Just wont match the Zoiper app calling. Wht am i doing wrong? :(

    The notification is tricky because when zoiper is connected theres always a notification, so i need to match it when the gate (called Doorbird) calls me.
     
    Last edited: Mar 24, 2019
  18. alienclone

    alienclone New Member

    Joined:
    Feb 8, 2017
    Messages:
    26
    Likes Received:
    0
    when you create the AutoNotification Intercept Event profile, only set the notification app and select 'Get All Fields'
    when done the Configuration should show...
    Event Behaviour: true
    Notification App: Zoiper
    Get All Fields: true

    this profile should trigger ANY TIME the Zoiper notification CHANGES
    link a task to this profile that flashes the variables...
    %antitle
    %antext


    then when Doorbird calls you can look to see what the exact title and text are,
    then you can change your task to do...
    If %antitle matches (put your results from variable test here)
    or
    if %antext matches (put your results from variable test here)
     
  19. dastrix

    dastrix Member

    Joined:
    Jan 8, 2019
    Messages:
    36
    Likes Received:
    0
    Thank you, where would I set the antitle/antext variable?

    If i edit the task, select flash and then variable it doesnt display the variables you've mentioned

    Around 2.10 in this video, it shows the variables being displayed to flash but I do not get that list.

     
    Last edited: Mar 25, 2019
  20. alienclone

    alienclone New Member

    Joined:
    Feb 8, 2017
    Messages:
    26
    Likes Received:
    0
    when you create the AutoNotification event, the final setup screen that shows the configuration will list ALL of the variables that it creates on its own.
    %antitle and %antext are just 2 of them,
    when you create the flash task, you dont need to go to variables to select, just manually type in
    "%antitle" or "%antext" but without the quotation marks.
     
: ringing

Share This Page