Hi,
I installed a fresh FreePBX 14 using Sangoma ISO.
I’m trying to connect softphones from mobile phones over TLS.
So I installed a Let’sEncrypt certificate, I created an extension using chan_sip.
I configured the TLS as in the wiki: PHON/TLS+and+SRTP (I can’t put link)
I’m using CSipSimple and the message on it is “Unauthorized”.
In the asterisk console all I see is:
[2018-08-02 11:24:05] DEBUG[32317] chan_sip.c: Starting thread for TLS server
[2018-08-02 11:24:05] DEBUG[32317] acl.c: For destination ‘Mobile Operator IP’, our source address is ‘My FreePBX IP’.
[2018-08-02 11:24:05] DEBUG[32317] chan_sip.c: Target address ‘Mobile Operator IP’:29106 is not local, substituting externaddr
[2018-08-02 11:24:05] DEBUG[32317] chan_sip.c: Setting AST_TRANSPORT_TLS with address ‘My FreePBX IP’:5061
[2018-08-02 11:24:05] DEBUG[32317] chan_sip.c: NAT detected for 10.23.98.139 / ‘Mobile Operator IP’
[2018-08-02 11:24:05] DEBUG[32317] chan_sip.c: Allocating new SIP dialog for xRIaRKUO7M0LzMCEjQ8b4XuGDssDPJ8b - REGISTER (No RTP)
[2018-08-02 11:24:05] DEBUG[32317] chan_sip.c: NAT detected for 10.23.98.139 / ‘Mobile Operator IP’
[2018-08-02 11:24:05] DEBUG[32317] chan_sip.c: Trying to put ‘SIP/2.0 401’ onto TLS socket destined for ‘Mobile Operator IP’:29106
[2018-08-02 11:24:05] DEBUG[15032] manager.c: Examining AMI event:
Event: ChallengeSent
Privilege: security,all
EventTV: 2018-08-02T11:24:05.675+0300
Severity: Informational
Service: SIP
EventVersion: 1
AccountID: 1105
SessionID: 0x7f798800b880
LocalAddress: IPV4/TLS/ ‘My FreePBX IP’/5061
RemoteAddress: IPV4/TLS/ ‘Mobile Operator IP’/48518
Challenge: 03018483
So my question is what else (except what is in the wiki article) I should do in order to be able to register my softphone over TLS.
Thanks,
Andrei