[stun-server] #also tried without stun-server module
enabled=true
bind-address=0.0.0.0
port=3478
[module::Registrar]
enabled=true
reg-domains=sip.192.168.x.y.xip.io #also tried sip.example.org and localhost
db-implementation=internal
[module::Authentication]
enabled=true
auth-domains=sip.192.168.x.y.xip.io #also tried sip.example.org and localhost
db-implementation=file
datasource=/etc/flexisip/users.db.txt`
/etc/flexisip/users.db.txt file :
`version:1
test1@sip.192.168.x.y.xip.io clrtxt:123456 ; #updated the domains each time per flexisip.conf file i.e. sip.example.org
test2@sip.192.168.x.y.xip.io clrtxt:123456 ;`
systemctl status flexisip-proxy
`● flexisip-proxy.service - Flexisip proxy server
Loaded: loaded (/lib/systemd/system/flexisip-proxy.service; disabled; vendor preset: enabled)
Active: active (running) since Sun 2020-08-09 19:26:31 EDT; 5h 7min ago
Docs: http://www.linphone.org/technical-corner/flexisip/overview
Process: 8650 ExecStart=/opt/belledonne-communications/bin/flexisip --server proxy --daemon --syslog --pidfile /var/run/flexisip-proxy.pid (code=exited, status=0/SUCCESS)
Main PID: 8652 (flexisip)
Tasks: 6 (limit: 4666)
CGroup: /system.slice/flexisip-proxy.service
├─8652 /opt/belledonne-communications/bin/flexisip --server proxy --daemon --syslog --pidfile /var/run/flexisip-proxy.pid
└─8653 /opt/belledonne-communications/bin/flexisip --server proxy --daemon --syslog --pidfile /var/run/flexisip-proxy.pid
Aug 09 19:26:31 linux systemd[1]: Stopped Flexisip proxy server.
Aug 09 19:26:31 linux systemd[1]: Starting Flexisip proxy server...
Aug 09 19:26:31 linux flexisip[8650]: 2020-08-09 19:26:31:365 bctbx-error-[LAUNCHER] Watchdog PID: 8652
Aug 09 19:26:31 linux flexisip[8653]: Writing logs in : /var/opt/belledonne-communications/log/flexisip/flexisip-proxy.log
Aug 09 19:26:31 linux flexisip[8653]: DoSProtection: '/sbin/iptables -w -F FLEXISIP 2>&1' failed with output 'iptables: No chain/target/match by that name.
'.
Aug 09 19:26:31 linux flexisip[8653]: DoSProtection: '/sbin/ip6tables -w -F FLEXISIP 2>&1' failed with output 'ip6tables: No chain/target/match by that name.
'.
Aug 09 19:26:31 linux flexisip[8653]: Cannot open domain registration configuration file '/etc/flexisip/domain-registrations.conf'
Aug 09 19:26:31 linux systemd[1]: Started Flexisip proxy server.`
When I try to connect from Linphone application on Android phone that is on the same network with the below parameters:
Username: test1
Password: 123456
Domain: sip.192.168.x.y.xip.io #updated per flexisip.conf file
Transport: UDP or TCP
I am getting "Connection failed" error.
Can anyone let me why it is failing to connect?
Thank you!
Hello,
I am trying to get Flexisip server running with minimal configuration, but it has problems connecting from Linphone application.
Flexisip is running on Ubuntu 18.04 VM on VIrtualBox VM on Windows 10 host machine. The VM has 2 network adapters: NAT and Host-only.
Flexisip is installed following the procedures from its wiki page https://wiki.linphone.org/xwiki/wiki/public/view/Flexisip/1.%20Installation/ for Ubuntu.
After successful installation, minimal configuration is done following the wiki page as well: https://wiki.linphone.org/xwiki/wiki/public/view/Flexisip/HOWTOs/Minimal%20registrar%20with%20authentication/
flexisip.conf: `[global] aliases=localhost default-servers=proxy presence transports=sip:*
[stun-server] #also tried without stun-server module enabled=true bind-address=0.0.0.0 port=3478
[module::Registrar] enabled=true reg-domains=sip.192.168.x.y.xip.io #also tried sip.example.org and localhost db-implementation=internal
[module::Authentication] enabled=true auth-domains=sip.192.168.x.y.xip.io #also tried sip.example.org and localhost db-implementation=file datasource=/etc/flexisip/users.db.txt`
/etc/flexisip/users.db.txt file : `version:1
test1@sip.192.168.x.y.xip.io clrtxt:123456 ; #updated the domains each time per flexisip.conf file i.e. sip.example.org test2@sip.192.168.x.y.xip.io clrtxt:123456 ;`
systemctl status flexisip-proxy `● flexisip-proxy.service - Flexisip proxy server Loaded: loaded (/lib/systemd/system/flexisip-proxy.service; disabled; vendor preset: enabled) Active: active (running) since Sun 2020-08-09 19:26:31 EDT; 5h 7min ago Docs: http://www.linphone.org/technical-corner/flexisip/overview Process: 8650 ExecStart=/opt/belledonne-communications/bin/flexisip --server proxy --daemon --syslog --pidfile /var/run/flexisip-proxy.pid (code=exited, status=0/SUCCESS) Main PID: 8652 (flexisip) Tasks: 6 (limit: 4666) CGroup: /system.slice/flexisip-proxy.service ├─8652 /opt/belledonne-communications/bin/flexisip --server proxy --daemon --syslog --pidfile /var/run/flexisip-proxy.pid └─8653 /opt/belledonne-communications/bin/flexisip --server proxy --daemon --syslog --pidfile /var/run/flexisip-proxy.pid
Aug 09 19:26:31 linux systemd[1]: Stopped Flexisip proxy server. Aug 09 19:26:31 linux systemd[1]: Starting Flexisip proxy server... Aug 09 19:26:31 linux flexisip[8650]: 2020-08-09 19:26:31:365 bctbx-error-[LAUNCHER] Watchdog PID: 8652 Aug 09 19:26:31 linux flexisip[8653]: Writing logs in : /var/opt/belledonne-communications/log/flexisip/flexisip-proxy.log Aug 09 19:26:31 linux flexisip[8653]: DoSProtection: '/sbin/iptables -w -F FLEXISIP 2>&1' failed with output 'iptables: No chain/target/match by that name. '. Aug 09 19:26:31 linux flexisip[8653]: DoSProtection: '/sbin/ip6tables -w -F FLEXISIP 2>&1' failed with output 'ip6tables: No chain/target/match by that name. '. Aug 09 19:26:31 linux flexisip[8653]: Cannot open domain registration configuration file '/etc/flexisip/domain-registrations.conf' Aug 09 19:26:31 linux systemd[1]: Started Flexisip proxy server.`
When I try to connect from Linphone application on Android phone that is on the same network with the below parameters:
I am getting "Connection failed" error.
Can anyone let me why it is failing to connect? Thank you!