[asterisk-users] Check which client access Asterisk using AMI

Danny Nicholas danny at debsinc.com
Thu Oct 27 14:51:39 CDT 2011


If you only want connects and disconnects, verbose should suffice

[Oct 27 14:39:55] VERBOSE[3192] logger.c:   == Parsing
'/etc/asterisk/manager.conf': [Oct 27 14:39:55] VERBOSE[3192] logger.c:
Found

[Oct 27 14:39:55] VERBOSE[3192] logger.c:   == Manager 'debsman' logged on
from 192.168.23.172

[Oct 27 14:39:56] WARNING[3192] chan_sip.c: No such host: 104

[Oct 27 14:39:56] NOTICE[3192] channel.c: Unable to request channel SIP/104

[Oct 27 14:39:58] VERBOSE[3192] logger.c:   == Manager 'debsman' logged off
from 192.168.23.172

[Oct 27 14:40:22] VERBOSE[13080] logger.c:     -- Remote UNIX connection

[Oct 27 14:48:30] VERBOSE[3238] logger.c:     -- Remote UNIX connection
disconnected

 

From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Ahmed Munir
Sent: Thursday, October 27, 2011 2:07 PM
To: asterisk-users at lists.digium.com
Subject: Re: [asterisk-users] Check which client access Asterisk using AMI

 


Is there other way around doing it instead of enabling debug and verbose
from logger.conf?






Message: 1
Date: Thu, 27 Oct 2011 10:36:08 -0400
From: Ahmed Munir <ahmedmunir007 at gmail.com>
Subject: [asterisk-users] Check which client access Asterisk using AMI
To: asterisk-users at lists.digium.com
Message-ID:
       <CAGMN=JdNtgAu-yjWB_-Yi7rr=0Jk5OSJQZ7ibyGUfGejd4bjKg at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi,

In manager.conf file I created a user profile by which clients can access
Asterisk server as listed below;


[cbusapp]
secret = cbus123
deny=0.0.0.0/0.0.0.0
permit=192.168.1.0/255.255.255.0
read = system,call,log,verbose,command,agent,user,originate
write = system,call,log,verbose,command,agent,user,originate



Using above configuration clients are successfully access the asterisk and
forward its parameters to asterisk. The thing I would like to know how can I
keep track from which client does asterisk receives request from? Like
client A, B and C need to know from which clients the request was made to
asterisk.

--
Regards,

Ahmed Munir Chohan
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.digium.com/pipermail/asterisk-users/attachments/20111027/ff89e
a1a/attachment.html>

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

Message: 2
Date: Thu, 27 Oct 2011 09:39:43 -0500
From: "Danny Nicholas" <danny at debsinc.com>
Subject: Re: [asterisk-users] Check which client access Asterisk using
       AMI
To: "'Asterisk Users Mailing List - Non-Commercial Discussion'"
       <asterisk-users at lists.digium.com>
Message-ID: <006e01cc94b6$443a6c60$ccaf4520$@debsinc.com>
Content-Type: text/plain; charset="us-ascii"

This information might be in /var/log/asterisk/messages or /v/l/a/full.  If
not, you can change the logging and get it there (turn on debug in one of
them) (/etc/asterisk/logger.conf)




-- 
Regards,

Ahmed Munir Chohan



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20111027/9ea0cf7e/attachment.htm>


More information about the asterisk-users mailing list