Hi,
is there any way to list the current rtp-proxy bindings?
Searching through the source code ive found that rtpproxy
understands a "L" or "l" command to list the current bindings.
I tried to "echo "L" > /var/run/rtpproxy.sock" which results in
an error and i tried to communicate with ser via a perl-script
(see below) to no avail. Could it be that rtpproxy can only
communicate with one process a time? Is there any other way
to dump the list of udp bindings?
best regards,
Arnd
-----------------------
#!/usr/bin/perl
use IO::Socket;
$client = IO::Socket::UNIX->new(PeerAddr => "/var/run/rtpproxy.sock",
Type => SOCK_DGRAM,
Timeout => 10 )
or die $@;
print $client "L\n";
$answer = <$client>;
print "proxy said: $answer\n";
close( $client );