Did you purchase g.729 licenses for this system? If not then you won&#39;t be able to transcode g.729 and the incompatible destination error will keep popping up if you&#39;re not in proxy media mode.<br><br>Where is the 407 coming from? If it&#39;s coming from your provider then they want you to auth calls, which means you need to make sure your gateway has the correct username and password information.<br>
<br>-MC<br><br><div class="gmail_quote">On Thu, Apr 8, 2010 at 12:54 PM, Ken Fulmer <span dir="ltr">&lt;<a href="mailto:kenfulmer@icstechnologysolutions.com">kenfulmer@icstechnologysolutions.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">









<div link="blue" vlink="purple" lang="EN-US">

<div>

<p class="MsoNormal">I’m using the external sip profile to route calls from
a voice gateway router to an internal PBX.</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">In separate xml files in the sofia/external directory, I
have the following:</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">&lt;include&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">    &lt;gateway name=&quot;Server-1&quot;&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">      &lt;param
name=&quot;username&quot; value=&quot;gateway&quot;/&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">      &lt;param
name=&quot;password&quot; value=&quot;gateway&quot;/&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">      &lt;param
name=&quot;realm&quot; value=&quot; X.X.X.X &quot;/&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">      &lt;param
name=&quot;proxy&quot; value=&quot; X.X.X.X &quot;/&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">      &lt;param
name=&quot;register&quot; value=&quot;false&quot;/&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">      &lt;param
name=&quot;context&quot; value=&quot;public&quot;/&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">    &lt;/gateway&gt;</span></p>

<p class="MsoNormal"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">&lt;/include&gt;</span></p>

<p class="MsoNormal"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;"> </span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">&lt;include&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">    &lt;gateway name=&quot;Server-2&quot;&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">      &lt;param
name=&quot;username&quot; value=&quot;gateway&quot;/&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">      &lt;param
name=&quot;password&quot; value=&quot;gateway&quot;/&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">      &lt;param
name=&quot;realm&quot; value=&quot;X.X.X.X&quot;/&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">      &lt;param
name=&quot;proxy&quot; value=&quot;X.X.X.X&quot;/&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">      &lt;param
name=&quot;register&quot; value=&quot;false&quot;/&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">      &lt;param
name=&quot;context&quot; value=&quot;public&quot;/&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">    &lt;/gateway&gt;</span></p>

<p class="MsoNormal"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">&lt;/include&gt;</span></p>

<p class="MsoNormal"> </p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">&lt;include&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">    &lt;gateway name=&quot;Voice Gateway&quot;&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">      &lt;param
name=&quot;username&quot; value=&quot;gateway&quot;/&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">      &lt;param
name=&quot;password&quot; value=&quot;gateway&quot;/&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">      &lt;param
name=&quot;realm&quot; value=&quot;X.X.X.X&quot;/&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">      &lt;param
name=&quot;proxy&quot; value=&quot;X.X.X.X&quot;/&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">      &lt;param
name=&quot;register&quot; value=&quot;false&quot;/&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">      &lt;param
name=&quot;context&quot; value=&quot;public&quot;/&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">    &lt;/gateway&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">&lt;/include&gt;</span></p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">In the dial plan/public directory, I have the following
(different xml files):</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">&lt;extension name=&quot;PBX&quot;&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">   &lt;condition
field=&quot;destination_number&quot; expression=&quot;^(Directory Numbers)$&quot;&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">       &lt;action
application=&quot;bridge&quot; data=&quot;sofia/gateway/Server-1/$1&quot;/&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">       &lt;action
application=&quot;bridge&quot; data=&quot;sofia/gateway/Server-2/$1&quot;/&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">   &lt;/condition&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">&lt;/extension&gt;</span></p>

<p class="MsoNormal"> </p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">&lt;extension name=&quot;PSTN&quot;&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">   &lt;condition
field=&quot;destination_number&quot; expression=&quot;^(\d{10})$&quot;&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">       &lt;action
application=&quot;bridge&quot; data=&quot;sofia/gateway/Voice Gateway/$1&quot;/&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">   &lt;/condition&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">&lt;/extension&gt;</span></p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">In the sip profiles/eternal.xml file, I have the following
major settings:</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">  &lt;settings&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">    &lt;param
name=&quot;inbound-proxy-media&quot; value=&quot;false&quot;/&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">    &lt;param
name=&quot;disable-transcoding&quot; value=&quot;false&quot;/&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">    &lt;param name=&quot;inbound-late-negotiation&quot;
value=&quot;true&quot;/&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">    &lt;param
name=&quot;user-agent-string&quot; value=&quot;My Company Name&quot;/&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">    &lt;param
name=&quot;disable-register&quot; value=&quot;true&quot;/&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">    &lt;param
name=&quot;inbound-codec-negotiation&quot; value=&quot;generous&quot;/&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">    &lt;param
name=&quot;inbound-codec-prefs&quot; value=&quot;G729,PCMU&quot;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">    &lt;param
name=&quot;outbound-codec-prefs&quot; value=&quot;G729,PCMU&quot;/&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">    &lt;param
name=&quot;media-option&quot; value=&quot;resume-media-on-hold&quot;/&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">    &lt;param
name=&quot;stun-enabled&quot; value=&quot;false&quot;/&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">    &lt;param name=&quot;debug&quot;
value=&quot;0&quot;/&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">    &lt;param
name=&quot;sip-trace&quot; value=&quot;no&quot;/&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">    &lt;param
name=&quot;rfc2833-pt&quot; value=&quot;101&quot;/&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">    &lt;param
name=&quot;sip-port&quot; value=&quot;5080&quot;/&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">    &lt;param name=&quot;rtp-ip&quot;
value=&quot;X.X.X.X&quot;/&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">    &lt;param name=&quot;sip-ip&quot;
value=&quot;X.X.X.X&quot;/&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">    &lt;param
name=&quot;dialplan&quot; value=&quot;XML&quot;/&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">    &lt;param
name=&quot;context&quot; value=&quot;public&quot;/&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">    &lt;param
name=&quot;dtmf-duration&quot; value=&quot;2000&quot;/&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">    &lt;param
name=&quot;rtp-timer-name&quot; value=&quot;soft&quot;/&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">    &lt;param
name=&quot;rtp-timeout-sec&quot; value=&quot;300&quot;/&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">    &lt;param
name=&quot;rtp-hold-timeout-sec&quot; value=&quot;1800&quot;/&gt;</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">  &lt;/settings&gt;</span></p>

<p class="MsoNormal"><span style="font-size: 9pt; font-family: &quot;Courier New&quot;;">&lt;/profile&gt;</span></p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Currently, I’m experiencing two issues.</p>

<p class="MsoNormal"> </p>

<p><span>1.<span style="font: 7pt &quot;Times New Roman&quot;;">      
</span></span>Inbound calls work as long as I’m using “inbound-proxy-media”.
When I disable that setting and force transcoding, the phone rings but
immediately hangs up when I pick up the receiver. I see an “Incompatible
Destination” message on the console.</p>

<p><span>2.<span style="font: 7pt &quot;Times New Roman&quot;;">      
</span></span>Outbound calls don’t work at all. On the console,
I see “407 Proxy Authentication Required”. If I’m using the
external profile, how could it require authentication? </p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Any ideas? </p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Thanks,</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Ken Fulmer</p>

<p class="MsoNormal"> </p>

</div>

</div>


<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>