<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>If you only want connects and disconnects, verbose should suffice<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>[Oct 27 14:39:55] VERBOSE[3192] logger.c:&nbsp;&nbsp; == Parsing '/etc/asterisk/manager.conf': [Oct 27 14:39:55] VERBOSE[3192] logger.c: Found<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>[Oct 27 14:39:55] VERBOSE[3192] logger.c:&nbsp;&nbsp; == Manager 'debsman' logged on from 192.168.23.172<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>[Oct 27 14:39:56] WARNING[3192] chan_sip.c: No such host: 104<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>[Oct 27 14:39:56] NOTICE[3192] channel.c: Unable to request channel SIP/104<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>[Oct 27 14:39:58] VERBOSE[3192] logger.c:&nbsp;&nbsp; == Manager 'debsman' logged off from 192.168.23.172<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>[Oct 27 14:40:22] VERBOSE[13080] logger.c:&nbsp;&nbsp;&nbsp;&nbsp; -- Remote UNIX connection<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>[Oct 27 14:48:30] VERBOSE[3238] logger.c:&nbsp;&nbsp;&nbsp;&nbsp; -- Remote UNIX connection disconnected<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] <b>On Behalf Of </b>Ahmed Munir<br><b>Sent:</b> Thursday, October 27, 2011 2:07 PM<br><b>To:</b> asterisk-users@lists.digium.com<br><b>Subject:</b> Re: [asterisk-users] Check which client access Asterisk using AMI<o:p></o:p></span></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'><br>Is there other way around doing it instead of enabling debug and verbose from logger.conf?<br><br><br><br><o:p></o:p></p><div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in'><p class=MsoNormal style='margin-bottom:12.0pt'><br>Message: 1<br>Date: Thu, 27 Oct 2011 10:36:08 -0400<br>From: Ahmed Munir &lt;<a href="mailto:ahmedmunir007@gmail.com">ahmedmunir007@gmail.com</a>&gt;<br>Subject: [asterisk-users] Check which client access Asterisk using AMI<br>To: <a href="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.com</a><br>Message-ID:<br>&nbsp; &nbsp; &nbsp; &nbsp;&lt;CAGMN=JdNtgAu-yjWB_-Yi7rr=<a href="mailto:0Jk5OSJQZ7ibyGUfGejd4bjKg@mail.gmail.com">0Jk5OSJQZ7ibyGUfGejd4bjKg@mail.gmail.com</a>&gt;<br>Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br><br>Hi,<br><br>In manager.conf file I created a user profile by which clients can access<br>Asterisk server as listed below;<br><br><br>[cbusapp]<br>secret = cbus123<br>deny=<a href="http://0.0.0.0/0.0.0.0" target="_blank">0.0.0.0/0.0.0.0</a><br>permit=<a href="http://192.168.1.0/255.255.255.0" target="_blank">192.168.1.0/255.255.255.0</a><br>read = system,call,log,verbose,command,agent,user,originate<br>write = system,call,log,verbose,command,agent,user,originate<br><br><br><br>Using above configuration clients are successfully access the asterisk and<br>forward its parameters to asterisk. The thing I would like to know how can I<br>keep track from which client does asterisk receives request from? Like<br>client A, B and C need to know from which clients the request was made to<br>asterisk.<br><br>--<br>Regards,<br><br>Ahmed Munir Chohan<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: &lt;<a href="http://lists.digium.com/pipermail/asterisk-users/attachments/20111027/ff89ea1a/attachment.html" target="_blank">http://lists.digium.com/pipermail/asterisk-users/attachments/20111027/ff89ea1a/attachment.html</a>&gt;<br><br>------------------------------<br><br>Message: 2<br>Date: Thu, 27 Oct 2011 09:39:43 -0500<br>From: &quot;Danny Nicholas&quot; &lt;<a href="mailto:danny@debsinc.com">danny@debsinc.com</a>&gt;<br>Subject: Re: [asterisk-users] Check which client access Asterisk using<br>&nbsp; &nbsp; &nbsp; &nbsp;AMI<br>To: &quot;'Asterisk Users Mailing List - Non-Commercial Discussion'&quot;<br>&nbsp; &nbsp; &nbsp; &nbsp;&lt;<a href="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.com</a>&gt;<br>Message-ID: &lt;006e01cc94b6$443a6c60$ccaf4520$@<a href="http://debsinc.com" target="_blank">debsinc.com</a>&gt;<br>Content-Type: text/plain; charset=&quot;us-ascii&quot;<br><br>This information might be in /var/log/asterisk/messages or /v/l/a/full. &nbsp;If<br>not, you can change the logging and get it there (turn on debug in one of<br>them) (/etc/asterisk/logger.conf)<br><br><br><o:p></o:p></p></blockquote></div><p class=MsoNormal style='margin-bottom:12.0pt'>-- <br>Regards,<br><br>Ahmed Munir Chohan<br><br><o:p></o:p></p></div></body></html>