1

On a centos dedicated server,

I'm running two asterisk instances on different bind IPs.

when I do

asterisk -r

It connects to default asterisk instance which was started first.

I have tried :

asterisk -r -s NEW_IP_OF_SECOND_INSTANCE:5060

It gives unable to connect.

But IP and port are both correct. netstat shows listening ports.

How to I connect to that second asterisk instance?

user2458935
  • 325
  • 1
  • 3
  • 6

1 Answers1

1

-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

Tomek Rękawek
  • 9,204
  • 2
  • 27
  • 43
  • Perfect. >asterisk -h shows " -s Connect to Asterisk via socket (only valid with -r) " so I thought like that socket. – user2458935 Jan 02 '14 at 11:09