Setup pjsip with tls on asterisk 16, freepbx 14

I’m having isues getting pjsip right,
I’ve setup following the document https://wiki.freepbx.org/display/PHON/TLS+and+SRTP
but my clients won’t register

with pjsip logger on
I get this
[2020-01-15 02:32:08] DEBUG[115194]: res_pjsip_registrar.c:1286 check_expiration_thread: Expiring 0 contacts
[2020-01-15 02:32:23] DEBUG[119654]: manager.c:6608 process_message: Running action ‘Login’
[2020-01-15 02:32:24] DEBUG[119654]: manager.c:6608 process_message: Running action ‘Command’
[2020-01-15 02:32:24] DEBUG[119654]: manager.c:6608 process_message: Running action ‘Command’
[2020-01-15 02:32:24] DEBUG[119654]: manager.c:6608 process_message: Running action ‘Command’
[2020-01-15 02:32:24] DEBUG[119654]: manager.c:6608 process_message: Running action ‘Command’
[2020-01-15 02:32:24] DEBUG[119654]: manager.c:6608 process_message: Running action ‘Command’
[2020-01-15 02:32:24] DEBUG[119654]: manager.c:6608 process_message: Running action ‘Command’
[2020-01-15 02:32:24] DEBUG[119654]: manager.c:6608 process_message: Running action ‘Command’

I’m using the Lets encrpty certificate. Using standard ports.

Are you getting any TLS errors in the log?

No tls errors in logs found

No PJSIP logs and no TLS errors, I would suspect your firewall is blocking the traffic.

But I do get output in the console as above. I have port 5061 opened, plus ports 10k to 20k for rtp

I opened up to any and I can get registration events so that is a firewall related.

Now I’ll keep working down the tls path to make sure it can call.

thanks…

TLS is a TCP connection, so make sure you have 5061 TCP open and not 5061 UDP.

New errors

2020-01-17 01:26:30] WARNING[23259][C-00000001]: app_macro.c:274 _macro_exec: M acro() is deprecated and will be removed from a future version of Asterisk.
[2020-01-17 01:26:30] WARNING[23259][C-00000001]: app_macro.c:275 _macro_exec: D ialplan should be updated to use Gosub instead.
[2020-01-17 01:26:30] ERROR[23259][C-00000001]: pbx_functions.c:651 ast_func_rea d2: Function SIP_HEADER not registered
[2020-01-17 01:26:30] WARNING[23259][C-00000001]: Ext. s:3 @ from-pstn: Friendly Scanner from

I dont think thta its serious. so will continue on

Those can be ignored.

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