How to reload sip.conf by software?


I am new in asterisk. I am developer and my application (java) make some changes in the sip.conf. Now I need to reload the asterisk for changes take efect.

How can I do this ? I must to use AGI ?


Best Regards,

use a socket connection to the asterisk manager interface
use the ‘Command’ action, and send a “sip reload”

or use a SSH connection to issue the reload command that way:

You can also use bash command : asterisk -rx “sip reload”