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
Next revision Both sides next revision
userdoc:tt_asterisk_call_notify [2017/02/23 11:33]
droemel [Desktop Clients]
userdoc:tt_asterisk_call_notify [2017/03/20 16:34]
droemel [Desktop Clients]
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 185: 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.0beta 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!).
Line 191: Line 199:
 === 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.txt
  • Last modified: 2019/01/25 10:30
  • by mkeuter