[Serusers] send_rtpp_command error in nat configuration

Andrei Pelinescu-Onciul pelinescu-onciul at fokus.fraunhofer.de
Fri Oct 1 20:22:53 CEST 2004


On Sep 30, 2004 at 18:42, Allan <voip_tango at yahoo.ca> wrote:
> Hello,
> 
> I am have having difficulty getting rtpproxy and ser
> to work together correctly.  Each time I start ser
> (after first starting rtpproxy) I get the following
> errors:
> 
[...]
> send_rtpp_command: can't read reply from a RTP proxy
> ERROR: send_rtpp_command: can't read reply from a RTP
[...]
> 
> Looking through the list I thought it was an incorrect
> rtpproxy version and downloaded and installed the
> stable 0.8.14 ser version and latest rtpproxy from
> CVS.  But I still see the same errors.  I can see the
> rtpproxy process running and rtpproxy.sock is present.
>  
> 
> Currently I have ser 0.8.14 and rtpproxy 1.21
> 2004/08/13  running on freebsd 4.10.  Aside from these
> errors the calls set up fine but with no audio.
> 
> I have been searching through the list and google for
> a couple of days but still seem to be missing
> something.
> 
> Any thoughts on what I should try next?

Check your permissions on rtpproxy.sock (if you're not running ser as
root).

Try also the attached nathelper patch, which should give a little more
information on the errors above.

Andrei
-------------- next part --------------
diff -u -r1.63 nathelper.c
--- nathelper.c	9 Sep 2004 10:38:00 -0000	1.63
+++ nathelper.c	1 Oct 2004 18:19:10 -0000
@@ -1152,7 +1152,8 @@
 		}
 		if (connect(fd, (struct sockaddr *) &addr, sizeof(addr)) < 0) {
 			close(fd);
-			LOG(L_ERR, "ERROR: send_rtpp_command: can't connect to RTP proxy\n");
+			LOG(L_ERR, "ERROR: send_rtpp_command: can't connect to RTP"
+					" proxy: %s [%d]\n", strerror(errno), errno);
 			return NULL;
 		}
 
@@ -1169,7 +1170,8 @@
 		} while (len == -1 && errno == EINTR);
 		close(fd);
 		if (len <= 0) {
-			LOG(L_ERR, "ERROR: send_rtpp_command: can't read reply from a RTP proxy\n");
+			LOG(L_ERR, "ERROR: send_rtpp_command: can't read reply from a "
+					"RTP proxy: %s [%d]\n", strerror(errno), errno);
 			return NULL;
 		}
 	} else {


More information about the sr-users mailing list