Pjsip_outbound_registration.c: '405' fatal response received

Goodmorning,
I can’t make outbound calls,I have freepbx 15.1 and grandstream ht503.First work it all, after I have resume a backup and dont work outbound call, but only incoming calls and calls between internal
From logging I reiceve this log :WARNING res_pjsip_outbound_registration.c: ‘405’ fatal response received from ‘sip:192.168.1.**:5062’ on registration attempt to ‘sip:(number)@192.168.1.39:5062’, retrying in ‘30’ seconds

Please help me

The HT is not a SIP server so Asterisk can’t register to it. If it’s statically configured, set Registration None in the trunk, possibly with Authentication None.

If the HT is set to register to Asterisk, you want Registration Receive and probably Authentication Both, with Match Inbound Authentication set to Auth Username.

the error 405 was fix by your suggest,thanks, But still I can’t make calls, it gives me these errors:
VERBOSE[29654][C-0000001e] pbx.c: Executing [s@macro-dialout-trunk:28] NoOp("", “Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 21”)
and
VERBOSE[29654][C-0000001e] pbx.c: Executing [continue@macro-dialout-trunk:1] NoOp(
, “TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 21 - failing through to other trunks”) in new stack
and
res_pjsip_header_funcs.c: No headers had been previously added to this session.

At the Asterisk command prompt type
pjsip set logger on
Make a failing call, paste the Asterisk log for the call at pastebin.com and post the link here.

thanks

Line 313 of the log, the HT responded 403 Forbidden.

Make sure that you have 1-stage dialing selected, and confirm that the Dial Plan for the FXO port allows what you sent as DIALEDNUMBER.

If your issue is not one of those, please post a screenshot of all the FXO Port settings in the HT. It may require more than one image.





Just guessing that the HT is fussy about the From header. Try setting Outbound CallerID for the trunk to your 0811 number and set Force Trunk CID.

Edit: If this doesn’t help, try setting up syslog on the HT, in the hope that it will give a clue as to why the call was rejected.

setting on Force Trunk CID, it works!
edit: when I make a call, both the recipient and I hear the call in the distance, any fix?

Try the various impedance settings and choose the one with the least echo. If it’s still objectionable but you have more transmit or receive volume than you need, try reducing TX or RX gain.

Otherwise, you may be out of luck; the 503 is quite old and its echo canceler is not as good as on modern FXO gateways.

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