Setup pjsip with tls on asterisk 16, freepbx 14


(Dan S) #1

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.


#2

Are you getting any TLS errors in the log?


(Dan S) #3

No tls errors in logs found


#4

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


(Dan S) #5

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


(Dan S) #6

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…


#7

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


(Dan S) #8

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


(Dan S) #9

I dont think thta its serious. so will continue on


#10

Those can be ignored.


(system) closed #11

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