Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
userdoc:tt_asterisk_call_notify [2017/02/23 11:33] droemel [Desktop Clients] |
userdoc:tt_asterisk_call_notify [2019/01/25 10:30] (current) mkeuter [Desktop Clients] |
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 ===== |
| |
| |
!!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. |
| |
\\ | \\ |
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() |
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" |
} | } |
| |
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")" |
} | } |
| |
| |
=== 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!). |
=== 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''. |
| |
/* | /* |