Jason Marble
2010-Mar-03 22:41 UTC
[asterisk-users] Identify scripts connecting to the asterisk manager
Is there any easy way to identify which script or service is connecting to the Asterisk manager? Somewhere on my system a script or service is trying to connect with a bad user name or password. I get the following error: connect attempt from '127.0.0.1' unable to authenticate I thought maybe I could do a tcpdump on port 5038 and try to fish out the bad username or password but I wasn't able to see any passwords or usernames in plain text. Any way I could maybe change the logging in Asterisk to show me the username that is not able to authenticate? - Jason
Tzafrir Cohen
2010-Mar-04 10:21 UTC
[asterisk-users] Identify scripts connecting to the asterisk manager
On Wed, Mar 03, 2010 at 04:41:49PM -0600, Jason Marble wrote:> Is there any easy way to identify which script or service is > connecting to the Asterisk manager? Somewhere on my system a script or > service is trying to connect with a bad user name or password. I get > the following error: connect attempt from '127.0.0.1' unable to > authenticate > > I thought maybe I could do a tcpdump on port 5038 and try to fish out > the bad username or password but I wasn't able to see any passwords or > usernames in plain text. > > Any way I could maybe change the logging in Asterisk to show me the > username that is not able to authenticate?If you can capture the connection attempt in time, use: netstat -ntp -- Tzafrir Cohen icq#16849755 jabber:tzafrir.cohen at xorcom.com +972-50-7952406 mailto:tzafrir.cohen at xorcom.com xorcom.com iax:guest at local.xorcom.com/tzafrir
Gopalakrishnaiyer Venugopal-Q16770
2010-Mar-04 10:29 UTC
[asterisk-users] Caller ID in Asterisk
Hi All, I have an asterik machine which is connected via a PRI to the SIP server.When i call from the Asterisk machine to the SIP server i am not getting the caller id of the lines at the sip side. Please help me to identify how this can be set.The extensions.conf file is attached. Cheers venu -------------- next part -------------- An HTML attachment was scrubbed... URL: lists.digium.com/pipermail/asterisk-users/attachments/20100304/ebfdcab4/attachment.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: extensions.conf Type: application/octet-stream Size: 1196 bytes Desc: extensions.conf Url : lists.digium.com/pipermail/asterisk-users/attachments/20100304/ebfdcab4/attachment.obj
Gopalakrishnaiyer Venugopal-Q16770
2010-Mar-04 11:50 UTC
[asterisk-users] Caller ID in Asterisk
HI All, Below is the ones i tried exten => 8001234003,1,Dial(DAHDI/34,,rt) exten => 8001234003,1,Set(CALLERID(num)=${8001234003}) exten => 8001234003,1,Set(CALLERID(name)=${Line 5}) However i got an error message sayinfg Function CallerID not registered. Kindly help me... ________________________________ From: asterisk-users-bounces at lists.digium.com on behalf of Gopalakrishnaiyer Venugopal-Q16770 Sent: Thu 3/4/2010 3:59 PM To: Asterisk Users Mailing List - Non-Commercial Discussion; asterisk-users at lists.digium.com Subject: [asterisk-users] Caller ID in Asterisk Hi All, I have an asterik machine which is connected via a PRI to the SIP server.When i call from the Asterisk machine to the SIP server i am not getting the caller id of the lines at the sip side. Please help me to identify how this can be set.The extensions.conf file is attached. Cheers venu -------------- next part -------------- An HTML attachment was scrubbed... URL: lists.digium.com/pipermail/asterisk-users/attachments/20100304/cd2f469f/attachment.htm
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD><META http-equiv=Content-Type content="text/html; charset=utf-8"><META content="INBOX.COM" name=GENERATOR></HEAD> <BODY> <DIV>Hi,</DIV> <DIV> </DIV> <DIV>You need to set the callerid before making the call, not after. Also, I guess it's a typo that the priority in this dialplan is all 1; it should be </DIV> <DIV dir=ltr> </DIV> <DIV dir=ltr><FONT size=2>exten => <FONT size=3>8001234003</FONT>,1,Set(CALLERID(num)=<FONT size=3>8001234003</FONT>)<BR>exten => <FONT size=3>8001234003</FONT>,n,Set(CALLERID(name)="Line 5")</FONT></DIV> <DIV dir=ltr>exten => 8001234003,n,Dial(DAHDI/34,,rt)</DIV> <P>Unless your using variable for the name and the number, you should not put them in ${}.<BR></P> <P>Jimmy<BR></P> <BLOCKQUOTE style="BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px"> <DIV class=msgHeaders>-----Original Message-----<BR><B>From:</B> venuiyer@motorola.com<BR><B>Sent:</B> Thu, 4 Mar 2010 19:50:03 +0800<BR><B>To:</B> asterisk-users@lists.digium.com, asterisk-users@lists.digium.com, asterisk-users@lists.digium.com<BR><B>Subject:</B> Re: [asterisk-users] Caller ID in Asterisk<BR><BR></DIV> <DIV class=oldBody> <DIV> <DIV dir=ltr _id="idOWAReplyText73230"> <DIV dir=ltr><FONT color=#000000 size=2 face=Arial>HI All,</FONT></DIV> <DIV dir=ltr><FONT size=2 face=Arial></FONT> </DIV> <DIV dir=ltr><FONT size=2 face=Arial> Below is the ones i tried</FONT></DIV> <DIV dir=ltr><FONT size=2 face=Arial></FONT> </DIV> <DIV dir=ltr> <DIV dir=ltr>exten => 8001234003,1,Dial(DAHDI/34,,rt)</DIV> <DIV dir=ltr><FONT size=2>exten => <FONT size=3>8001234003</FONT>,1,Set(CALLERID(num)=${<FONT size=3>8001234003</FONT>})<BR>exten => <FONT size=3>8001234003</FONT>,1,Set(CALLERID(name)=${Line 5})</FONT></DIV> <DIV dir=ltr><FONT size=2></FONT> </DIV> <DIV dir=ltr><FONT size=2>However i got an error message sayinfg Function CallerID not registered.</FONT></DIV> <DIV dir=ltr><FONT size=2></FONT> </DIV> <DIV dir=ltr><FONT size=2>Kindly help me...</FONT></DIV></DIV></DIV> <DIV dir=ltr><BR> <HR tabIndex=-1> <FONT size=2 face=Tahoma><B>From:</B> asterisk-users-bounces@lists.digium.com on behalf of Gopalakrishnaiyer Venugopal-Q16770<BR><B>Sent:</B> Thu 3/4/2010 3:59 PM<BR><B>To:</B> Asterisk Users Mailing List - Non-Commercial Discussion; asterisk-users@lists.digium.com<BR><B>Subject:</B> [asterisk-users] Caller ID in Asterisk<BR></FONT><BR></DIV> <DIV dir=ltr> <DIV dir=ltr _id="idOWAReplyText52733"> <DIV dir=ltr><FONT color=#000000 size=2 face=Arial>Hi All,</FONT></DIV> <DIV dir=ltr><FONT size=2 face=Arial></FONT> </DIV> <DIV dir=ltr><FONT size=2 face=Arial> I have an asterik machine which is connected via a PRI to the SIP server.When i call from the Asterisk machine to the SIP server i am not getting the caller id of the lines at the sip side.</FONT></DIV> <DIV dir=ltr><FONT size=2 face=Arial></FONT> </DIV> <DIV dir=ltr><FONT size=2 face=Arial>Please help me to identify how this can be set.The extensions.conf file is attached.</FONT></DIV> <DIV dir=ltr><FONT size=2 face=Arial></FONT> </DIV> <DIV dir=ltr><FONT size=2 face=Arial></FONT> </DIV> <DIV dir=ltr><FONT size=2 face=Arial>Cheers</FONT></DIV> <DIV dir=ltr><FONT size=2 face=Arial>venu</FONT></DIV></DIV> <DIV dir=ltr><BR> </DIV></DIV></DIV></DIV></BLOCKQUOTE><hr size="1px" noshade style="clear:both;margin-top:10px;height:1px;"> <div style="font:12px Verdana,sans-serif;color:Black;background:white;padding:3px;line-height:1.3em"> <a href="inbox.com/notifier"><img src="my.inbox.com/img/ftrs/den.jpg" width="159" hight="90" alt="Email Notifier Preview" align="left" border="0" style="margin-right:15px" /></a> <br><strong><font color="2086c3">Receive Notifications of Incoming Messages</font></strong><br> <nobr>Easily monitor multiple email accounts & access them with a click.</nobr> <nobr>Visit <a href="inbox.com/notifier">inbox.com/notifier</a> and check it out!</nobr></div> </BODY> </HTML>
Gopalakrishnaiyer Venugopal-Q16770
2010-Mar-04 12:27 UTC
[asterisk-users] Caller ID in Asterisk
Hi All, Please note that this is a lab setup and we are not connected to any external telcos Rgds Venu ________________________________ From: asterisk-users-bounces at lists.digium.com on behalf of Gopalakrishnaiyer Venugopal-Q16770 Sent: Thu 3/4/2010 5:20 PM To: Asterisk Users Mailing List - Non-Commercial Discussion; Asterisk Users Mailing List - Non-Commercial Discussion; asterisk-users at lists.digium.comHi Subject: Re: [asterisk-users] Caller ID in Asterisk HI All, Below is the ones i tried exten => 8001234003,1,Dial(DAHDI/34,,rt) exten => 8001234003,1,Set(CALLERID(num)=${8001234003}) exten => 8001234003,1,Set(CALLERID(name)=${Line 5}) However i got an error message sayinfg Function CallerID not registered. Kindly help me... ________________________________ From: asterisk-users-bounces at lists.digium.com on behalf of Gopalakrishnaiyer Venugopal-Q16770 Sent: Thu 3/4/2010 3:59 PM To: Asterisk Users Mailing List - Non-Commercial Discussion; asterisk-users at lists.digium.com Subject: [asterisk-users] Caller ID in Asterisk Hi All, I have an asterik machine which is connected via a PRI to the SIP server.When i call from the Asterisk machine to the SIP server i am not getting the caller id of the lines at the sip side. Please help me to identify how this can be set.The extensions.conf file is attached. Cheers venu -------------- next part -------------- An HTML attachment was scrubbed... URL: lists.digium.com/pipermail/asterisk-users/attachments/20100304/94c770f3/attachment.htm
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD><META http-equiv=Content-Type content="text/html; charset=utf-8"><META content="INBOX.COM" name=GENERATOR></HEAD> <BODY> <DIV>Hi,</DIV> <DIV> </DIV> <DIV>Well, if you replicate the line that set the callerid for every extension than you can set each one manually.</DIV> <DIV> </DIV> <DIV>Jimmy</DIV><BR><BR> <BLOCKQUOTE style="BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px"> <DIV class=msgHeaders>-----Original Message-----<BR><B>From:</B> venuiyer@motorola.com<BR><B>Sent:</B> Fri, 5 Mar 2010 14:54:56 +0800<BR><B>To:</B> venuiyer@motorola.com, asterisk-users@lists.digium.com<BR><B>Subject:</B> Re: [asterisk-users] Caller ID in Asterisk<BR><BR></DIV> <DIV class=oldBody> <DIV> <DIV dir=ltr align=left><SPAN _class="855035406-05032010"><FONT color=#0000ff size=2 face=Arial>Hi All,</FONT></SPAN></DIV> <DIV dir=ltr align=left><SPAN _class="855035406-05032010"><FONT color=#0000ff size=2 face=Arial></FONT></SPAN> </DIV> <DIV dir=ltr align=left><SPAN _class="855035406-05032010"><SPAN lang=EN> <P>Finally I am able to get the number displayed at the SIP side using </P> <P>exten => _988.,1,Set(CALLERID(num)=8001234000)</P> <P>exten => _988.,n,Dial(DAHDI/g1/${EXTEN},20)</P> <P>However this number is fixed and I want to display the number of the individual lines whoever is calling. I tried with </P> <P>exten => _988.,1,Set(CALLERID(num)=${exten}) and exten => _988.,1,Set(CALLERID(num)=${EXTEN})</P> <P>Both the above lines didn’t help.</P> <P>I have 8 lines configured as below and need the callerID of the individual lines to be displayed at the SIP side</P> <P>exten => 8001234001,n,Dial(DAHDI/32,,rt) </P> <P>exten => 8001234002,n,Dial(DAHDI/33,,rt) </P> <P>exten => 8001234003,n,Dial(DAHDI/34,,rt) </P> <P>exten => 8001234004,n,Dial(DAHDI/35,,rt) </P> <P>exten => 8001234005,n,Dial(DAHDI/36,,rt) </P> <P>exten => 8001234006,n,Dial(DAHDI/37,,rt) </P> <P>exten => 8001234007,n,Dial(DAHDI/38,,rt) </P> <P>exten => 8001234008,n,Dial(DAHDI/39,,rt)</P> <P>Warm Regards</P></SPAN></SPAN></DIV> <DIV> </DIV><!-- Converted from text/rtf format --> <P><SPAN lang=en-us><FONT color=#0000ff face=Calibri>Warm Regards</FONT></SPAN> <BR><SPAN lang=en-us><FONT color=#0000ff face=Calibri>Venugopal G</FONT></SPAN> <BR><SPAN lang=en-us><FONT color=#0000ff face=Calibri>HNM-SO WiMAX CPE VoIP IOT Team</FONT></SPAN> <BR><SPAN lang=en-us><FONT color=#0000ff face=Calibri>Cell : +91-99723-99437</FONT></SPAN> <BR><SPAN lang=en-us><FONT color=#0000ff face="Comic Sans MS">*************************************************************************************************************************************************************************************************</FONT></SPAN></P> <P><SPAN lang=en-us><FONT color=#0000ff face="Comic Sans MS"></FONT></SPAN></P> <DIV> </DIV><BR> <DIV dir=ltr lang=en-us align=left _class="OutlookMessageHeader"> <HR tabIndex=-1> <FONT size=2 face=Tahoma><B>From:</B> Gopalakrishnaiyer Venugopal-Q16770 <BR><B>Sent:</B> Thursday, March 04, 2010 6:36 PM<BR><B>To:</B> Asterisk Users Mailing List - Non-Commercial Discussion; Asterisk Users Mailing List - Non-Commercial Discussion<BR><B>Subject:</B> RE: [asterisk-users] Caller ID in Asterisk<BR></FONT><BR></DIV> <DIV></DIV> <DIV dir=ltr _id="idOWAReplyText44790"> <DIV dir=ltr><FONT color=#000000 size=2 face=Arial>Hi Jimmy,</FONT></DIV> <DIV dir=ltr><FONT size=2 face=Arial></FONT> </DIV> <DIV dir=ltr><FONT size=2 face=Arial> Appreciate your help.</FONT></DIV> <DIV dir=ltr><FONT size=2 face=Arial></FONT> </DIV> <DIV dir=ltr><FONT size=2 face=Arial>I tried the one below and cudnt get the caller ID.I am getting "Private Call" and "Out of Area" in the sip phone display when i call from asterisk.</FONT></DIV> <DIV dir=ltr><FONT size=2 face=Arial></FONT> </DIV> <DIV dir=ltr><FONT size=2 face=Arial>My current extensions.conf looks like below</FONT></DIV> <DIV dir=ltr><FONT size=2 face=Arial></FONT> </DIV> <DIV dir=ltr>[general]<BR>static=yes<BR>writeprotect=no<BR>autofallthrough=no<BR>extenpatternmatchnew=no<BR>clearglobalvars=no<BR>priorityjumping=yes<BR>userscontext=default</DIV> <DIV dir=ltr> </DIV> <DIV dir=ltr>[globals]<BR>CONSOLE=Console/dsp ; Console interface for demo<BR>;CONSOLE=DAHDI/1<BR>;CONSOLE=Phone/phone0<BR>IAXINFO=guest ; IAXtel username/password<BR>;IAXINFO=myuser:mypass<BR>TRUNK=DAHDI/G1<BR>TRUNKMSD=1</DIV> <DIV dir=ltr><BR> <BR>[Internal]<BR>include => Incoming</DIV> <DIV dir=ltr><BR>exten => 8001234001,1,Dial(DAHDI/32,,rt)</DIV> <DIV dir=ltr>exten => 8001234002,1,Dial(DAHDI/33,,rt)</DIV> <DIV dir=ltr>exten => 8001234003,1,Dial(DAHDI/34,,rt)</DIV> <DIV dir=ltr> </DIV> <DIV dir=ltr>exten => 8001234004,1,Set(CALLERID(num)=8001234004)<BR>exten => 8001234004,n,Set(CALLERID(name)="Line 4")<BR>exten => 8001234004,3,Dial(DAHDI/35,,rt)</DIV> <DIV dir=ltr> </DIV> <DIV dir=ltr>exten => 8001234005,1,Dial(DAHDI/36,,rt)</DIV> <DIV dir=ltr> </DIV> <DIV dir=ltr>[Incoming]<BR>exten => s,1,Answer<BR>exten => s,2,Dial(DAHDI/g1,20,rt)</DIV> <DIV dir=ltr>exten => _988.,1,Dial(DAHDI/g1/${EXTEN},20) </DIV> <DIV dir=ltr> </DIV> <DIV dir=ltr> </DIV> <DIV dir=ltr>I also tried changing the dial plan to exten => _988.,3,Dial(DAHDI/g1/${EXTEN},20) and in that case the call itself was not going through</DIV> <DIV dir=ltr> </DIV> <DIV dir=ltr>Venugopal </DIV></DIV> <DIV dir=ltr><BR> <HR tabIndex=-1> <FONT size=2 face=Tahoma><B>From:</B> asterisk-users-bounces@lists.digium.com on behalf of Jimmy Godbout<BR><B>Sent:</B> Thu 3/4/2010 5:53 PM<BR><B>To:</B> Asterisk Users Mailing List - Non-Commercial Discussion<BR><B>Subject:</B> Re: [asterisk-users] Caller ID in Asterisk<BR></FONT><BR></DIV> <DIV> <DIV>Hi,</DIV> <DIV> </DIV> <DIV>You need to set the callerid before making the call, not after. Also, I guess it's a typo that the priority in this dialplan is all 1; it should be </DIV> <DIV dir=ltr> </DIV> <DIV dir=ltr><FONT size=2>exten => <FONT size=3>8001234003</FONT>,1,Set(CALLERID(num)=<FONT size=3>8001234003</FONT>)<BR>exten => <FONT size=3>8001234003</FONT>,n,Set(CALLERID(name)="Line 5")</FONT></DIV> <DIV dir=ltr>exten => 8001234003,n,Dial(DAHDI/34,,rt)</DIV> <P>Unless your using variable for the name and the number, you should not put them in ${}.<BR></P> <P>Jimmy<BR></P> <BLOCKQUOTE _style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px"> <DIV _class="msgHeaders">-----Original Message-----<BR><B>From:</B> venuiyer@motorola.com<BR><B>Sent:</B> Thu, 4 Mar 2010 19:50:03 +0800<BR><B>To:</B> asterisk-users@lists.digium.com, asterisk-users@lists.digium.com, asterisk-users@lists.digium.com<BR><B>Subject:</B> Re: [asterisk-users] Caller ID in Asterisk<BR><BR></DIV> <DIV _class="oldBody"> <DIV> <DIV dir=ltr> <DIV dir=ltr><FONT color=#000000 size=2 face=Arial>HI All,</FONT></DIV> <DIV dir=ltr><FONT size=2 face=Arial></FONT> </DIV> <DIV dir=ltr><FONT size=2 face=Arial> Below is the ones i tried</FONT></DIV> <DIV dir=ltr><FONT size=2 face=Arial></FONT> </DIV> <DIV dir=ltr> <DIV dir=ltr>exten => 8001234003,1,Dial(DAHDI/34,,rt)</DIV> <DIV dir=ltr><FONT size=2>exten => <FONT size=3>8001234003</FONT>,1,Set(CALLERID(num)=${<FONT size=3>8001234003</FONT>})<BR>exten => <FONT size=3>8001234003</FONT>,1,Set(CALLERID(name)=${Line 5})</FONT></DIV> <DIV dir=ltr><FONT size=2></FONT> </DIV> <DIV dir=ltr><FONT size=2>However i got an error message sayinfg Function CallerID not registered.</FONT></DIV> <DIV dir=ltr><FONT size=2></FONT> </DIV> <DIV dir=ltr><FONT size=2>Kindly help me...</FONT></DIV></DIV></DIV> <DIV dir=ltr><BR> <HR tabIndex=-1> <FONT size=2 face=Tahoma><B>From:</B> asterisk-users-bounces@lists.digium.com on behalf of Gopalakrishnaiyer Venugopal-Q16770<BR><B>Sent:</B> Thu 3/4/2010 3:59 PM<BR><B>To:</B> Asterisk Users Mailing List - Non-Commercial Discussion; asterisk-users@lists.digium.com<BR><B>Subject:</B> [asterisk-users] Caller ID in Asterisk<BR></FONT><BR></DIV> <DIV dir=ltr> <DIV dir=ltr> <DIV dir=ltr><FONT color=#000000 size=2 face=Arial>Hi All,</FONT></DIV> <DIV dir=ltr><FONT size=2 face=Arial></FONT> </DIV> <DIV dir=ltr><FONT size=2 face=Arial> I have an asterik machine which is connected via a PRI to the SIP server.When i call from the Asterisk machine to the SIP server i am not getting the caller id of the lines at the sip side.</FONT></DIV> <DIV dir=ltr><FONT size=2 face=Arial></FONT> </DIV> <DIV dir=ltr><FONT size=2 face=Arial>Please help me to identify how this can be set.The extensions.conf file is attached.</FONT></DIV> <DIV dir=ltr><FONT size=2 face=Arial></FONT> </DIV> <DIV dir=ltr><FONT size=2 face=Arial></FONT> </DIV> <DIV dir=ltr><FONT size=2 face=Arial>Cheers</FONT></DIV> <DIV dir=ltr><FONT size=2 face=Arial>venu</FONT></DIV></DIV> <DIV dir=ltr><BR> </DIV></DIV></DIV></DIV></BLOCKQUOTE> <HR SIZE=1 noShade _style="CLEAR: both; MARGIN-TOP: 10px; HEIGHT: 1px"> <DIV _style="PADDING-RIGHT: 3px; PADDING-LEFT: 3px; BACKGROUND: white; PADDING-BOTTOM: 3px; FONT: 12px/1.3em Verdana,sans-serif; COLOR: black; PADDING-TOP: 3px"><A href="inbox.com/notifier"><IMG border=0 alt="Email Notifier Preview" align=left src="" width=159 _style="MARGIN-RIGHT: 15px"></A> <BR><STRONG><FONT color=#2086c3>Receive Notifications of Incoming Messages</FONT></STRONG><BR>Easily monitor multiple email accounts & access them with a click. Visit <A href="inbox.com/notifier">inbox.com/notifier</A> and check it out!</DIV></DIV></DIV></DIV></BLOCKQUOTE></BODY> </HTML>