Hi!
I really become silly now. I have set up FPBX on my server (public IP, directly connected to backbone without firewall).
I tried to log into the extension account from outside (DSL line without firewall on briding NAT).
Every time I try to login into FPBX I get the following error:
SIP/2.0 401 Unauthorized
So I decided to try with Zoiper and other softphones instead of hardware phone first. No success - always SIP/2.0 401 Unauthorized.
Then I tried to use IAX instead of SIP - but same result …
it is impossible to connect from outside.
Then I tried to register from an other server in the same subnet - works.
So why it is impossible to connect from outside WAN?
I can’ t find any setting which blocks this registration.
Surly SIP extension is set to qualify and nat = yes.
Hope someone can help.
— (11 headers 0 lines) —
Using latest REGISTER request as basis request
Sending to 103.78.169.121 : 59709 (NAT)
<— Transmitting (NAT) to 103.78.169.121:59709 —>
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.1.54:5060;branch=z9hG4bKk74Wk3Q4lTjn5nPu;received=103.78.169.121
From: “1234” < sip:[email protected] >;tag=rb8Dr9sNjmx84Q0D
To: “1234” < sip:[email protected] >
Call-ID: [email protected]
CSeq: 22954 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Contact: < sip:[email protected] ><---- can anybody explain this? server IP is 111.222.333.444
Content-Length: 0 <---- 111.222.333.42 is second network card on same server.
<------------>
<— Transmitting (NAT) to 103.78.169.121:59709 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.1.54:5060;branch=z9hG4bKk74Wk3Q4lTjn5nPu;received=103.78.169.121
From: “1234” < sip:[email protected] >;tag=rb8Dr9sNjmx84Q0D
To: “1234” < sip:[email protected] >;tag=as562fbcaf
Call-ID: [email protected]
CSeq: 22954 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
WWW-Authenticate: Digest algorithm=MD5, realm=“asterisk”, nonce="6114a0a2"
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog ‘[email protected]’ in 32000 ms (Method: REGISTER)
stupidbox*CL I>
<— SIP read from 213.66.202.129:10468 —>
<------------->
— (0 headers 0 lines) Nat keepalive —
stupidbox*CLI >
<— SIP read from 213.66.202.129:10469 —>
<------------->
— (0 headers 0 lines) Nat keepalive —
stupidbox*CLI >
<— SIP read from 103.78.169.121:59709 —>
REGISTER sip:111.222.333.444 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.54:5060;branch=z9hG4bKk74Wk3Q4lTjn5nPu
Max-Forwards: 7
User-Agent: eHOP8T
From: “1234” < sip:[email protected] >;tag=rb8Dr9sNjmx84Q0D
To: “1234” < sip:[email protected] >
Call-ID: [email protected]
CSeq: 22954 REGISTER
Contact: < sip:[email protected]:5060 >
Expires: 3610
Content-Length: 0
<------------->
— (11 headers 0 lines) —
Using latest REGISTER request as basis request
Sending to 103.78.169.121 : 59709 (NAT)
<— Transmitting (NAT) to 103.78.169.121:59709 —>
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.1.54:5060;branch=z9hG4bKk74Wk3Q4lTjn5nPu;received=103.78.169.121
From: “1234” < sip:[email protected] >;tag=rb8Dr9sNjmx84Q0D
To: “1234” < sip:[email protected] >
Call-ID: [email protected]
CSeq: 22954 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Contact: < sip:[email protected] >
Content-Length: 0
<------------>
<— Transmitting (NAT) to 83.78.169.121:59709 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.1.54:5060;branch=z9hG4bKk74Wk3Q4lTjn5nPu;received=103.78.169.121
From: “1234” < sip:[email protected] >;tag=rb8Dr9sNjmx84Q0D
To: “1234” < sip:[email protected] >;tag=as562fbcaf
Call-ID: [email protected]
CSeq: 22954 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
WWW-Authenticate: Digest algorithm=MD5, realm=“asterisk”, nonce="6114a0a2"
Content-Length: 0
After searching for solution for 3 days now I decided to post my help request here
Thanks.