When incoming call I need to have email send with simple call info and which extension picked it up.
Call comes in, rings in a ring group, when someone picks up I need notification with extension number.
Maybe possible to do it on extensions themselves - whenever they pick up calls email sent?
That should be simple enough - you can watch the âfullâ logfile with a âtail -Fâ and when the event happens, send out an email. There are also a couple of ways to do this in a custom context, so yeah, this should be easy.
Doubt it. Extensions are just about as stupid as POTS phones were. Setting them up to send out an email is going to be ridiculously hard and not portable across different phones.
Actually⌠this will blow your mind. Many manufacturers (not the least Sangoma) implement Action URLs which can be programmed into the SIP phone so they load a URL whenever the phone does âsomethingâ (when it rings, when it answers, when it boots, when it registers, etc), so you could program your Sangoma phone to load a URL (and hence generate a record) whenever it answers a call. The URL can be on any host, it doesnât even have to be on the PBX.
maybe just add something like
exten => s,n,System(echo âCall from ${CALLERID(name)} at ${CALLERID(number)}â | mail -s âCall receivedâ â[email protected]â)
to extensions_override_freepbx.conf?
works through putting copy of [macro-dial-one] (from extensions_additional.conf) to /etc/asterisk/extensions_override_freepbx.conf
changing line 53 with dial to run macro on pickup using M() option:
âŚ
exten => s,n(dial),Dial(${DSTRING},${ARG1},${D_OPTIONS}b(func-apply-sipheaders^s^1)M(picku))
âŚ
[macro-picku]
exten => s,1,Noop(notification of pickup)
exten => s,n,System(echo âAnswered by ${CALLERID(name)} at ${CALLERID(number)}â | mail -s âCall answeredâ â[email protected]â)