<div dir="ltr">Hi. I have an installation of asterisk 11 and i have ssmtp in the system to send emails. I would like to get informed by email when someone dials a set of numbers eg international calls or premium numbers with the country. my dialplan is simple enough and it is the following:<br><br><pre><code class="gmail-m_1814788483715924500gmail-m_-454014356774517603gmail-hljs gmail-m_1814788483715924500gmail-m_-454014356774517603gmail-ini"><span class="gmail-m_1814788483715924500gmail-m_-454014356774517603gmail-hljs-section">[DefaultPlan]</span>
<span class="gmail-m_1814788483715924500gmail-m_-454014356774517603gmail-hljs-attr">exten</span> => _XXXXXXXXXX,<span class="gmail-m_1814788483715924500gmail-m_-454014356774517603gmail-hljs-number">1</span>,Dial(SIP/VoipGat<wbr>e/<span class="gmail-m_1814788483715924500gmail-m_-454014356774517603gmail-hljs-variable">${EXTEN}</span>,<span class="gmail-m_1814788483715924500gmail-m_-454014356774517603gmail-hljs-number">120</span>,Tt)
<span class="gmail-m_1814788483715924500gmail-m_-454014356774517603gmail-hljs-attr">exten</span> => _XXXXXXXXXX,<span class="gmail-m_1814788483715924500gmail-m_-454014356774517603gmail-hljs-number">1</span>,Busy()
<span class="gmail-m_1814788483715924500gmail-m_-454014356774517603gmail-hljs-attr">exten</span> => _4XX,<span class="gmail-m_1814788483715924500gmail-m_-454014356774517603gmail-hljs-number">2</span>,Answer()
<span class="gmail-m_1814788483715924500gmail-m_-454014356774517603gmail-hljs-attr">exten</span> => _4XX,<span class="gmail-m_1814788483715924500gmail-m_-454014356774517603gmail-hljs-number">3</span>,VoiceMail(<span class="gmail-m_1814788483715924500gmail-m_-454014356774517603gmail-hljs-variable">${EXTEN}</span>@BranchA,su)
<span class="gmail-m_1814788483715924500gmail-m_-454014356774517603gmail-hljs-attr">exten</span> => _4XX,<span class="gmail-m_1814788483715924500gmail-m_-454014356774517603gmail-hljs-number">4</span>,HangUp()
<span class="gmail-m_1814788483715924500gmail-m_-454014356774517603gmail-hljs-attr">exten</span> => _4XX,<span class="gmail-m_1814788483715924500gmail-m_-454014356774517603gmail-hljs-number">102</span>,Answer()
<span class="gmail-m_1814788483715924500gmail-m_-454014356774517603gmail-hljs-attr">exten</span> => _4XX,<span class="gmail-m_1814788483715924500gmail-m_-454014356774517603gmail-hljs-number">103</span>,VoiceMail(<span class="gmail-m_1814788483715924500gmail-m_-454014356774517603gmail-hljs-variable">${EXTEN}</span>@BranchA,sb)
<span class="gmail-m_1814788483715924500gmail-m_-454014356774517603gmail-hljs-attr">exten</span> => _4XX,<span class="gmail-m_1814788483715924500gmail-m_-454014356774517603gmail-hljs-number">104</span>,HangUp()<br><br></code></pre><pre><code class="gmail-m_1814788483715924500gmail-m_-454014356774517603gmail-hljs gmail-m_1814788483715924500gmail-m_-454014356774517603gmail-ini"><br></code></pre></div>