<div dir="ltr">Sorry, this is my dial plan:<div><br></div><div><p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(52,187,199);background-color:rgb(0,0,0)">&lt;include&gt;</p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(52,189,38);background-color:rgb(0,0,0)"><span style="color:rgb(245,245,245)">  </span><span style="color:rgb(52,187,199)">&lt;extension</span> name=&quot;test-dialplan&quot;<span style="color:rgb(52,187,199)">&gt;</span></p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(52,189,38);background-color:rgb(0,0,0)"><span style="color:rgb(245,245,245)">    </span><span style="color:rgb(52,187,199)">&lt;condition</span> field=&quot;destination_number&quot; expression=&quot;^\+(\d{3,20})$&quot;<span style="color:rgb(52,187,199)">&gt;</span></p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(52,189,38);background-color:rgb(0,0,0)"><span style="color:rgb(245,245,245)">      </span><span style="color:rgb(52,187,199)">&lt;action</span> application=&quot;export&quot; data=&quot;dialed_extension=$1&quot;/<span style="color:rgb(52,187,199)">&gt;</span></p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(52,189,38);background-color:rgb(0,0,0)"><span style="color:rgb(245,245,245)">      </span><span style="color:rgb(52,187,199)">&lt;action</span> application=&quot;set&quot; data=&quot;effective_caller_id_number=${outbound_caller_id_number}&quot;/<span style="color:rgb(52,187,199)">&gt;</span></p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(52,189,38);background-color:rgb(0,0,0)"><span style="color:rgb(245,245,245)">      </span><span style="color:rgb(52,187,199)">&lt;action</span> application=&quot;set&quot; data=&quot;effective_caller_id_name=${outbound_caller_id_name}&quot;/<span style="color:rgb(52,187,199)">&gt;</span></p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(52,189,38);background-color:rgb(0,0,0)"><span style="color:rgb(245,245,245)">      </span><span style="color:rgb(52,187,199)">&lt;action</span> application=&quot;bridge&quot; data=&quot;user/${dialed_extension}@${domain_name},sofia/gateway/sip-outbound/+${dialed_extension}&quot;/<span style="color:rgb(52,187,199)">&gt;</span></p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(52,187,199);background-color:rgb(0,0,0)"><span style="color:rgb(245,245,245)">    </span>&lt;/condition&gt;</p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(52,187,199);background-color:rgb(0,0,0)"><span style="color:rgb(245,245,245)">  </span>&lt;/extension&gt;</p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(52,187,199);background-color:rgb(0,0,0)">&lt;/include&gt;</p></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Sep 5, 2015 at 11:03 AM, Michael Nielsen <span dir="ltr">&lt;<a href="mailto:mic.niel84@gmail.com" target="_blank">mic.niel84@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I&#39;m running FreeSWITCH 1.4 on Debian 7.<div><br></div><div>I&#39;ve hooked up my FreeSWITCH to an external SIP gateway.</div><div><br></div><div>The following scenarios work:</div><div><br></div><div>FS -&gt; FS</div><div>SIP GW -&gt; FS</div><div><br></div><div>But the following scenario does not work:</div><div><br></div><div>FS -&gt; SIP GW</div><div><br></div><div>I only have one single dial plan in my setup:</div><div><br></div><div><p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(52,187,199);background-color:rgb(0,0,0)">&lt;include&gt;</p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(52,189,38);background-color:rgb(0,0,0)"><span style="color:rgb(245,245,245)">  </span><span style="color:rgb(52,187,199)">&lt;extension</span> name=&quot;test-dialplan&quot;<span style="color:rgb(52,187,199)">&gt;</span></p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(52,189,38);background-color:rgb(0,0,0)"><span style="color:rgb(245,245,245)">    </span><span style="color:rgb(52,187,199)">&lt;condition</span> field=&quot;destination_number&quot; expression=&quot;^\+(\d{3,20})$&quot;<span style="color:rgb(52,187,199)">&gt;</span></p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(52,189,38);background-color:rgb(0,0,0)"><span style="color:rgb(245,245,245)">      </span><span style="color:rgb(52,187,199)">&lt;action</span> application=&quot;export&quot; data=&quot;dialed_extension=$1&quot;/<span style="color:rgb(52,187,199)">&gt;</span></p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(52,189,38);background-color:rgb(0,0,0)"><span style="color:rgb(245,245,245)">      </span><span style="color:rgb(52,187,199)">&lt;action</span> application=&quot;set&quot; data=&quot;effective_caller_id_number=${outbound_caller_id_number}&quot;/<span style="color:rgb(52,187,199)">&gt;</span></p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(52,189,38);background-color:rgb(0,0,0)"><span style="color:rgb(245,245,245)">      </span><span style="color:rgb(52,187,199)">&lt;action</span> application=&quot;set&quot; data=&quot;effective_caller_id_name=${outbound_caller_id_name}&quot;/<span style="color:rgb(52,187,199)">&gt;</span></p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(52,189,38);background-color:rgb(0,0,0)"><span style="color:rgb(245,245,245)">      </span><span style="color:rgb(52,187,199)">&lt;action</span> application=&quot;bridge&quot; data=&quot;user/${dialed_extension}@${domain_name}&quot;/<span style="color:rgb(52,187,199)">&gt;</span></p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(52,189,38);background-color:rgb(0,0,0)"><span style="color:rgb(245,245,245)">      </span><span style="color:rgb(52,187,199)">&lt;action</span> application=&quot;bridge&quot; data=&quot;user/${dialed_extension}@${domain_name},sofia/gateway/sip-outbound/+${dialed_extension}&quot;/<span style="color:rgb(52,187,199)">&gt;</span></p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(52,187,199);background-color:rgb(0,0,0)"><span style="color:rgb(245,245,245)">    </span>&lt;/condition&gt;</p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(52,187,199);background-color:rgb(0,0,0)"><span style="color:rgb(245,245,245)">  </span>&lt;/extension&gt;</p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(52,187,199);background-color:rgb(0,0,0)">&lt;/include&gt;</p></div><div><br></div><div>My users are named the same as real GSM numbers (country code and number).</div><div><br></div><div>I would like my FS to call internally if the user exists, if not, then route it to my SIP gateway for connecting to the GSM world.</div><div><br></div><div>As mentioned, everything works except outgoing calls to the SIP gateway.</div><div><br></div><div>What goes wrong?</div></div>
</blockquote></div><br></div>