Need help in monitoring calls on remote asteriskserver
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Need help in monitoring calls on remote asteriskserver
Hi,
Can anyone suggest any way , how to monitor calls of an asterisk server from another asterisk server installed different ubuntu system with SNMP.
I have already installed and tested SNMP . Net-snmp agent is getting connected and on SCLI I am able to moniter another system but unable to monitor calls through that asterisk server.
Hi,
Can anyone suggest any way , how to monitor calls of an asterisk server from another asterisk server installed different ubuntu system with SNMP.
I have already installed and tested SNMP . Net-snmp agent is getting connected and on SCLI I am able to moniter another system but unable to monitor calls through that asterisk server.
Your question is not only vague, but makes very little sense.
If you say you're able to monitor another system, then why can't you set up THIS system the same way and do what you're after?? And you don't say what you mean by "monitor". Do you want to log call source/destination/time, record the actual conversations, or just flag some to certain numbers???
Your question is not only vague, but makes very little sense.
If you say you're able to monitor another system, then why can't you set up THIS system the same way and do what you're after?? And you don't say what you mean by "monitor". Do you want to log call source/destination/time, record the actual conversations, or just flag some to certain numbers???
I am sorry for not being clear in my words. You got right I want log call source and destination. Let me make it clear a bit, Asterisk server(1)
with ip 192.168.1.152 is main one which is to be monitored. On CLI of asterisk server(1) I can see if sip calls are initiated , state of call like ringing, answered, etc and sip peers.
I have to monitor the same from another system with ip 192.168..116 asterisk server(2). After configuring SNMP, Net-SNMP agent x is connected. Using scli command in asterisk server(2) when I try to monitor asterisk server(1) I get the system process information, which command is typed in last, which file it read, but I don't know command or configuration which will give me call log source and destination, state of sip call (ringing, answered ,etc) of asterisk server(1) on asterisk server(2).
So, my question was not vague but it's just I was not clear in my explanation.
Kindly help, if you could. I need to monitor calls via asterisk server, from a remote system asterisk.
I am sorry for not being clear in my words. You got right I want log call source and destination. Let me make it clear a bit, Asterisk server(1)
with ip 192.168.1.152 is main one which is to be monitored. On CLI of asterisk server(1) I can see if sip calls are initiated , state of call like ringing, answered, etc and sip peers.
I have to monitor the same from another system with ip 192.168..116 asterisk server(2). After configuring SNMP, Net-SNMP agent x is connected. Using scli command in asterisk server(2) when I try to monitor asterisk server(1) I get the system process information, which command is typed in last, which file it read, but I don't know command or configuration which will give me call log source and destination, state of sip call (ringing, answered ,etc) of asterisk server(1) on asterisk server(2).
So, my question was not vague but it's just I was not clear in my explanation.
...which is almost the exact definition of "vague".
Quote:
Kindly help, if you could. I need to monitor calls via asterisk server, from a remote system asterisk.
...which brings us back to "If you're doing this on ONE server and it's working, why is it a problem to do it on another?"
I am already done with installing SNMP, agentX connection and testing with snmpwalk, everything successful. My need is, if a sip phone with extension say "5004" initiate call to "5006" (both extension registered with server to be monitored ip being 192.168.1.152), I could able to see that on terminal of monitoring server with ip 192.168.1.116. No call processing can be seen from either of the terminal where Net-SNMP agent is connected is shown, or terminal open with "scli <ip>" command. Although scli command monitors remote system's process ongoing tcp listener, udp listener, command executed last, etc.
Here monitoring asterisk is 192.168.1.116 and asterisk to be monitored is 192.168.1.152. Thankyou for being supportive, please suggest something to accomplish the above mentioned.
Hi,
I am already done with installing SNMP, agentX connection and testing with snmpwalk, everything successful. My need is, if a sip phone with extension say "5004" initiate call to "5006" (both extension registered with server to be monitored ip being 192.168.1.152), I could able to see that on terminal of monitoring server with ip 192.168.1.116. No call processing can be seen from either of the terminal where Net-SNMP agent is connected is shown, or terminal open with "scli <ip>" command. Although scli command monitors remote system's process ongoing tcp listener, udp listener, command executed last, etc.
Here monitoring asterisk is 192.168.1.116 and asterisk to be monitored is 192.168.1.152. Thankyou for being supportive, please suggest something to accomplish the above mentioned.
Restating your question multiple times is pointless. AGAIN, have you installed the Asterisk MIB?? Just installing base SNMP will *NOT* give you the extended capabilities the Asterisk MIB will. You were directed to this before...did you read/try/understand it?
Yes I have downloaded the mib files, both asterisk mib and digium mib, saved all mibs in /usr/share/snmp/mibs. snmpwalk testing was successful because those mibs were available. Final testing with snmpwalk, which is given in Voxilla asterisk monitoring with snmp website is successful.
I need to know what else is needed to configure to monitor calls of remote server and where I would be able to see that, on asterisk cli or snmp scli.
Yes I have downloaded the mib files, both asterisk mib and digium mib, saved all mibs in /usr/share/snmp/mibs. snmpwalk testing was successful because those mibs were available. Final testing with snmpwalk, which is given in Voxilla asterisk monitoring with snmp website is successful.
I need to know what else is needed to configure to monitor calls of remote server and where I would be able to see that, on asterisk cli or snmp scli.
Ok..so you ARE ABLE to see what you need...so where, exactly, is your problem??? Again, a simple Google search turns up many ways to monitor calls....did you do ANY research on your own as of yet?
I have already gone through this link during my research, but thing is that I am not allowed to use any such tools like cacti or openNMS, etc.
Till now whatever you have suggested I already did that before, and after trying all those when I was unable to find how to make my asterisk server to monitor calls going through remote asterisk server I posted for the same on this website.
I have already gone through this link during my research, but thing is that I am not allowed to use any such tools like cacti or openNMS, etc.
Till now whatever you have suggested I already did that before, and after trying all those when I was unable to find how to make my asterisk server to monitor calls going through remote asterisk server I posted for the same on this website.
Ok, if you're not going to post any details about what you have done/tried already, then don't bother posting. We can't guess as to what you're 'allowed' to use, what you've done, etc., so when your ORIGINAL QUESTION gets answered, and you post it three more times, there is little point.
You have BEEN TOLD what you can do, and led to things...so this:
Quote:
Originally Posted by Shweta Mandal
Someone please come up with a solution for monitoring calls going through remote asterisk sever
...is asking for a handout. Do your own research, since you're not willing to tell us what you can/can't do, what you have/haven't tried...we're tired of playing 20 questions.
To put it VERY SIMPLY for you:
You say you've got the SNMP modules/mibs loaded on the asterisk server
You say you can use the CLI snmp tools to see things
So PICK SOMETHING that does what you want, that operates within whatever parameters you have.
If you're getting CLI data, then YOU, PERSONALLY, may have to write a script to parse the data. And again, if you bothered to put "cli asterisk monitoring" into Google, you'd see LOTS...
I have enabled SNMP support in asterisk server by installing and rebuild Net-SNMP.
I have installed required packages for res-snmp module.
I have configured snmpd.conf file as per the requirement, created a user, congigured agentX for snmp daemon, com2sec, etc. .
I have enabled UDP for all access instead of localhost in /etc/snmp/snmpd.conf
I got the ASTERISK and Digium MIB files.
Made agenX executable.
Configured res_snmp.conf (enabled and subagent uncomment)
Restarted asterisk and did final testing with snmpwalk successfully.
Now what next I need to do to see/monitor calls going through remote asterisk server with ip 192.168.1.152. and where I will be able to see that from my asterisk server (192.168.1.116), like : 5004 initiated call to 1002, ringing, answered, both extension registered with 192.168.1.152.
I have tried $scli 192.168.1.152 ; from my asterisk (192.168.1.116)
But I can monitor only system processes of 192.168.1.152 here but not call going through that asterisk.
Next I have configured manager.conf also, enabled the required ones.
I have enabled SNMP support in asterisk server by installing and rebuild Net-SNMP.
I have installed required packages for res-snmp module.
I have configured snmpd.conf file as per the requirement, created a user, congigured agentX for snmp daemon, com2sec, etc. .
I have enabled UDP for all access instead of localhost in /etc/snmp/snmpd.conf
I got the ASTERISK and Digium MIB files.
Made agenX executable.
Configured res_snmp.conf (enabled and subagent uncomment)
Restarted asterisk and did final testing with snmpwalk successfully.
Now what next I need to do to see/monitor calls going through remote asterisk server with ip 192.168.1.152. and where I will be able to see that from my asterisk server (192.168.1.116), like : 5004 initiated call to 1002, ringing, answered, both extension registered with 192.168.1.152.
YES...RIGHT...WE UNDERSTAND THIS. Saying it over and over doesn't bring anything new. AGAIN, you have said that you're "not allowed" to use the tools mentioned...what you HAVEN'T bothered to tell us is what you ARE ALLOWED TO USE, and WHAT YOU HAVE ALREADY RESEARCHED. We're not going to keep guessing, and saying "try this tool xxxx....", only for you to come back and say "we aren't allowed....try again...I need to monitor asterisk...."
Quote:
I have tried $scli 192.168.1.152 ; from my asterisk (192.168.1.116)
But I can monitor only system processes of 192.168.1.152 here but not call going through that asterisk.
Next I have configured manager.conf also, enabled the required ones.
And AGAIN...did you bother to try to put the search term you were handed into Google???? Because the FIRST AND SECOND HITS tell you EXACTLY how to do what you're after. AGAIN.....show some effort.
Thankyou for helping so much, without google none can accomplish to an extent in R&D if the thing is new to him/her. If I am not giving my effort then why will I bother to find a solution from this forum. If anyone go through my queries he/she'll understand that I want to see result on Linux CLI not on gui of any openNMs or CACTI type tool.
Already I have did that with openNMS but my boss clearly mentioned I don't have to monitor like this.
Please stop giving rude reply. I am here for a solution to my problem not for to making myself understand how incapable I am, or I just want solution with effort.
I'll find a way, no more help is needed. Thankyou so much.
Thankyou for helping so much, without google none can accomplish to an extent in R&D if the thing is new to him/her. If I am not giving my effort then why will I bother to find a solution from this forum. If anyone go through my queries he/she'll understand that I want to see result on Linux CLI not on gui of any openNMs or CACTI type tool.
..and if you bothered to READ AND UNDERSTAND what I already posted, you'd have seen SEVERAL CLI TOOLS...which is EXACTLY what you say you're looking for. And which you apparently couldn't look up on your own.
Quote:
Already I have did that with openNMS but my boss clearly mentioned I don't have to monitor like this.
And AGAIN, WE HAVE NO IDEA what your boss says, or what constraints you have. You tell us one little detail at a time, and somehow expect us to know your entire situation. Things do work like that...we can't read minds, tell the future, or somehow magically 'know' what situation you're in, UNLESS YOU TELL US. And you haven't.
Quote:
Please stop giving rude reply. I am here for a solution to my problem not for to making myself understand how incapable I am, or I just want solution with effort.
Then please start paying attention. You are apparently expecting us to 'know' your entire situation, and are wanting us to guess and ask for every single detail, THEN you want us to look up things for you.
Sorry, no. AGAIN, if you bothered to show a TINY bit of effort, you would have your answer. You were told very plainly what to put into Google...again, "cli asterisk monitoring". Did you bother to do it??? You were also told that if you DID, the first two hits would give you what you need...did you read those things???? Since you obviously didn't bother with even trying to look this up, despite being HANDED the search query (which you COULD have done yourself, before ever posting here), you would have seen this: http://www.commandlinefu.com/command...n-asterisk-pbx
...and if you bothered to read/understand that, you would have seen this command:
Since you need to be spoon-fed, that shows you the calls, as they happen in real time, on an asterisk 1.6+ server. Again, you don't bother saying what version of asterisk you're running, so if it's greater than 1.6 the command may be different. If so, then YOU, personally, can try to look up the correct asterisk command/switches, rather than coming back and asking us to do it for you...again....
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.