Core Statistics
Statistics which are exported by the OpenSIPS core.
”CORE” Class
Section titled “”CORE” Class”rcv_requests
Section titled “rcv_requests”Returns the total number of received requests by OpenSIPS.
Example of usage through MI FIFO
opensipsctl fifo get_statistics rcv_requestsExample of usage from script
xlog("Total number of received requests = $stat(rcv_requests) \n");rcv_replies
Section titled “rcv_replies”Returns the total number of received replies by OpenSIPS.
Example of usage through MI FIFO
opensipsctl fifo get_statistics rcv_repliesExample of usage from script
xlog("Total number of received replies = $stat(rcv_replies) \n");fwd_requests
Section titled “fwd_requests”Returns the number of stateless forwarded requests by OpenSIPS.
Example of usage through MI FIFO
opensipsctl fifo get_statistics fwd_requestsExample of usage from script
xlog("Total number of forwarded requests = $stat(fwd_requests) \n");fwd_replies
Section titled “fwd_replies”Returns the number of stateless forwarded replies by OpenSIPS.
Example of usage through MI FIFO
opensipsctl fifo get_statistics fwd_repliesExample of usage from script
xlog("Total number of forwarded replies = $stat(fwd_replies) \n");drop_requests
Section titled “drop_requests”Returns the number of requests dropped even before entering the script routing logic.
Example of usage through MI FIFO
opensipsctl fifo get_statistics drop_requestsExample of usage from script
xlog("Total number of dropped requests = $stat(drop_requests) \n");drop_replies
Section titled “drop_replies”Returns the number of replies dropped even before entering the script routing logic, or explicitly dropped in the onreply_route.
Example of usage through MI FIFO
opensipsctl fifo get_statistics drop_repliesExample of usage from script
xlog("Total number of dropped replies = $stat(drop_replies) \n");err_requests
Section titled “err_requests”Returns the number of bogus requests from SIP point of view ( eg. : No VIA header found )
Example of usage through MI FIFO
opensipsctl fifo get_statistics err_requestsExample of usage from script
xlog("Total number of error requests = $stat(err_requests) \n");err_replies
Section titled “err_replies”Returns the number of bogus replies from SIP point of view ( eg. : No VIA header found )
Example of usage through MI FIFO
opensipsctl fifo get_statistics err_repliesExample of usage from script
xlog("Total number of error replies = $stat(err_replies) \n");bad_URIs_rcvd
Section titled “bad_URIs_rcvd”Returns the number of URIs that OpenSIPS failed to parse.
Example of usage through MI FIFO
opensipsctl fifo get_statistics bad_URIs_rcvdExample of usage from script
xlog("Total number of bad URIs detected = $stat(bad_URIs_rcvd) \n");unsupported_methods
Section titled “unsupported_methods”Returns the number of non-standard methods encountered by OpenSIPS while parsing SIP methods.
Example of usage through MI FIFO
opensipsctl fifo get_statistics unsupported_methodsExample of usage from script
xlog("Total number of unsupported methods detected = $stat(unsupported_methods) \n");bad_msg_hdr
Section titled “bad_msg_hdr”Returns the number of SIP headers that OpenSIPS failed to parse.
Example of usage through MI FIFO
opensipsctl fifo get_statistics bad_msg_hdrExample of usage from script
xlog("Total number of headers that failed to parse = $stat(bad_msg_hdr) \n");”SHMEM” Class
Section titled “”SHMEM” Class”Statistics giving information on the shared memory that OpenSIPS is using.
total_size
Section titled “total_size”Returns the total size of shared memory available to OpenSIPS processes.
Example of usage through MI FIFO
opensipsctl fifo get_statistics total_sizeExample of usage from script
xlog("Total size of SHMEM available is $stat(total_size) \n");used_size
Section titled “used_size”Returns the amount of shared memory requested and used by OpenSIPS processes.
Example of usage through MI FIFO
opensipsctl fifo get_statistics used_sizeExample of usage from script
xlog("SHMEM in use = $stat(used_size) \n");real_used_size
Section titled “real_used_size”Returns the amount of shared memory requested by OpenSIPS processes + malloc overhead
Example of usage through MI FIFO
opensipsctl fifo get_statistics real_used_sizeExample of usage from script
xlog("Real SHMEM used size is $stat(real_used_size) \n");max_used_size
Section titled “max_used_size”Returns the maximum amount of shared memory ever used by OpenSIPS processes.
Example of usage through MI FIFO
opensipsctl fifo get_statistics max_used_sizeExample of usage from script
xlog("The max SHMEM ever used is $stat(max_used_size) \n");free_size
Section titled “free_size”Returns the free memory available. Computed as total_size - real_used_size
Example of usage through MI FIFO
opensipsctl fifo get_statistics free_sizeExample of usage from script
xlog("Free SHMEM available is $stat(free_size) \n");fragments
Section titled “fragments”Returns the total number of fragments in the shared memory.
Example of usage through MI FIFO
opensipsctl fifo get_statistics fragmentsExample of usage from script
xlog("The total number of SHMEM fragments is $stat(fragments) \n");