I’m trying to set up asterisk with outbound registration using PJSIP. Below is an example configuration I’ve tried, copied directly from https://wiki.asterisk.org/wiki/display/AST/Configuring+Outbound+Registrations:
[my_provider]
type=registration
server_uri=sip:registrar@example.com
client_uri=sip:client@example.com
contact_user=inbound-calls
I recognize that this is likely not the way that this should be configured for my specific use case. With that in mind, here is my current configuration I’ve been using:
[my_provider]
type=registration
line=true
endpoint=my_provider_endpoint
server_uri=sip:my_provider_dns
client_uri=sip:username_provided_by_my_provider@my_provider_dns
outbound_auth=my_provider_auth
There is no contact_user because the carrier will determine that based on the number that is called.
For both of these configurations, when I run “pjsip send register *all”, I always get this error message:
"[2019-04-05 19:55:21] ERROR[13110]: res_sorcery_config.c:338 sorcery_config_internal_load: Could not create an object of type 'registration' with id 'my_provider' from configuration file 'pjsip.conf'"
Asterisk version:
Asterisk certified/13.21-cert2 built by root on a x86_64 running Linux
Could anyone please help with this configuration? @jcolp and @avayax I’ve seen you both be very helpful on these forums - any thoughts here?
Thanks in advance for any help!