With tcpdump I saw that there were packets coming in from the GSM-gateway to the public Asterisk-server.
I saw nothing on the Asterisk-CLI that told me that there were attempts to register, but a "sip debug" shows this :

<------------>
[Apr 20 15:07:41] Scheduling destruction of SIP dialog '[email protected]' in 32000 ms (Method: REGISTER)
[Apr 20 15:07:41] Really destroying SIP dialog '[email protected]' Method: REGISTER
[Apr 20 15:07:41]
<--- SIP read from my_public_ip:5066 --->
REGISTER sip:my_asterisk_ip SIP/2.0
Via: SIP/2.0/UDP 192.168.1.25:5066;rport;branch=z9hG4bK959181a47a
From: "SIM 3" <sip:sims...@my_asterisk_ip>;tag=4c9ddc99
To: "SIM 3" <sip:sims...@my_asterisk_ip>
Call-ID: [email protected]
Contact: <sip:[email protected]:5060>
CSeq: 2354 REGISTER
Max-Forwards: 70
Expires: 60
Allow: INVITE,CANCEL,ACK,BYE,NOTIFY,REFER,OPTIONS,INFO,MESSAGE,UPDATE
User-Agent: Mv-37x (904290)
Content-Length: 0


<------------->
[Apr 20 15:07:41] --- (12 headers 0 lines) ---
[Apr 20 15:07:41] Using latest REGISTER request as basis request
[Apr 20 15:07:41] Sending to my_public_ip : 5066 (NAT)
[Apr 20 15:07:41]
<--- Transmitting (NAT) to my_public_ip:5066 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.1.25:5066;branch=z9hG4bK959181a47a;received=my_public_ip;rport=5066
From: "SIM 3" <sip:sims...@my_asterisk_ip>;tag=4c9ddc99
To: "SIM 3" <sip:sims...@my_asterisk_ip>
Call-ID: [email protected]
CSeq: 2354 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Content-Length: 0


<------------>
[Apr 20 15:07:41]
<--- Transmitting (NAT) to my_public_ip:5066 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.1.25:5066;branch=z9hG4bK959181a47a;received=my_public_ip;rport=5066
From: "SIM 3" <sip:sims...@my_asterisk_ip>;tag=4c9ddc99
To: "SIM 3" <sip:sims...@my_asterisk_ip>;tag=as09b99e8c
Call-ID: [email protected]
CSeq: 2354 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
WWW-Authenticate: Digest algorithm=MD5, realm="103001vc", nonce="3c911c4a"
Content-Length: 0


How come there is a register attempt that is "Unauthorized" and how come this doesn't show on the CLI ??


Kind regards,

Jonas.


Jonas Kellens wrote:
Hello list,

has anyone experience with the Portech MV-374 GSM-gateway ?

I'm trying to register the SIP-accounts to a public SIP-server but that fails.

When trying to register to a local Asterisk-server, all goes well.

So anyone knows what special setting I need to make to register my SIP-accounts/SIM-cards to a public IP ??

-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to