Solved [FIXED] SBC not working properly on raspberrypi

Status
Not open for further replies.

jonathanv

Joined
Jun 27, 2017
Messages
11
Reaction score
0
Hey,

Since few days, I have a specific bug with my Raspberry Pi 3.

I have 2 SBC with the same 3cxsbc.conf

- raspberry pi 3, which is not working
  • Arm
  • Updated Raspian (debian 8)
  • Version 15.5.2607
- kvm virtual machine, which is working fine
  • - amd64
  • - Updated debian 8
  • - Version 15.5.2607
Here is the 3cxsbc.conf file :

Code:
[General]
ReconnectInterval = 30 # seconds
PrintStatsInterval = 30 # seconds
FailoverInterval = 90 # seconds

[Log]
Type = file    # cout, cerr, file, syslog
Level = VERBOSE    # NONE", "EMERG", "ALERT", "CRIT", "ERR", "WARNING", "NOTICE", "INFO", "DEBUG", "STACK", "CERR", "VERBOSE"
File = "/var/log/3cxsbc.log"

[Bridge/123456]
ID = 123456
Password = XXXXXXXX

TunnelAddr =ip.ip.ip.ip 
TunnelPort = 5090

#Optional
Name = "3CX SBC"

PbxSipIP =ip.ip.ip.ip 
PbxSipPort =5060    

SecurityMode = 0

So now I'll be focus on RPI3.
When I try to start application with :
  • /usr/sbin/3cxsbc -p /var/run/3cxsbc.pid /etc/3cxsbc.conf
  • sudo /etc/init.d/3cxsbc start
  • service 3cxsbc start
It's the same, application doesn't start. sbc send packets to server ( tcpdump trace but server doesn't send response. I guess because sbc stop running)

Here is the application response :
Code:
  # /usr/sbin/3cxsbc -p /var/run/3cxsbc.pid /etc/3cxsbc.conf
argument = /etc/3cxsbc.conf
Application's full path-name = /usr/sbin/3cxsbc
Full app pathname: /usr/sbin/3cxsbc
Application path: /usr/sbin/
** Section: [General]

** Section: [Log]

** Section: [Bridge/123456]

Finished
log directory: File exists
pure virtual method called
terminate called without an active exception
Aborted

And the debug application logfile (stuck because of 10.000 chars limitaiton on forum ^^) : https://pastebin.com/2MsWeKfN

Now, when I start application with
  • /usr/sbin/3cxsbc -p /var/run/3cxsbc.pid /etc/3cxsbc.conf &
  • strace /usr/sbin/3cxsbc -p /var/run/3cxsbc.pid /etc/3cxsbc.conf
It works. So i must start application in background to work. That's very weird.

Does someone already have / had this problem ?
Do I have any way to increase logs ?

I can provide tcpdump trace, strace ...

Thanks and regards
Jonathan
 
Thanks, but I also tried to uninstall, cleanup files and reinstall.
This is not really an application problem, as It works fine when I launch it in background with &

This is an app crash signal problem or someting similar :/
 
Actually it doesn't start anymore after a full new install :mad:

Code:
  # /usr/sbin/3cxsbc -p /var/run/3cxsbc.pid /etc/3cxsbc.conf 
argument = /etc/3cxsbc.conf
Application's full path-name = /usr/sbin/3cxsbc
Full app pathname: /usr/sbin/3cxsbc
Application path: /usr/sbin/
** Section: [General]

** Section: [Log]

** Section: [Bridge/123456]

Finished
log directory: File exists
pure virtual method called
terminate called without an active exception
Aborted
 
I've just made a fresh install and everything is fine.
Maybe there was a conflict because I was on debian repositories instead of raspian.

[BUG CLOSED]

Thx
 
Status
Not open for further replies.

Forum statistics

Threads
112,061
Messages
590,550
Members
165,011
Latest member
m3373