I am trying to integrate my PBX with Smartthings at home, so that when I miss a call (or receive a call) , I will be notified through Smartthings.
What should I monitor on my linux CLI for incoming calls ? (a file, log, process , etc. ?)
I’ve read some and I understand that this is an interface which writes all events to stdoutput when we connect with correct credentials.
Most of the examples I found, use expect (Tcl/Tk) to connect and wait for input.
So, I should wait for
"Event: Newchannel
Privilege: call,all"
In this event, variable “Exten” will give me the called number, and “CallerIDNum” will give the calling number.
AMI is probably a good place to start. As you get more familiar with Asterisk and want to start building custom dial plan and/or dialplan applications you may want to look more into AGI and ARI.