Skip to content

Instantly share code, notes, and snippets.

@jfqd
Created May 2, 2021 09:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jfqd/9776c6d5bd68969a69bcdc8647d81a38 to your computer and use it in GitHub Desktop.
Save jfqd/9776c6d5bd68969a69bcdc8647d81a38 to your computer and use it in GitHub Desktop.
This script dials a phone-number given on the command line on macOS via a SNOM hardware phone
#!/bin/bash
pn=$(echo $@ | tr -d " \t\n\r" | sed "s#+49#0#")
curl -k -m 3 "https://user:password@10.10.10.10/adr.htm?adrnumber=${pn}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment