Quantcast
Channel: General Help - FreePBX Community Forums
Viewing all articles
Browse latest Browse all 12663

Variable for extension CID, not trunk or outbound route CID

$
0
0

@avayax wrote:

I got some dial plan code in extensions_custom.conf to send me emails whenever a 911 call was placed. In the body of the email I would like to see the name and CID of the local extension that placed the call. However ${CALLERID(NUM)} is using the CID of the trunk or the outbound route.
Is there a variable that would give me the CID of the extension or some other way to accomplish what I want?

[macro-dialout-trunk-predial-hook]
exten => s,1,ExecIf($["${OUTNUM}"="911"]?System(echo "A 911 emergency call was just placed from extension ${CALLERID(NUM)} - ${CALLERID(NAME)} on ${STRFTIME(%C%m%d%y%H%M)}" | mail -s " 911 Alarm from ${CALLERID(NUM)} - ${CALLERID(NAME)}" avayax@gmail.com))
exten => s,n,MacroExit()

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 12663

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>