[SR-Users] RTPProxy with kamailio : How to get calls count?

Peter Lemenkov lemenkov at gmail.com
Thu Sep 13 15:52:47 CEST 2012


2012/9/13 Alex Balashov <abalashov at evaristesys.com>:
> You can't get it from rtpproxy. You'd really have to use something like the
> dialog or htable modules to keep call state and get that from Kamailio.

On the contrary it's possible (using raw UDP reads/writes):

work ~: echo "h1u203u03 I\n" | nc -w 1 -u 127.0.0.1 22222
 sessions created: 0
active sessions: 0
active streams: 0
work ~:

Where

* h1u203u03 is randomly chosen token,
* 127.0.0.1 is the rtpproxy's control IP,
* 22222 is the rtpproxy's control port,
* "-u" means that we're using UDP
* -w 1 is the timeout in seconds to wait before closing nc.

I can't imagine that someone will use nc in performance testing but I
think it looks like a good start.

-- 
With best regards, Peter Lemenkov.



More information about the sr-users mailing list