Adding SIP registration for provider to PJSIP


#1

Hi!

Is it possible to accomplish this with MySQL?:
https://wiki.asterisk.org/wiki/display/AST/Configuring+Outbound+Registrations

**pjsip.conf**

[my_provider]
type = registration
server_uri = sip:registrar@example.com
client_uri = sip:client@example.com
contact_user = inbound-calls
outbound_auth = provider_auth
 
[provider_auth]
type = auth
username = my_username
password = my_password

I would like to add new carriers dynamically without interrupting the calls.

Kevin


#2

Regardless if the configuration is in a .conf or database, you still have to reload. The act of reloading does not interrupt calls.


#3

On the mailinglist I read, that registration will be reset (incoming calls unavailable) until asterisk tries to register again.
Is this still the case with recent releases? The topic was from 2008.


#4

The act of reloading doesn’t interrupt that or cause it.


#5

Can you give me a hint where I can configure the trunk?
The table ps_registrations makes sense for the server part but it lacks type=auth.


#6

The auth types are configured in ps_auths.


#7

Ah, okay. Makes sence with “outbound_auth”.

Thank you, I will try it!


#8

Works perfectly fine!
Thank you!