I have had problems with Portech firmware using Chrome browser. The problem was that when I changed the password on the gateway it would apply that password to SIP PEERS as well. So, maybe, you are actually not having the right password in your SIP peer as well and hence your Asterisk sends Unauthorized.<div>
<br></div><div>-Bruce<br><br><div class="gmail_quote">On Tue, Apr 20, 2010 at 9:29 AM, Jonas Kellens <span dir="ltr">&lt;<a href="mailto:jonas.kellens@telenet.be">jonas.kellens@telenet.be</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">



  

<div bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Helvetica, Arial, sans-serif">With tcpdump
I saw that there were packets coming in from the GSM-gateway to the
public Asterisk-server.<br>
I saw nothing on the Asterisk-CLI that told me that there were attempts
to register, but a &quot;sip debug&quot; shows this :<br>
<br>
<small><font color="#333399">&lt;------------&gt;<br>
[Apr 20 15:07:41] Scheduling destruction of SIP dialog
&#39;<a href="mailto:0cd637c143e6667c4b5279b713b50403@192.168.1.25" target="_blank">0cd637c143e6667c4b5279b713b50403@192.168.1.25</a>&#39; in 32000 ms (Method:
REGISTER)<br>
[Apr 20 15:07:41] Really destroying SIP dialog
&#39;<a href="mailto:5c4fc9a47a3f5d545608747f451869f9@192.168.1.25" target="_blank">5c4fc9a47a3f5d545608747f451869f9@192.168.1.25</a>&#39; Method: REGISTER<br>
[Apr 20 15:07:41] <br>
&lt;--- SIP read from my_public_ip:5066 ---&gt;<br>
REGISTER <a>sip:my_asterisk_ip</a> SIP/2.0<br>
Via: SIP/2.0/UDP 192.168.1.25:5066;rport;branch=z9hG4bK959181a47a<br>
From: &quot;SIM 3&quot; <a>&lt;sip:simsim3@my_asterisk_ip&gt;</a>;tag=4c9ddc99<br>
To: &quot;SIM 3&quot; <a>&lt;sip:simsim3@my_asterisk_ip&gt;</a><br>
Call-ID: <a href="mailto:001816f82d8bf3d43f34faa82f344c03@192.168.1.25" target="_blank">001816f82d8bf3d43f34faa82f344c03@192.168.1.25</a><br>
Contact: <a>&lt;sip:simsim3@192.168.33.104:5060&gt;</a><br>
CSeq: 2354 REGISTER<br>
Max-Forwards: 70<br>
Expires: 60<br>
Allow: INVITE,CANCEL,ACK,BYE,NOTIFY,REFER,OPTIONS,INFO,MESSAGE,UPDATE<br>
User-Agent: Mv-37x (904290)<br>
Content-Length: 0<br>
<br>
<br>
&lt;-------------&gt;<br>
[Apr 20 15:07:41] --- (12 headers 0 lines) ---<br>
[Apr 20 15:07:41] Using latest REGISTER request as basis request<br>
[Apr 20 15:07:41] Sending to my_public_ip : 5066 (NAT)<br>
[Apr 20 15:07:41] <br>
&lt;--- Transmitting (NAT) to my_public_ip:5066 ---&gt;<br>
SIP/2.0 100 Trying<br>
Via: SIP/2.0/UDP
192.168.1.25:5066;branch=z9hG4bK959181a47a;received=my_public_ip;rport=5066<br>
From: &quot;SIM 3&quot; <a>&lt;sip:simsim3@my_asterisk_ip&gt;</a>;tag=4c9ddc99<br>
To: &quot;SIM 3&quot; <a>&lt;sip:simsim3@my_asterisk_ip&gt;</a><br>
Call-ID: <a href="mailto:001816f82d8bf3d43f34faa82f344c03@192.168.1.25" target="_blank">001816f82d8bf3d43f34faa82f344c03@192.168.1.25</a><br>
CSeq: 2354 REGISTER<br>
User-Agent: Asterisk PBX<br>
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY<br>
Supported: replaces<br>
Content-Length: 0<br>
<br>
<br>
&lt;------------&gt;<br>
[Apr 20 15:07:41] <br>
&lt;--- Transmitting (NAT) to my_public_ip:5066 ---&gt;<br>
SIP/2.0 401 Unauthorized<br>
Via: SIP/2.0/UDP
192.168.1.25:5066;branch=z9hG4bK959181a47a;received=my_public_ip;rport=5066<br>
From: &quot;SIM 3&quot; <a>&lt;sip:simsim3@my_asterisk_ip&gt;</a>;tag=4c9ddc99<br>
To: &quot;SIM 3&quot; <a>&lt;sip:simsim3@my_asterisk_ip&gt;</a>;tag=as09b99e8c<br>
Call-ID: <a href="mailto:001816f82d8bf3d43f34faa82f344c03@192.168.1.25" target="_blank">001816f82d8bf3d43f34faa82f344c03@192.168.1.25</a><br>
CSeq: 2354 REGISTER<br>
User-Agent: Asterisk PBX<br>
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY<br>
Supported: replaces<br>
WWW-Authenticate: Digest algorithm=MD5, realm=&quot;103001vc&quot;,
nonce=&quot;3c911c4a&quot;<br>
Content-Length: 0</font></small><br>
<br>
How come there is a register attempt that is &quot;Unauthorized&quot; and how
come this doesn&#39;t show on the CLI ??<br>
<br>
<br>
Kind regards,<br><font color="#888888">
<br>
Jonas.<br>
<br>
</font></font></font><div><div></div><div class="h5"><br>
Jonas Kellens wrote:
<blockquote type="cite"><font size="-1"><font face="Helvetica, Arial, sans-serif">Hello list,<br>
  <br>
has anyone experience with the Portech MV-374 GSM-gateway ?<br>
  <br>
I&#39;m trying to register the SIP-accounts to a public SIP-server but that
fails.<br>
  <br>
When trying to register to a local Asterisk-server, all goes well.<br>
  <br>
So anyone knows what special setting I need to make to register my
SIP-accounts/SIM-cards to a public IP ??</font></font></blockquote>
<font size="-1"><font face="Helvetica, Arial, sans-serif"><br>
</font></font>
</div></div></div>


<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br></div>