<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)"><include></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)"><extension</span> name="test-dialplan"<span style="color:rgb(52,187,199)">></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)"><condition</span> field="destination_number" expression="^\+(\d{3,20})$"<span style="color:rgb(52,187,199)">></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)"><action</span> application="export" data="dialed_extension=$1"/<span style="color:rgb(52,187,199)">></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)"><action</span> application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/<span style="color:rgb(52,187,199)">></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)"><action</span> application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/<span style="color:rgb(52,187,199)">></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)"><action</span> application="bridge" data="user/${dialed_extension}@${domain_name},sofia/gateway/sip-outbound/+${dialed_extension}"/<span style="color:rgb(52,187,199)">></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></condition></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></extension></p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(52,187,199);background-color:rgb(0,0,0)"></include></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"><<a href="mailto:mic.niel84@gmail.com" target="_blank">mic.niel84@gmail.com</a>></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'm running FreeSWITCH 1.4 on Debian 7.<div><br></div><div>I'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 -> FS</div><div>SIP GW -> FS</div><div><br></div><div>But the following scenario does not work:</div><div><br></div><div>FS -> 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)"><include></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)"><extension</span> name="test-dialplan"<span style="color:rgb(52,187,199)">></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)"><condition</span> field="destination_number" expression="^\+(\d{3,20})$"<span style="color:rgb(52,187,199)">></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)"><action</span> application="export" data="dialed_extension=$1"/<span style="color:rgb(52,187,199)">></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)"><action</span> application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/<span style="color:rgb(52,187,199)">></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)"><action</span> application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/<span style="color:rgb(52,187,199)">></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)"><action</span> application="bridge" data="user/${dialed_extension}@${domain_name}"/<span style="color:rgb(52,187,199)">></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)"><action</span> application="bridge" data="user/${dialed_extension}@${domain_name},sofia/gateway/sip-outbound/+${dialed_extension}"/<span style="color:rgb(52,187,199)">></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></condition></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></extension></p>
<p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(52,187,199);background-color:rgb(0,0,0)"></include></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>