Register Fails 404 Not Found - how to solve?

Got this 152 pjsip extension, that look the same as 142.
Endpoint with 152 send REGISTER but FREEPBX answer with 404.
Same Endpoint with 142 send REGISTER and FREEPBX answer with 200 OK.

How could I fix 152: I’ve tried with a delete > Apply and recreate, but doesn’t solve ?


freepbx*CLI> pjsip show aor 152

      Aor:  <Aor..............................................>  <MaxContact>
    Contact:  <Aor/ContactUri............................> <Hash....> <Status> <RTT(ms)..>
==========================================================================================

      Aor:  152                                                  2


 ParameterName        : ParameterValue
 =====================================
 authenticate_qualify : false
 contact              : 
 default_expiration   : 3600
 mailboxes            : 
 max_contacts         : 2
 maximum_expiration   : 7200
 minimum_expiration   : 60
 outbound_proxy       : 
 qualify_frequency    : 60
 qualify_timeout      : 3.000000
 remove_existing      : false
 support_path         : false
 voicemail_extension  : 

freepbx*CLI> pjsip show aor 142

      Aor:  <Aor..............................................>  <MaxContact>
    Contact:  <Aor/ContactUri............................> <Hash....> <Status> <RTT(ms)..>
==========================================================================================

      Aor:  142                                                  1
    Contact:  142/sip:[email protected]:5064                1529dca9cf Avail        11.548


 ParameterName        : ParameterValue
 ================================================
 authenticate_qualify : false
 contact              : sip:[email protected]:5064
 default_expiration   : 3600
 mailboxes            : 
 max_contacts         : 1
 maximum_expiration   : 7200
 minimum_expiration   : 60
 outbound_proxy       : 
 qualify_frequency    : 60
 qualify_timeout      : 3.000000
 remove_existing      : true
 support_path         : false
 voicemail_extension  :

On what port is PJSIP running?

PJSIP running on 5060

Is there any chance that you are matching the wrong endpoint? In particular, are you getting a message like that referenced in:

and, if so, is the endpoint name the one you expect?

Thanks for the replies, this isn’t a TRUNK, is just an extension, how can I verify the “matching”?

The message applies to any incoming registration, not just to trunks. If you are getting a 404 for a PJSIP registration, it is likely that you are getting that message.

Are you certain that you don’t have a trunk that might match, e.g. by IP address (some versions of the 4118 have FXO ports)?

If that’s not your issue, please paste the Asterisk log for the failing registration (with pjsip logger on) at pastebin.freepbx.org and post the link here.

1 Like

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