[Asterisk-Users] /etc/asterisk/manager.conf

Ramin Nikaeen rnikaeen at goldline.net
Wed Jul 6 14:59:40 MST 2005


Valued Colleagues,

 

I am trying to configure and use asterisk manager API.

 

The /etc/asterisk/manager.conf and the output of "netstat -nl" are
appended below.

 

When I restart asterisk, I believe I should be able to see the asterisk
listening on

port 5038 using netstat. But when I type netstat, I don't see any
applications listening

on port 5038.

 

When I telnet to port using 10.1.10.60  and 127.0.0.1, I get connection
refused

but when I telnet using 209.167.142.238, it hangs and time outs.

 

I have no firewalls on the machine.

 

What could be the problem?

 

Thanks

 

Ramin

 

------------------------------------------------------------------------
----------------------------------------

Output of ifconfig

------------------------------------------------------------------------
----------------------------------------

[root at asterisk]/home/rnikaeen/tests>ifconfig

eth0      Link encap:Ethernet  HWaddr 00:11:43:ED:80:E4  

          inet addr:10.1.10.60  Bcast:10.255.255.255  Mask:255.0.0.0

          inet6 addr: fe80::211:43ff:feed:80e4/64 Scope:Link

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:5257624 errors:0 dropped:0 overruns:0 frame:0

          TX packets:658833 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000 

          RX bytes:503101935 (479.7 MiB)  TX bytes:159081910 (151.7 MiB)

          Base address:0xecc0 Memory:dfae0000-dfb00000 

lo        Link encap:Local Loopback  

          inet addr:127.0.0.1  Mask:255.0.0.0

          inet6 addr: ::1/128 Scope:Host

          UP LOOPBACK RUNNING  MTU:16436  Metric:1

          RX packets:7323 errors:0 dropped:0 overruns:0 frame:0

          TX packets:7323 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:0 

          RX bytes:5004182 (4.7 MiB)  TX bytes:5004182 (4.7 MiB)

[root at asterisk]/home/rnikaeen/tests>

------------------------------------------------------------------------
----------------------------------------

Output of telnet

------------------------------------------------------------------------
----------------------------------------

 

[root at asterisk]/home/rnikaeen/tests>telnet 10.1.10.60 5038


Trying 10.1.10.60...

telnet: connect to address 10.1.10.60: Connection refused

telnet: Unable to connect to remote host: Connection refused

[root at asterisk]/home/rnikaeen/tests>

[root at asterisk]/home/rnikaeen/tests>telnet 127.0.0.1 5038


Trying 127.0.0.1...

telnet: connect to address 127.0.0.1: Connection refused

telnet: Unable to connect to remote host: Connection refused

[root at asterisk]/home/rnikaeen/tests>

telnet 209.167.142.238 5038

Trying 209.167.142.238...

 

------------------------------------------------------------------------
----------------------------------------

My manager configuration is:

------------------------------------------------------------------------
----------------------------------------

 

/etc/asterisk/manager.conf

 

[general]

enabled = no

port = 5038

bindaddr = 0.0.0.0

; bindaddr = 209.167.142.XXX

; bindaddr = 10.1.10.60

;displayconnects = yes

[mark]

secret = mysecret

;deny=0.0.0.0/0.0.0.0

permit=all

permit=209.167.142.XXX/255.255.255.0

permit=10.1.10.60/255.255.255.0

permit=127.0.0.1/255.255.255.0

;

; Authorization for various classes

read = system,call,log,verbose,command,agent,user

write = system,call,log,verbose,command,agent,user

------------------------------------------------------------------------
----------------------------------------

Output of netstat is:

------------------------------------------------------------------------
----------------------------------------

 

[root at asterisk]/home/rnikaeen/tests>netstat -nl


Active Internet connections (only servers)

Proto Recv-Q Send-Q Local Address               Foreign Address
State      

tcp        0      0 0.0.0.0:32770               0.0.0.0:*
LISTEN      

tcp        0      0 0.0.0.0:3306                0.0.0.0:*
LISTEN      

tcp        0      0 0.0.0.0:111                 0.0.0.0:*
LISTEN      

tcp        0      0 0.0.0.0:2000                0.0.0.0:*
LISTEN      

tcp        0      0 127.0.0.1:631               0.0.0.0:*
LISTEN      

tcp        0      0 127.0.0.1:5335              0.0.0.0:*
LISTEN      

tcp        0      0 127.0.0.1:25                0.0.0.0:*
LISTEN      

tcp        0      0 :::22                       :::*
LISTEN      

udp        0      0 0.0.0.0:32768           0.0.0.0:*


udp        0      0 0.0.0.0:2727            0.0.0.0:*


udp        0      0 0.0.0.0:4520            0.0.0.0:*


udp        0      0 0.0.0.0:5060            0.0.0.0:*


udp        0      0 0.0.0.0:4569            0.0.0.0:*


udp        0      0 0.0.0.0:5353            0.0.0.0:*


udp        0      0 0.0.0.0:749             0.0.0.0:*


udp        0      0 0.0.0.0:111             0.0.0.0:*


udp        0      0 0.0.0.0:631             0.0.0.0:*


Active UNIX domain sockets (only servers)

Proto RefCnt Flags       Type       State         I-Node Path

unix  2      [ ACC ]     STREAM     LISTENING     26049
/tmp/.font-unix/fs7100

unix  2      [ ACC ]     STREAM     LISTENING     27468
/tmp/.gdm_socket

unix  2      [ ACC ]     STREAM     LISTENING     27527
/tmp/.X11-unix/X0

unix  2      [ ACC ]     STREAM     LISTENING     25954  /dev/gpmctl

unix  2      [ ACC ]     STREAM     LISTENING     15049145
/var/run/asterisk.ctl

unix  2      [ ACC ]     STREAM     LISTENING     25636
/var/run/acpid.socket

unix  2      [ ACC ]     STREAM     LISTENING     26134
/var/run/dbus/system_bus_socket

unix  2      [ ACC ]     STREAM     LISTENING     11286883
/var/lib/mysql/mysql.sock

[root at asterisk]/home/rnikaeen/tests>

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050706/5b081bb9/attachment.htm


More information about the asterisk-users mailing list