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
Last revision Both sides next revision
userdoc:tt_asterisk_call_notify [2017/02/23 16:22]
abelbeck [Asterisk Call Notification]
userdoc:tt_asterisk_call_notify [2019/01/25 10:28]
mkeuter [Desktop Clients]
Line 11: Line 11:
 {{:userdoc:asterisk-call-notify-snarl2.png?nolink|Snarl URL}}\\ {{:userdoc:asterisk-call-notify-snarl2.png?nolink|Snarl URL}}\\
  
-!!Tip ->!! Growl (GNTP) uses TCP port 23053, legacy Growl uses UDP port 9887. +\\
 !!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 38: 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 76: 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 109: 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 174: 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 183: 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 the legacy 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]] (__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!).  [[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!). 
Line 189: Line 193:
 === 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 (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!).
  • userdoc/tt_asterisk_call_notify.txt
  • Last modified: 2019/01/25 10:30
  • by mkeuter