Incoming call email/caller ID in follow-me

Dear all,

Is there a way to send an email on incoming call to specific extension? This would be a workaround for incoming forwarded calls for example to a mobile phone.

When we set Caller instead of Callee the call is not forwaded (I guess provider´s security measure?)

So at least an email at incoming call with the number of the person would be at least a “half measure”.

Many thanks in advance.

Best
Ilias

I reply to myself, I created a custom context like this:

[email-incoming]
exten => s,1,TrySystem(echo “Incoming Call - From: ${CALLERID(number)} received at ${STRFTIME(${EPOCH},%l:%M:%S %p %Z on %A %B %e)}” | mail -s “Incoming Call for Whoever” -r “${CALLERID(number)}@pbx.noreply” whoever@whatever.wh)
same => n,Return

In case might help someone…

1 Like

On Debian the correct way to set the from address is -a "From: Incoming Call Notifications <email@domain.com>