I am struggling a little bit with a dial plan issue.
I want to call a shell script as soon as a call comes in to send an e-mail.
Most parts do work, I am only fighting where to place it in the dialplan. I did try to add the code to the “ext-did-0002-custom” - however all calls seem to jump over the “include => ext-did-0002-custom” line.
[ext-did-0002-custom]
exten => s,n,System(${ASTVARLIBDIR}/bin/sendmail.sh [email protected] “${STRFTIME(,%c)}” “${CALLERID(name)} ${CALLERID(num)}” “${EXTEN}” “${EPOCH}”)
Is this expected?
I have tried several variations of the above mentioned code (replace s with an actual DID) and did not get asterisk to call the ext-did-0002-custom.
I ended up using the “override” and added a second section for [ext-did-0002] however that will break any kind of trunk configuration from the web UI.
Thanks for your help!