[Serdev] nathelper and rtpproxy communications problem

Maxim Sobolev sobomax at portaone.com
Fri Jan 23 09:54:27 UTC 2004


You can only use latest cvs version of nathelper with cvs version of rtp 
  proxy. rtp proxy cvs is located here:

http://cvs.berlios.de/cgi-bin/viewcvs.cgi/ser/rtpproxy/

-Maxim

Paul Winkeler wrote:

> Hi all,
> 
> Just started to get nathelper and rtpproxy (PortaOne) to work and ran into a
> problem where the logs showed that the nathelper module was not able to get
> a response to its request for a version identifier from rtpproxy
> [www.portaone.com/~sobomax/rtpproxy.tar].  As I figure it there were two
> problems:
> 1) The rtpproxy has no clue what a version request even is
> 2) Unlike all the other commands sent to rtpproxy, the request for a version
> identifier consists of a single 'v' character whereas al other commands are
> of the form: C\n\00 where "C" is the command character.
> 
> Assuming my diagnosis is correct, here is the patch to get nathelper.c to
> issue a more properly formed request for a version:
> 
> @@ -172,7 +172,7 @@
> int rtpp_ver;
> char *cp;
> bind_usrloc_t bind_usrloc;
> - struct iovec v[1] = {{"V", 1}};
> + struct iovec v[1] = {{"V\n", 3}};
> 
> In addition, the file main.c from the rtpproxy tarball needs to be modified
> to include one more case in its switch statement:
>     case 'v':
>     case 'V':
>         len = sprintf(buf, "%s\n", "20040107");
>         while (write(controlfd, buf, len) == -1 && errno == EINTR);
>         return;
> 
> Please let me know if I am barking up the wrong tree or if I simply need to
> submit my patches elsewhere.
> 
> Thanks and I look forward to contributing (more?) in the future,
>  PaulW
> 
> (216) 533-5708
> 
> _______________________________________________
> Serdev mailing list
> serdev at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serdev
> 
> 
> 





More information about the Serdev mailing list