Dear Sirs may i ask you please
(Asterisk version 11.14.2)
i have a custom extension in a queue (together with other sip extensions) with a dial plan to send an email upon incoming call
It is this:
[send-email]
exten => s,1,NoOp(Entering user defined context [send-email] in extensions_custom.conf)
exten => s,n,Set(CALLERID(name)=${CALLERID(name)})
exten => s,n,System(echo ‘Call from ${CALLERID(name)} at ${CALLERID(number)} ’ | mail -s ’ incoming call’ ‘panta2@gmail.com’)
exten => s,n,hangup()
the problem is that it doesn’t show the CALLERID(name) stored in the phonebook only the number.
However if no ones answers the voice mail successfully sends an email with the name (from the phonebook) and number of the caller
Do you have any idea of what to change?Thanx