BelledonneCommunications / flexisip

Linphone.org mirror for flexisip (git://git.linphone.org/flexisip.git)
http://flexisip.org
GNU Affero General Public License v3.0
140 stars 68 forks source link

Group Chat failing with Flexisip Server #104

Open Emil-Suleymanli opened 3 years ago

Emil-Suleymanli commented 3 years ago

Hi All,

I have successfully built the app in Android Studio and it works. I have my own Flexisip server running, and I am trying to integrate it with the app, specifically for group chat function.

Since group chat feature is supported for linphone.org accounts only, I updated the sip.linphone.org domain address in linphone_assistant_create.rc and non_localizable_custom.xml files with my own Flexisip server's domain address.

When I run the app, "Use Linphone Account" > adding the username and password for the user in MariaDB, it registers with my Flexisip server and I can send the messages between the individual users. However, when I try to create a chat room, it is stuck and keeps loading after I add participants and name a group with no success.

Below is my configuration for the Flexisip server. I have replaced the domain with sip.example.com. (I have tried with and without Media Relay module)

[global]
aliases=sip.example.com
default-servers=proxy presence conference
transports=sip:sip.example.com:5060

[stun-server]
enabled=true
bind-address=0.0.0.0
port=3478

[conference-server]
enabled=true
transport=sip:sip.example.com:6065;transport=tcp
conference-factory-uri=sip:conference-factory@sip.example.com
enable-one-to-one-chat-room=true
outbound-proxy=sip:sip.example.com
database-backend=mysql
database-connection-string=db=flexisip user=flexisip password='flexisip' host=localhost
check-capabilities=true

[module::Authentication]
enabled=true
auth-domains=sip.example.com
db-implementation=soci
soci-backend=mysql
soci-connection-string=db=flexisip user=flexisip password='flexisip' host=localhost
soci-password-request=select password, algorithm from accounts where login = :id and domain = :domain

[module::Registrar]
enabled=true
reg-domains=sip.example.com
reg-on-response=false
max-contacts-by-aor=12
unique-id-parameters=+sip.instance pn-tok line
max-expires=86400
min-expires=60
force-expires= -1
static-records-file=
static-records-timeout=600
db-implementation=redis
redis-server-domain=localhost
redis-server-port=6379
redis-auth-password=
redis-server-timeout=1500
redis-slave-check-period=60
service-route=
name-message-expires=message-expires
register-expire-randomizer-max=0

[module::MediaRelay]
enabled=true
filter=
nortpproxy=nortpproxy
sdp-port-range-min=10000
sdp-port-range-max=10500
bye-orphan-dialogs=false
max-calls=0
force-relay-for-non-ice-targets=true
prevent-loops=true
early-media-relay-single=true
max-early-media-per-call=0
inactivity-period=3600
force-public-ip-for-sdp-masquerading=false

Does anyone know what is the reason for group chat failing?

Thanks in advance!

Emil-Suleymanli commented 3 years ago

@Viish , It might be a problem with my Flexisip conference server configuration, but I just want to make sure if I am doing the correct changes on the client side on Linphone Android app.

Should replacing the default domains to my Flexisip server URL in linphone_assistant_create.rc and non_localizable_custom.xml files be sufficient or are there other chanages I have to make?

The goal is to make group chat function working with the custom Flexisip server instead of Linphone.org.

Also, in LinphoneManager.java file, to migrate linphone accounts to have conference, LIME X3Dh server is used which points to linphone.org. I tried to remove it and run the app just to have a group chat even without end-to-end encryption. But the user is still not able to create a chat room.

Appreciate your help.