How to reload sip.conf by software?

Hello,

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 ?

Thanks

Best Regards,
Helder

use a socket connection to the asterisk manager interface

voip-info.org/wiki-Asterisk+manager+API
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”