<HTML>
<HEAD>
<TITLE>Connect external phone </TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hello list,<BR>
<BR>
I keep getting this authentication error when I attempt to connect a device from the outside. &nbsp;I followed the wiki that suggest creating a separate profile to handle external device connections.<BR>
<BR>
Here&#8217;s my external xml file<BR>
&lt;profile name=&quot;gexternal5090&quot;&gt;<BR>
&nbsp;&nbsp;&lt;!-- This profile is only for outbound registrations to providers --&gt;<BR>
&nbsp;&nbsp;&lt;gateways&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;X-PRE-PROCESS cmd=&quot;include&quot; data=&quot;external/*.xml&quot;/&gt;<BR>
&nbsp;&nbsp;&lt;/gateways&gt;<BR>
&nbsp;&nbsp;&lt;aliases&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;alias name=&quot;outbound&quot;/&gt;<BR>
&nbsp;&nbsp;&lt;/aliases&gt;<BR>
&nbsp;&nbsp;&lt;domains&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;domain name=&quot;$${domain}&quot; parse=&quot;true&quot;/&gt;<BR>
&nbsp;&nbsp;&lt;/domains&gt;<BR>
&nbsp;&nbsp;&lt;settings&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;param name=&quot;debug&quot; value=&quot;0&quot;/&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;param name=&quot;sip-trace&quot; value=&quot;no&quot;/&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;param name=&quot;rfc2833-pt&quot; value=&quot;101&quot;/&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;param name=&quot;sip-port&quot; value=&quot;5090&quot;/&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;param name=&quot;dialplan&quot; value=&quot;XML&quot;/&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;param name=&quot;context&quot; value=&quot;public&quot;/&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;param name=&quot;dtmf-duration&quot; value=&quot;100&quot;/&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;param name=&quot;codec-prefs&quot; value=&quot;$${outbound_codec_prefs}&quot;/&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;param name=&quot;hold-music&quot; value=&quot;$${moh_uri}&quot;/&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;param name=&quot;use-rtp-timer&quot; value=&quot;true&quot;/&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;param name=&quot;rtp-timer-name&quot; value=&quot;soft&quot;/&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;param name=&quot;manage-presence&quot; value=&quot;false&quot;/&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;param name=&quot;inbound-codec-negotiation&quot; value=&quot;generous&quot;/&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;param name=&quot;nonce-ttl&quot; value=&quot;60&quot;/&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;param name=&quot;auth-calls&quot; value=&quot;false&quot;/&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;param name=&quot;rtp-timeout-sec&quot; value=&quot;1800&quot;/&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;param name=&quot;rtp-ip&quot; value=&quot;$${local_ip_v4}&quot;/&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;param name=&quot;sip-ip&quot; value=&quot;$${local_ip_v4}&quot;/&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;param name=&quot;ext-rtp-ip&quot; value=&quot;71.133.39.219&quot;/&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;param name=&quot;ext-sip-ip&quot; value=&quot;71.133.39.219&quot;/&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;param name=&quot;rtp-timeout-sec&quot; value=&quot;300&quot;/&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;param name=&quot;rtp-hold-timeout-sec&quot; value=&quot;1800&quot;/&gt;<BR>
&nbsp;&nbsp;&lt;/settings&gt;<BR>
&lt;/profile&gt;<BR>
<BR>
I did a siptrace on the incoming connection attempt<BR>
&nbsp;&nbsp;------------------------------------------------------------------------<BR>
&nbsp;&nbsp;&nbsp;REGISTER sip:71.133.39.219:5090 SIP/2.0<BR>
&nbsp;&nbsp;&nbsp;Via: SIP/2.0/UDP x.x.x.x:5090;branch=z9hG4bKvvaun9r6.1u8ej<BR>
&nbsp;&nbsp;&nbsp;Max-Forwards: 70<BR>
&nbsp;&nbsp;&nbsp;From: &lt;sip:<a href="1001@71.133.39.219">1001@71.133.39.219</a>&gt;;tag=i9w3pt4bm4tpsl<BR>
&nbsp;&nbsp;&nbsp;To: &lt;sip:<a href="1001@71.133.39.219">1001@71.133.39.219</a>&gt;<BR>
&nbsp;&nbsp;&nbsp;Call-ID: fo33ia7sk6qy9vnk6h<BR>
&nbsp;&nbsp;&nbsp;CSeq: 75203 REGISTER<BR>
&nbsp;&nbsp;&nbsp;Contact: &lt;sip:<a href="1001@x.x.x.x:5090">1001@x.x.x.x:5090</a>;line=20880&gt;<BR>
&nbsp;&nbsp;&nbsp;Allow: INVITE, CANCEL, BYE, ACK, REGISTER, OPTIONS, REFER, SUBSCRIBE, NOTIFY, MESSAGE, INFO, PRACK<BR>
&nbsp;&nbsp;&nbsp;Expires: 600<BR>
&nbsp;&nbsp;&nbsp;User-Agent: snom-m3-SIP/02.02 (MAC=0004132AD0BE; HW=255)<BR>
&nbsp;&nbsp;&nbsp;Content-Length: 0<BR>
&nbsp;&nbsp;&nbsp;<BR>
&nbsp;&nbsp;&nbsp;------------------------------------------------------------------------<BR>
send 591 bytes to udp/[x.x.x.x]:5090 at 01:26:47.109165:<BR>
&nbsp;&nbsp;&nbsp;------------------------------------------------------------------------<BR>
&nbsp;&nbsp;&nbsp;SIP/2.0 401 Unauthorized<BR>
&nbsp;&nbsp;&nbsp;Via: SIP/2.0/UDP 10.0.10.231:5090;branch=z9hG4bKvvaun9r6.1u8ej;received=207.47.31.108<BR>
&nbsp;&nbsp;&nbsp;From: &lt;sip:<a href="1001@71.133.39.219">1001@71.133.39.219</a>&gt;;tag=i9w3pt4bm4tpsl<BR>
&nbsp;&nbsp;&nbsp;To: &lt;sip:<a href="1001@71.133.39.219">1001@71.133.39.219</a>&gt;;tag=Zc7mBaBN723Bp<BR>
&nbsp;&nbsp;&nbsp;Call-ID: fo33ia7sk6qy9vnk6h<BR>
&nbsp;&nbsp;&nbsp;CSeq: 75203 REGISTER<BR>
&nbsp;&nbsp;&nbsp;User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-<BR>
&nbsp;&nbsp;&nbsp;Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, REFER, NOTIFY<BR>
&nbsp;&nbsp;&nbsp;Supported: timer, precondition, path, replaces<BR>
&nbsp;&nbsp;&nbsp;WWW-Authenticate: Digest realm=&quot;71.133.39.219&quot;, nonce=&quot;bd1ecf94-5589-11df-b3f4-c1a375adf51a&quot;, algorithm=MD5, qop=&quot;auth&quot;<BR>
&nbsp;&nbsp;&nbsp;Content-Length: 0<BR>
&nbsp;&nbsp;&nbsp;<BR>
&nbsp;&nbsp;&nbsp;------------------------------------------------------------------------<BR>
&nbsp;<BR>
Thoughts?<BR>
Thanks<BR>
Sean</SPAN></FONT>
</BODY>
</HTML>