Did you purchase g.729 licenses for this system? If not then you won't be able to transcode g.729 and the incompatible destination error will keep popping up if you're not in proxy media mode.<br><br>Where is the 407 coming from? If it'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"><<a href="mailto:kenfulmer@icstechnologysolutions.com">kenfulmer@icstechnologysolutions.com</a>></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: "Courier New";"><include></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> <gateway name="Server-1"></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> <param
name="username" value="gateway"/></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> <param
name="password" value="gateway"/></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> <param
name="realm" value=" X.X.X.X "/></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> <param
name="proxy" value=" X.X.X.X "/></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> <param
name="register" value="false"/></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> <param
name="context" value="public"/></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> </gateway></span></p>
<p class="MsoNormal"><span style="font-size: 9pt; font-family: "Courier New";"></include></span></p>
<p class="MsoNormal"><span style="font-size: 9pt; font-family: "Courier New";"> </span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"><include></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> <gateway name="Server-2"></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> <param
name="username" value="gateway"/></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> <param
name="password" value="gateway"/></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> <param
name="realm" value="X.X.X.X"/></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> <param
name="proxy" value="X.X.X.X"/></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> <param
name="register" value="false"/></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> <param
name="context" value="public"/></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> </gateway></span></p>
<p class="MsoNormal"><span style="font-size: 9pt; font-family: "Courier New";"></include></span></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"><include></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> <gateway name="Voice Gateway"></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> <param
name="username" value="gateway"/></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> <param
name="password" value="gateway"/></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> <param
name="realm" value="X.X.X.X"/></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> <param
name="proxy" value="X.X.X.X"/></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> <param
name="register" value="false"/></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> <param
name="context" value="public"/></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> </gateway></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"></include></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: "Courier New";"><extension name="PBX"></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> <condition
field="destination_number" expression="^(Directory Numbers)$"></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> <action
application="bridge" data="sofia/gateway/Server-1/$1"/></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> <action
application="bridge" data="sofia/gateway/Server-2/$1"/></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> </condition></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"></extension></span></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"><extension name="PSTN"></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> <condition
field="destination_number" expression="^(\d{10})$"></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> <action
application="bridge" data="sofia/gateway/Voice Gateway/$1"/></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> </condition></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"></extension></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: "Courier New";"> <settings></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> <param
name="inbound-proxy-media" value="false"/></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> <param
name="disable-transcoding" value="false"/></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> <param name="inbound-late-negotiation"
value="true"/></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> <param
name="user-agent-string" value="My Company Name"/></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> <param
name="disable-register" value="true"/></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> <param
name="inbound-codec-negotiation" value="generous"/></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> <param
name="inbound-codec-prefs" value="G729,PCMU"</span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> <param
name="outbound-codec-prefs" value="G729,PCMU"/></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> <param
name="media-option" value="resume-media-on-hold"/></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> <param
name="stun-enabled" value="false"/></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> <param name="debug"
value="0"/></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> <param
name="sip-trace" value="no"/></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> <param
name="rfc2833-pt" value="101"/></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> <param
name="sip-port" value="5080"/></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> <param name="rtp-ip"
value="X.X.X.X"/></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> <param name="sip-ip"
value="X.X.X.X"/></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> <param
name="dialplan" value="XML"/></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> <param
name="context" value="public"/></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> <param
name="dtmf-duration" value="2000"/></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> <param
name="rtp-timer-name" value="soft"/></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> <param
name="rtp-timeout-sec" value="300"/></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> <param
name="rtp-hold-timeout-sec" value="1800"/></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"> </settings></span></p>
<p class="MsoNormal"><span style="font-size: 9pt; font-family: "Courier New";"></profile></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 "Times New Roman";">
</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 "Times New Roman";">
</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>