-s
option is used to specify Asterisk socket file (like /var/run/asterisk/asterisk.ctl
). If you have multiple Asterisk instances running on one server, use this option with appropriate asterisk.ctl
file.
5060 is a SIP port number, used to originate and receive VoIP calls rather than for management purposes, so you can't use it with asterisk -r
command