-
Notifications
You must be signed in to change notification settings - Fork 2
Operations
This page collects operational commands and checks used when running GABPBX.
Systemd deployments commonly use:
systemctl stop gabpbx
systemctl start gabpbx
systemctl status gabpbx
journalctl -u gabpbxFor crash debugging, run GABPBX under gdb instead of the service manager.
Start foreground console:
gabpbx -vvvcConnect to a running instance:
gabpbx -rRun one command:
gabpbx -rx "core show version"Useful commands:
core show version
core show channels
core show channel <name>
module show
module show like <name>
logger reload
dialplan reload
manager show connected
rtp set debug on
rtp set debug off
rtp set debug ice on
rtp set debug ice off
rtp set debug ice {on|off} toggles ICE diagnostics independently of the
general RTP debug. When enabled it logs candidate-pair nomination and the media
source selected after ICE completion, which is useful when troubleshooting
WebRTC media (one-way audio, audio that arrives late, or media reaching the
wrong port).
For chan_sofia:
sip show settings
sip show peers
sip show peer <peer>
sip show peer <peer> detail
sip show channels
sip show inuse
sip set debug on
sip set debug peer <peer>
sip set debug ip <addr>
sip show blacklist
sip show peer <peer> prints a concise, readable summary of a single peer:
- SIP peer name
- Registration state
- Endpoint (
user@host:portand the transport in use) - Context / source (static config or realtime)
- Accountcode
- Contact slots used / allowed
- Media (codecs, DTMF mode, NAT, directmedia)
- Calls (active / limit, ringing, on-hold)
- Qualify status
The summary is followed by the full list of bound contacts, each showing its State, TTL, Source address, and User-Agent.
sip show peer <peer> detail prints the complete per-field dump for the peer,
grouped into sections: session timers, identity headers, network & media,
limits & features, fax / T.38, timers & RTP, routing & dialplan, security &
ACL, registration, and contacts. The detail keyword tab-completes.
Main config:
configs/logger.conf.sample
Reload:
*CLI> logger reload
When debugging SIP, collect:
- GABPBX console logs.
-
sip set debugoutput. - Packet capture with
tcpdumporsngrep. - AMI events if monitoring behavior is involved.
Examples:
tcpdump -i any -n -s 0 -w /tmp/gabpbx-sip.pcap udp port 5060
tcpdump -i any -n -s 0 -w /tmp/gabpbx-rtp.pcap portrange 10000-20000Use sngrep for SIP ladder inspection when available.
Normal build:
./configure
make
make installAvoid make clean or make dist-clean unless intentionally resetting build
state, because it forces much more recompilation.
For the public GitHub repository:
- Keep
mainprotected. - Work through branches and pull requests for public changes.
- Do not commit local memory/private documentation.
- Keep generated build artifacts out of the repository.
- Keep source files needed to build from a fresh clone tracked.
default.exports is a required source/build support file and must be tracked.
- Disable guest calls unless required.
- Use strong peer secrets.
- Configure NAT:
externaddr,localnet,nat=force_rport,comedia. - Keep
directmedia=nountil RTP is proven. - Configure call limits on trunks.
- Disable REFER transfers on untrusted trunks.
- Monitor authentication failures and blacklist entries.
- Verify RTP both directions before and after transfers.
- Verify codecs on both call legs.
- Restart GABPBX when switching SIP channel drivers.
SIP — chan_sofia
Subsystems
Realtime & data
Operations