Dialplan quesiton. Which file to edit?

Hello everyone!
Trying to run a custom script every time a number is dialed as outbound call, I’ve added this line:
exten => s,n,System(/usr/local/bin/phonebook_insert.sh ${DIAL_NUMBER})
to the file /etc/asterisk/extensions_custom.conf, precisely inside the block called [macro-dialout-trunk]

The script works as expected, however this file should not be edited directly as explained at the beginning of the file itself.
My quesion is, which file should i edit to accomplish this, the correct way?

Thank you very much!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.