Can’t get FreePBX to fully work with ht503

hi there i have a problem with the ht503 and free pbx something really strange is happening and i cant get incoming calls whenever the fxs port is registered is like when one of the fxo or fxs is registerd the other doestnt work here are the ttraces any help will be apriciated thanks in advance chris
here are the traces
https://1drv.ms/u/s!AiNbApVnzQCP8QhsIs2MGschlxK-

Chances are that you need to use a separate port for each interface

In fact, HT503 has separate UDP ports for the FXS and FXO ports. Check how they are configured, but IIRC FXS is 5060 and FXO is 5062. Also make sure that lifeline is set to either auto or diabled and fxo ring through is set to disabled

Hi yes I have the fx0 at 5062 and fxs at 5060 everything is happening when I put at the unconditional forward to VoIP instaid of 5062 where it never works for me ( I don’t get incoming calls to fpbx) 5060 then it works I have incoming calls but the fxs port doesn’t work after its unregistered here is the log
2018-05-10 16:27:16] VERBOSE[2324] res_pjsip/pjsip_configuration.c: Contact 100/sip:[email protected]:5060 is now Reachable. RTT: 1516.848 msec
[2018-05-10 16:27:16] VERBOSE[2324] res_pjsip/pjsip_configuration.c: Endpoint 100 is now Reachable
[2018-05-10 16:27:18] WARNING[2319] res_pjsip_registrar.c: AOR ‘200’ not found for endpoint ‘000000000000’
[2018-05-10 16:27:19] VERBOSE[2324] res_pjsip/pjsip_configuration.c: Contact 000000000000/sip:[email protected]:5062 is now Reachable. RTT: 13.683 msec
[2018-05-10 16:27:19] VERBOSE[2324] res_pjsip/pjsip_configuration.c: Endpoint 000000000000is now Reachable
[2018-05-10 16:27:39] WARNING[2319] res_pjsip_registrar.c: AOR ‘200’ not found for endpoint ‘000000000000’
[2018-05-10 16:28:01] WARNING[2319] res_pjsip_registrar.c: AOR ‘200’ not found for endpoint ‘000000000000’
[2018-05-10 16:28:22] WARNING[2319] res_pjsip_registrar.c: AOR ‘200’ not found for endpoint ‘000000000000’
[2018-05-10 16:28:43] WARNING[2319] res_pjsip_registrar.c: AOR ‘200’ not found for endpoint ‘000000000000’
[2018-05-10 16:29:05] WARNING[2319] res_pjsip_registrar.c: AOR ‘200’ not found for endpoint ‘000000000000’
[2018-05-10 16:29:26] WARNING[2319] res_pjsip_registrar.c: AOR ‘200’ not found for endpoint ‘000000000000’
[2018-05-10 16:29:47] WARNING[2319] res_pjsip_registrar.c: AOR ‘200’ not found for endpoint ‘000000000000’
[2018-05-10 16:30:03] VERBOSE[2285] asterisk.c: Remote UNIX connection
[2018-05-10 16:30:03] VERBOSE[3252] asterisk.c: Remote UNIX connection disconnected
[2018-05-10 16:30:03] VERBOSE[2285] asterisk.c: Remote UNIX connection
[2018-05-10 16:30:03] VERBOSE[3254] asterisk.c: Remote UNIX connection disconnected
[2018-05-10 16:30:03] VERBOSE[2285] asterisk.c: Remote UNIX connection
[2018-05-10 16:30:03] VERBOSE[3256] asterisk.c: Remote UNIX connection disconnected
[2018-05-10 16:30:09] WARNING[2319] res_pjsip_registrar.c: AOR ‘200’ not found for endpoint ‘000000000000’
[2018-05-10 16:30:31] WARNING[2319] res_pjsip_registrar.c: AOR ‘200’ not found for endpoint ‘000000000000’
[2018-05-10 16:30:52] WARNING[2319] res_pjsip_registrar.c: AOR ‘200’ not found for endpoint ‘000000000000’
[2018-05-10 16:31:14] WARNING[2319] res_pjsip_registrar.c: AOR ‘200’ not found for endpoint ‘000000000000’
[2018-05-10 16:31:35] WARNING[2319] res_pjsip_registrar.c: AOR ‘200’ not found for endpoint ‘000000000000’
[2018-05-10 16:31:56] WARNING[2319] res_pjsip_registrar.c: AOR ‘200’ not found for endpoint ‘000000000000’
[2018-05-10 16:32:18] WARNING[2319] res_pjsip_registrar.c: AOR ‘200’ not found for endpoint ‘000000000000’
[2018-05-10 16:32:39] WARNING[2319] res_pjsip_registrar.c: AOR ‘200’ not found for endpoint ‘000000000000’
[2018-05-10 16:33:00] WARNING[2319] res_pjsip_registrar.c: AOR ‘200’ not found for endpoint ‘000000000000’
[2018-05-10 16:33:22] WARNING[2319] res_pjsip_registrar.c: AOR ‘200’ not found for endpoint ‘000000000000’
[2018-05-10 16:33:43] WARNING[2319] res_pjsip_registrar.c: AOR ‘200’ not found for endpoint ‘000000000000’
[2018-05-10 16:34:04] WARNING[2319] res_pjsip_registrar.c: AOR ‘200’ not found for endpoint ‘000000000000’
[2018-05-10 16:34:26] WARNING[2319] res_pjsip_registrar.c: AOR ‘200’ not found for endpoint ‘000000000000’
[2018-05-10 16:34:47] WARNING[2319] res_pjsip_registrar.c: AOR ‘200’ not found for endpoint ‘000000000000’
[2018-05-10 16:35:08] WARNING[2319] res_pjsip_registrar.c: AOR ‘200’ not found for endpoint ‘000000000000’
[2018-05-10 16:35:30] WARNING[2319] res_pjsip_registrar.c: AOR ‘200’ not found for endpoint ‘000000000000’
[2018-05-10 16:35:51] WARNING[2319] res_pjsip_registrar.c: AOR ‘200’ not found for endpoint ‘000000000000’
[2018-05-10 16:36:12] WARNING[2319] res_pjsip_registrar.c: AOR ‘200’ not found for endpoint ‘000000000000’
[2018-05-10 16:36:34] WARNING[2319] res_pjsip_registrar.c: AOR ‘200’ not found for endpoint ‘000000000000’
[2018-05-10 16:36:55] WARNING[2319] res_pjsip_registrar.c: AOR ‘200’ not found for endpoint ‘000000000000’
[2018-05-10 16:37:16] WARNING[2319] res_pjsip_registrar.c: AOR ‘200’ not found for endpoint ‘000000000000’
[2018-05-10 16:37:38] WARNING[2319] res_pjsip_registrar.c: AOR ‘200’ not found for endpoint ‘000000000000’
[2018-05-10 16:37:59] WARNING[2319] res_pjsip_registrar.c: AOR ‘200’ not found for endpoint ‘000000000000’
[2018-05-10 16:38:20] WARNING[2319] res_pjsip_registrar.c: AOR ‘200’ not found for endpoint ‘000000000000’
[2018-05-10 16:38:42] WARNING[2319] res_pjsip_registrar.c: AOR ‘200’ not found for endpoint ‘000000000000’
[2018-05-10 16:39:03] WARNING[2319] res_pjsip_registrar.c: AOR ‘200’ not found for endpoint ‘000000000000’
[2018-05-10 16:39:24] WARNING[2319] res_pjsip_registrar.c: AOR ‘200’ not found for endpoint ‘000000000000’
[2018-05-10 16:39:46] WARNING[2319] res_pjsip_registrar.c: AOR ‘200’ not found for endpoint ‘000000000000’
[2018-05-10 16:40:07] WARNING[2319] res_pjsip_registrar.c: AOR ‘200’ not found for endpoint ‘000000000000’
[2018-05-10 16:40:28] WARNING[2319] res_pjsip_registrar.c: AOR ‘200’ not found for endpoint ‘000000000000’
[2018-05-10 16:40:50] WARNING[2319] res_pjsip_registrar.c: AOR ‘200’ not found for endpoint ‘000000000000’
[2018-05-10 16:41:11] WARNING[2319] res_pjsip_registrar.c: AOR ‘200’ not found for endpoint ‘000000000000’
[2018-05-10 16:41:32] WARNING[2319] res_pjsip_registrar.c: AOR ‘200’ not found for endpoint ‘000000000000’

Hi Ariel can you please check my previous unswer I have posted also some log files

You have probably defined your extension and trunk incorrectly, specifically the UDP port. For the extension, use port 5060, for the trunk use port 5062

pjsip and these kinds of FXO gateways don’t play well together. In pjsip, endpoints are normally identified by IP address (won’t work if you are using both FXS and FXO on the same device) or ‘User ID’ in the From header (won’t work if you are sending caller ID on incoming FXO calls). See No incoming calls (this is about a Linksys SPA3102, but it basically does the same thing as an HT503 and has the same issues).

IMO the easy solution is to use a chan_sip trunk for the FXO. Though not tested, there are two solutions that should work with pjsip. One is the identify_by=auth_username parameter as suggested by @avayax . The other is the ‘line’ parameter, normally used to distinguish multiple trunks with the same provider and discussed in various threads.

This is apparently fixed in:
core version 14.0.18.1
core version 13.0.122.21

I haven’t tried the fix yet and I don’t know how it’s been implemented, but my ticket on this issue has been addressed:
https://issues.freepbx.org/browse/FREEPBX-17158?filter=-2

So inbound registration PJSIP trunks should work fine with those gateways on those core versions without manually modifying .conf files.

Edit:
This works on above core versions, but you need to set this GUI field under advanced pjsip settings for your inbound registration trunks:

I had the fxs 5060 fxo 5062 , uncaditional forward to VoIP setting 5062 and trunk settings in fpbx 5062 but with this configuration I never got any incoming calls to FreePBX , when I changed the unconditional forward to 5060 I got incoming calls but the fxs can’t get registered but I got calls in the other internals . Do I have to configure the fxo port as an extension to fpbx in order to work and if yes do I have to I configure it ?

You are confusing the gateway ports with the pbx ports. The unconditional forward must be directed to the port where the pbx is listening and the trunk must be directed to the port where the gateway is listening.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.