SIP Trunk with TLS

I’m trying to get a TLS secure trunk to work with asterisk yet I think I have some error with my TLS configuration or missing TLS support in asterisk (compiled the 20.2.1 version).

The config I have so far in pjsip.conf:

[provider-registration]
type=registration
outbound_auth=provider-auth
server_uri=sip:sip.provider.example.com\;transport=tls
client_uri=sip:12345678@sip.provider.example.com\;transport=tls
retry_interval=30

[provider-auth]
type=auth
auth_type=userpass
username=12345678
password=somepass

[provider-aor]
type=aor
contact=sip:sip.provider.example.com

[provider-endpoint]
type=endpoint
context=from-external
allow=ulaw
outbound_auth=provider-auth
aors=provider-aor
 
[provider-identify]
type=identify
endpoint=provider-endpoint
match=sip.provider.example.com

With this config I always get the error:
Could not create an object of type ‘registration’ with id ‘provider-registration’ from configuration file ‘pjsip.conf’

There would be other lines telling you why it can’t.

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