I want to be able to look back at an individual call for
dropped packed% and jitter.
Using SIP SHOW CHANNELSTATS
seems to work pretty well, so I have placed the command
asterisk -rx “sip show channelstats” in a bash command file
in a loop with a 5 second pause.
Basically
while:
asterisk -rx "sip show channelstats"
asterisk -rx “sip show channelstats” >> logfile.txt
sleep 5
done
(First command shows to the console, the next logs it)
After a while I get
asterisk.c No more connections allowed
After this, all phones lost connection and the machine was for all practical purposed dead. I rebooted and it came back up fine.
I am getting what appears to be relevant data here.
Actually, my only problem is when I run
asterisk -rx "sip show channelstats"
it runs for a few hours then I get
asterisk.c No more connections allowed.
I got a suggestion about using the watch command instead, but I am not sure the respondent was trying to solve the connection resource problem. I think they were trying to give me a more aesthetic output to the screen.
Is this failure to recover connections a know issue in this version? Is there a work around?
True, I will work on implementing some form of media proxy.
I guess the frustrating part of this is, for the moment is that, sip show channelstats
shows me exactly what I am looking for in a really simple form.
Do you know if there is a known problem with 1.8 when using asterisk -x in a loop from bash? Is there a reason it is using up connections?
this is to start a remote connection to asterisk and eXecute a command, rasterisk in general is both easier to tab complete and uses less resources than asterisk -r with or without the x
Hey SkykingOH, would you be so kind as to send me the the info on how to send the call data to CDR as well?
I’ve been looking for a way to store that info in the CDR.