Depending on the provider, you have to a few things to get this going. Some providers are ok with the effective_caller_id whereas some others expect sip_from_uri
Please note I use this to allow multiple providers for fail-over.
https://www.pbxforums.com/threads/didlogic.21/ Normally you don't have to go this extreme as the first option works most of the time.
Off-Topic, What is that email option that you have there, looks interesting.
I use 2 or 3 providers per outbound route. Out of these providers the last one is usually most reliable but most expensive; so I add that provider as the last one. When other providers fail for whatever reason, calls fail-over to the next provider and the email line is triggered before invoking the last bridge; I investigate the reason if I get a couple of such emails in succession.
Keeps my wallet healthy and I don't have to sleep in the garden shed
Please take a look at email.lua at Advanced-> Script Editor. There is a usage example shown in the file. If you are stuck post back with the issue.can you provide that "lua" line? I would like to test it out
I hope you mean Advanced->Default Settings->EmailI already have smtp enabled
Please take a look at email.lua at Advanced-> Script Editor. There is a usage example shown in the file. If you are stuck post back with the issue.
I hope you mean Advanced->Default Settings->Email