Cannot connect from Smartphone (Brekeke Phone) to BSS

Discuss any topic about Brekeke PBX.

Moderator: Brekeke Support Team

Post Reply
Truong
Posts: 18
Joined: Tue Apr 21, 2020 10:40 pm
Location: Japan

Cannot connect from Smartphone (Brekeke Phone) to BSS

Post by Truong »

1. Brekeke Product Name and Version: 3.9.5.8

2. Java version: 1.8.0_251

3. OS type and the version: Window 10

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

5. Your problem:
when connect from Smartphone by software Brekeke phone, I can not connect, message as below:
[Error
Failed to login to pbx, err:Timeout ]

Please support me.
Thank you so much!
Truong - Nguyen
Truong
Posts: 18
Joined: Tue Apr 21, 2020 10:40 pm
Location: Japan

Post by Truong »

I am sorry but with brekeke PBX, I am newbie. It is very difficult for me to connect from Smartphone (Brekeke phone) to Brekeke SIP Server although i tried with document.
I dont know where is wrong and if you did setup it successfully then support me.
My problem:
- i already get 02 file certification and key.
But in the file server.xml i try to config but not run.

Thank you so much!
Truong - Nguyen
Niloc
Posts: 70
Joined: Tue Sep 19, 2017 9:49 pm
Location: NL

Post by Niloc »

Where did you get key and certification files?
Truong
Posts: 18
Joined: Tue Apr 21, 2020 10:40 pm
Location: Japan

Post by Truong »

@Niloc: I have a domain, this domain did install certification.
I copy content key and save to file name: .key
copy content crt and save to file name: .crt
and then convert from 2 file .key and .crt to file .psk

I used this file .psk to configuration in the file server.xml
but I don't know where I did wrong. You have a lot of experience in this, could you please help me?

Thank you so much!
Truong - Nguyen
Tata
Posts: 223
Joined: Sun Jan 27, 2008 1:03 pm

Post by Tata »

Is it a certificate which the SIP client can accept?
If it is a self-signed certificate, the SIP client will not accept the certificate until you installed the certificate file in the client side.
Truong
Posts: 18
Joined: Tue Apr 21, 2020 10:40 pm
Location: Japan

Post by Truong »

it is not a self-signed certificate.

Currently Apache Tomcat service can not start, when try to start it show message:

Windows could not start the Apache Tomcat 8.5 Tomcat8 service on Local Computer.
Error 1053: The service did not respond to the start or control request in a timely fashion.


I don't know that relate to my problem or not.

Thank you!
Truong - Nguyen
llucy
Posts: 52
Joined: Fri Jan 31, 2014 1:08 am

Post by llucy »

Truong,

I think this page would help,

https://tomcat.apache.org/tomcat-8.0-doc/ssl-howto.html

You need to describe the details of the configuration you have changed.

Lucy
Truong
Posts: 18
Joined: Tue Apr 21, 2020 10:40 pm
Location: Japan

Post by Truong »

@Lucy:
Thank you so much with your suggest. I will research with your link which you sent.

Thank you!
Truong - Nguyen
Truong
Posts: 18
Joined: Tue Apr 21, 2020 10:40 pm
Location: Japan

Post by Truong »

@Lucy: I did try but can not success.

I did some step as below:
+ I get file .crt and file .key from domain.
and then convert to file .pfx

+ Go to to [SIP SERVER] -> [Configuration] -> [SIP] -> [Key and Certificate] and upload file above.

+ Access to path : C:\Program Files\Brekeke\pbx\conf
then creat new folder with name: keystore
paste file.pfx above to this folder.

+ Access to path: C:\Program Files\Brekeke\pbx\conf\server.xml
and add the code below:
[<Connector
protocol="org.apache.coyote.http11.Http11NioProtocol"
port="8443" maxThreads="200"
scheme="https" secure="true" SSLEnabled="true"
keystoreFile="C:\Program Files\Brekeke\pbx\conf\keystore\abc.pfx" keystorePass="123456"
clientAuth="false" sslProtocol="TLS"/>
]
I don't know where is wrong.
Please support me about this.
Thank you so much!
Truong - Nguyen
tuctran
Posts: 8
Joined: Thu Sep 04, 2014 7:12 pm

Post by tuctran »

Hello Truong,

I think, the keystorefile you added in the <Connector> element is not corrected. Please check following things and try again.
- Use .keystore instead of .pfx file. So convert the .crt to .keystore file (JKS) and use it.
- If you use Windows, you should add the path like this: keystoreFile="C:\\Program Files\\Brekeke\\pbx\\conf\\keystore\\<yourkeystore>.jks"


Thanks,
Truong
Posts: 18
Joined: Tue Apr 21, 2020 10:40 pm
Location: Japan

Post by Truong »

Hello Tuctran,
Thank you for your support, I got it.
I will try with your support.

Thank you!
Truong - Nguyen
Post Reply