How disable chan_sip and use res_pjsip?

Hello everyone,

I install Asterisk 13.19.2 on Ubutnu Server 16.04 LTS but all configuration is on sip.conf file. And I make
a migration by using the script in source folder sip_to_pjsip.py
They don’t have another way to configurate the pjsip.conf and run Asterisk on this file not sip.conf ?

Best regards,
Lordaker.

1 Like

You can manually write your pjsip.conf if you wish[1]. The migration script is just that, a handy script to migrate if you have an existing sip.conf and don’t want to start from scratch. As well you’ll want to ensure that chan_sip.so isn’t loaded by adding a “noload => chan_sip.so” line to modules.conf

[1] https://wiki.asterisk.org/wiki/display/AST/Configuring+res_pjsip

So when I add this line in the modules.conf

noload => chan_sip.so

I reload the module in the Asterisk CLI too by this command :

module reload

That it ?

1 Like

Noload only tells Asterisk at load time not to load chan_sip. If Asterisk is already running you can unload chan_sip using “module unload chan_sip.so” from the console, but if it started before PJSIP then it would cause problems. It’s safer to just restart Asterisk clean.

Ok, make this command so :

/etc/init.d/asterisk restart

That it ?

I don’t know how you have installed Asterisk, so I can’t say for certain but that may work.

@jcolp I install it by following the process in the wiki Asterisk and it’s work… Thanks