Hi, I have installed Asterisk 1.4 along with net-SNMP 5.4.1 in my Fedora 8 system. Asterisk works fine for me and I can log into Asterisk-GUI and monitor asterisk. What I would like to know is how to get information such as SIP users, number of SIP connections and traffic associated with those from asterisk using a C Code. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080209/62726a40/attachment.htm
Soumya Kat wrote:> Hi, > > I have installed Asterisk 1.4 along with net-SNMP 5.4.1 in my Fedora 8 > system. Asterisk works fine for me and I can log into Asterisk-GUI and > monitor asterisk. > > What I would like to know is how to get information such as SIP users, > number of SIP connections and traffic associated with those from > asterisk using a C Code. > > Thank you. > >Soumya, This may help: http://www.voip-info.org/wiki-Asterisk+manager+API Not sure what you mean by "traffic" though. For call history, you might look at: http://www.voip-info.org/wiki/view/CDR For current status of sip lines, etc. the Asterisk Manager Interface (AMI) is still your friend. AMI command "SipPeers" will force all event packets to be issued for sip peers which you can catch and analyze. -- Warm Regards, Lee "Everything I needed to learn in life, I learned selling encyclopedias door to door."
Mojo with Horan & Company, LLC
2008-Feb-08 19:32 UTC
[asterisk-users] Monitor Asterisk using C
Soumya Kat wrote:> Hi, > > I have installed Asterisk 1.4 along with net-SNMP 5.4.1 in my Fedora 8 > system. Asterisk works fine for me and I can log into Asterisk-GUI and > monitor asterisk. > > What I would like to know is how to get information such as SIP users, > number of SIP connections and traffic associated with those from > asterisk using a C Code. > > Thank you. > ------------------------------------------------------------------------ > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-usersAlthough the code is pretty messy, you can see how I got this sort of information from asterisk for my monitor project AstSee. Source is available at http://www.astsee.com/ Mojo
Thank you for replying. The probleam is how do I use the Asterisk_manager-API and implement them in my C code. Like how do I call a API in my C program. It will be of great help if I can have an example. By traffic I mean how much bandwidth or data transferring is taking place in a call that is network traffic. I want to monitor the asterisk server. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080209/e7820111/attachment.htm