userdoc:tt_asterisk_call_notify

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
userdoc:tt_asterisk_call_notify [2017/02/23 07:50]
abelbeck [Asterisk Dialplan Integration]
userdoc:tt_asterisk_call_notify [2019/01/25 10:30] (current)
mkeuter [Desktop Clients]
Line 1: Line 1:
 ====== Asterisk Call Notification ====== ====== Asterisk Call Notification ======
  
-AstLinux now supports the [[https://github.com/mattn/gntp-send|gntp-send]] CLI tool for sending Growl (GNTP) notifications via the GNTP 1.0 protocol.+AstLinux now supports the [[https://github.com/mattn/gntp-send|gntp-send]] CLI tool for sending Growl (GNTP) notifications\\ via the GNTP 1.0 TCP protocol and also via the legacy Growl UDP protocol.
  
 A simple shell script can be called via an Asterisk ''System()'' command, formulate the desired notification message, and send to a listening Growl endpoint using ''gntp-send''. A simple shell script can be called via an Asterisk ''System()'' command, formulate the desired notification message, and send to a listening Growl endpoint using ''gntp-send''.
Line 7: Line 7:
 The notification can include CallerID name, number and extension, additionally an optional clickable link based on the CallerID number. The notification can include CallerID name, number and extension, additionally an optional clickable link based on the CallerID number.
  
-!!Tip ->!! Growl (GNTP) uses TCP port 23053, legacy Growl uses UDP port 9887.+{{:userdoc:asterisk-call-notify-snarl1.png?nolink|Snarl Notification}}\\
  
 +{{:userdoc:asterisk-call-notify-snarl2.png?nolink|Snarl URL}}\\
 +
 +\\
 !!Note: AstLinux 1.2.10 or later is required!! !!Note: AstLinux 1.2.10 or later is required!!
 +
 ===== Asterisk Dialplan Integration ===== ===== Asterisk Dialplan Integration =====
  
Line 34: Line 38:
  
 !!Tip ->!! The ''FILTER()'' function call is used to prevent remote command injection. !!Tip ->!! The ''FILTER()'' function call is used to prevent remote command injection.
 +
 +!!Tip ->!! Growl (GNTP) uses TCP port 23053, legacy Growl uses UDP port 9887.
  
 \\ \\
Line 72: Line 78:
   fi   fi
      
-  # Silently fail if client_ip is not reachable +  ## Silently fail if client_ip is not reachable 
-  if ! fping -t 200 "$client_ip" >/dev/null 2>&1; then +  #if ! fping -t 200 "$client_ip" >/dev/null 2>&1; then 
-    exit 2 +  #  exit 2 
-  fi+  #fi
      
   format_NANPA_number()   format_NANPA_number()
Line 105: Line 111:
     url="${ACTION_URL:+$ACTION_URL$tel_num}"     url="${ACTION_URL:+$ACTION_URL$tel_num}"
      
-    gntp-send -s "$client_ip" -p "$PASS" "$title" "$(echo -e "$msg")" "$ICON" "$url"+    gntp-send -s "$client_ip" -p "$PASS" -a "Incoming Call" -n "Incoming Call Notify"
 +              "$title" "$(echo -e "$msg")" "$ICON" "$url"
   }   }
      
Line 170: Line 177:
     msg="$msg\n${date## }"     msg="$msg\n${date## }"
      
-    gntp-send -u -s "$client_ip" -p "$PASS" "$title" "$(echo -e "$msg")"+    gntp-send -u -s "$client_ip" -p "$PASS" -a "Incoming Call" -n "Incoming Call Notify"
 +              "$title" "$(echo -e "$msg")"
   }   }
      
Line 179: Line 187:
  
 === Mac OS X === === Mac OS X ===
-[[https://bitbucket.org/pmetzger/growl/downloads/|Growl 1.2.2f1]] (forked) version for Mac OS X works in UDP mode on newer OS versions (tested up to 10.11.6). But it does not support an icon or a clickable URL in the notification+[[https://bitbucket.org/pmetzger/growl/downloads/|Growl 1.2.2f1]] (forked) version for Mac OS X works in the legacy UDP mode on newer OS versions (tested up to 10.13.6).\\ But it does neither support an icon nor a clickable URL in the notification.
- +
-[[https://itunes.apple.com/us/app/growl/id467939042?mt=12&ign-mpt=uo%3D4|Growl 2.x]] from the Mac AppStore (4 USD) was not tested yet. The homepage says: supported up to 10.9.5 (development has stalled!)+
  
-[[http://growl.info|Original Growl Development]]+[[https://itunes.apple.com/us/app/growl/id467939042?mt=12&ign-mpt=uo%3D4|Growl 2.x]] (__4 USD__ from the Mac AppStore) was __not tested__. The [[http://growl.info|Growl homepage]] notes: supported up to 10.9.5 (development has stalled!). 
  
 === Windows === === Windows ===
  
-[[http://snarl.fullphat.net|Snarl]] 3.1 and 5.0beta have been tested to work in TCP mode with the GNTP 1.0 protocol (tested on Win 10 64-bit).+[[http://snarl.fullphat.net|Snarl]] 3.1 and 5.0-beta-1 ([[https://sourceforge.net/projects/snarlwin/files/Snarl/R5/|from 01/2017]]) have been tested to work in TCP mode with the GNTP 1.0 protocol (tested on Win 10 64-bit, Win 7 32-bit).
  
-[[http://www.growlforwindows.com/gfw/default.aspx|Growl for Windows]] Last version 2.0.9 is from 2012, not tested (development has stalled).+[[http://www.growlforwindows.com/gfw/default.aspx|Growl for Windows]] Last version 2.0.9 is from 2012, __not tested__ (development has stalled!).
  
 === Linux Desktop === === Linux Desktop ===
  
-[[https://github.com/mattn/growl-for-linux|Growl for Linux]] Typically compile from source.  Same author as ''gntp-send''.+[[https://github.com/mattn/growl-for-linux|Growl for Linux]] Typically compile from source, __not tested__.  Same author as ''gntp-send''.
  
 /* /*
  • userdoc/tt_asterisk_call_notify.1487857835.txt.gz
  • Last modified: 2017/02/23 07:50
  • by abelbeck