Have installed FreePBX on RPi4 and banging my head trying to get inbound RTP recognised by the PBX.
Config consists of an RPi4 running PBX 188.8.131.52 (Asterisk 16.9.0) with an internal network (no NATs) comprising around 6-10 phones (a mix of Grandstream, SNOM, and Gigaset). All connections using Chan_PJSIP stack. PSTN trunk made using ObiHai FXO gateway. All working satisfactorily on my legacy config running on a Dell tower with FreePBX 2.11 (using Chan_SIP).
- Try to use internal extension to leave voicemail - voicemail announcements heard, but voicemail not recorded. Wireshark trace confirms RTP is from PBX only - no RTP visible from extension.
- Try to pick up voicemail - no response by PBX to DTMF digits
- Place external call to reach internal extension (PSTN -> FXO -> PBX -> Extn). Internal extension rings, but no external voice heard.
Have tried converting Chan_PJSIP to Chan_SIP, but then PBX refuses to register the endpoints.
Any thoughts/suggestions most welcome.
What about your PBX Firewall configuration? You can try to add your Local Network on PBX Firewall TRUSTED Networks ( 192.168.XX.XX/24) and same network range on Asterisk SIP Settings --> General Sip Settings --> Local Networks --> 192.168.XX.XX/24
Maybe all your RTP is being sent to Sangoma: https://issues.freepbx.org/browse/FREEPBX-21353
As @snazir says. Note that when you change the SIP Settings, you must restart (not just reload) Asterisk.
IMO this is very unlikely to be a pjsip issue, but if you convert an extension to chan_sip, you must either change the config in the device to register to port 5160, or change the port setup at the PBX end (requires restart).
Thanks for the help guys, problem solved!
Per @snazir, I needed to set the Local Network in General SIP settings (there doesn’t seem to be a firewall on Debian 10, so that wasn’t the issue). Never had to worry about this on my previous install!
@billsimon - interesting; the default NAT address in the RPi build is 184.108.40.206, so not everything goes to Sangoma! Now correctly to my own IP (separate issue)
Maybe a residential IP that got packaged in with the files you used to install your RPi FreePBX setup.
% Information related to '220.127.116.11/17AS31334'
descr: Kabeldeutschland Route
% This query was served by the RIPE Database Query Service version 1.97 (ANGUS)
Yup, I guess that’s it - http://www.raspberry-asterisk.org/ seems to have German origins, so a German IP as default would make sense
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.