Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
Cannot be authenticated
Author Message
Russell
Brekeke Junior Member


Joined: 22 Jul 2015
Posts: 8
Location: Taiwan

PostPosted: Wed Jul 22, 2015 7:08 pm    Post subject: Cannot be authenticated Reply with quote

1. Brekeke Product Name and Version: SIP Server (3.4.6.3/411)

2. Java version: 1.7

3. OS type and the version: Linux

4. UA (phone), gateway or other hardware/software involved:

X-Lite, Zoiper (iOS SIP Phone), ABTO (iOS SIP Phone)

5. Your problem:

I just install the sip.war on tomcat 7 and created 3~4 AU accounts. I left the rest of the setting by default. All 3 SIP client phones were unable to register as users.

PS. 1. the firewall has the 5060 port (both UDP and TCP) open to public.

2. The dial plan has register records:

No. Session ID Method Request URI Rule Source IP Destination IP Response Code Time
416 REGISTER sip:x.x.x.x register x.x.x.x:7354 (TCP) 02:39:05.945
417 REGISTER sip:x.x.x.x register x.x.x.x:35482 (UDP) 02:39:10.028
418 REGISTER sip:x.x.x.x register x.x.x.x:44441 (UDP) 02:39:39.115
419 REGISTER sip:x.x.x.x register x.x.x.x:56894 (TCP) 02:40:07.188
420 REGISTER sip:x.x.x.x register x.x.x.x:44441 (UDP) 02:40:33.080
421 REGISTER sip:x.x.x.x register y.y.y.y:30051 (TCP) 02:41:05.753
422 REGISTER sip:x.x.x.x register x.x.x.x:44441 (UDP) 02:41:26.142
423 REGISTER sip:x.x.x.x register x.x.x.x:1666 (TCP) 02:42:08.220
424 REGISTER sip:x.x.x.x register y.y.y.y:4200 (TCP) 02:43:07.204
425 REGISTER sip:x.x.x.x register x.x.x.x:39094 (UDP) 02:43:15.321
Back to top
View user's profile
Mike
Support Team


Joined: 07 Mar 2005
Posts: 733
Location: Sunny San Mateo

PostPosted: Wed Jul 22, 2015 9:56 pm    Post subject: Reply with quote

Check the SIP Server's interface IP address in the [Status] page.

Is it the IP address what you set as the SIP proxy in SIP client's setting?
Back to top
View user's profile Visit poster's website
Russell
Brekeke Junior Member


Joined: 22 Jul 2015
Posts: 8
Location: Taiwan

PostPosted: Wed Jul 22, 2015 10:07 pm    Post subject: The server IP Address Reply with quote

Hi:

No, it's the private IP address (similar to 192.168.x.x) instead of the public address.

I fixed the problem by adding a new interface address in "Configure" page.


Thanks for your help.

Russell
Back to top
View user's profile
ambrosio
Brekeke Master Guru


Joined: 27 Mar 2008
Posts: 215

PostPosted: Thu Jul 23, 2015 9:47 am    Post subject: Reply with quote

Which Linux distribution are you using?
Brekeke SIP Server picks OS's interface IP addresses automatically so you don't have to set it manually in most cases.

Are you using a router's port-forwarding to forward SIP packets to the Brekeke SIP Server?
Back to top
View user's profile
Russell
Brekeke Junior Member


Joined: 22 Jul 2015
Posts: 8
Location: Taiwan

PostPosted: Thu Jul 23, 2015 6:11 pm    Post subject: Reply with quote

Hi,

Yes, it's behind a firewall. So there is no way that the server itself would know its own public IP.

It's AWS-Linux. I didn't know that the sip server has to know its public IP before it would authorize users.

Thanks,
Back to top
View user's profile
ambrosio
Brekeke Master Guru


Joined: 27 Mar 2008
Posts: 215

PostPosted: Thu Jul 23, 2015 10:45 pm    Post subject: Reply with quote

Have you read this? http://wiki.brekeke.com/wiki/Set-port-forwarding

If your router supports UPnP, the SIP server can pick a public IP automatically.


> I didn't know that the sip server has to know its public IP before it would authorize users

Because SIP packet's request-URI will indicate a public IP address if it is sent from Internet.
Back to top
View user's profile
Russell
Brekeke Junior Member


Joined: 22 Jul 2015
Posts: 8
Location: Taiwan

PostPosted: Thu Jul 23, 2015 11:21 pm    Post subject: Reply with quote

Hi,

Thanks.

I believe the linux we are currently using doesn't have UPnP. Hence, I have to configure the extra network interface like you suggest in that document.
Back to top
View user's profile
ambrosio
Brekeke Master Guru


Joined: 27 Mar 2008
Posts: 215

PostPosted: Fri Jul 24, 2015 9:11 am    Post subject: Reply with quote

Brekeke SIP Server has own UPnP control-point feature, so Linux doesn't have to support it.
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    Brekeke Forum Index » Brekeke SIP Server Forum All times are GMT - 7 Hours
Page 1 of 1