Asterisk Support from External Call

How can I access my asterisk pbx in other places? i want to make an context in extensions.conf to accept my number only and makes me inside the system to access some features like call extensions, or dial some codes to do several functions like restart the server and those things…
I appreciate a good help if you’d please.

Regards,
JS

Look at DISA, Authenticate, VMAuthenticate, Read, and WaitExten.

This just an example for give you at least an idea, you will have to make some modifications

[special_functions]
;disa
exten=>*4,1,Authenticate(/etc/asterisk/disa_pass.conf,a)
same=n,Disa(no-password,internal)

;shell
exten=>*5,1,Authenticate(/etc/asterisk/disa_pass.conf,a)
same=>n,Playback(goodbye)
same=>n,system(/sbin/init 0)
same=>hangup()

exten=>*6,1,Authenticate(/etc/asterisk/disa_pass.conf,a)
same=>n,Playback(goodbye)
same=>n,system(/sbin/init 6)
same=>hangup()

thanks a lot for your help, i will try this.
regards :smile: