<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2604" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>&gt; Thank you for your comments. However for the moment I would like 
to<BR>&gt; stay with 0.8.14 [If you don't mind ;)]. I implemented the<BR>&gt; 
nathelper/rtpproxy script given in the onsip getting started<BR>&gt; document. 
The only difference is that I removed the "has_totag()"<BR>&gt; from the loose 
route section. I have two questions.&nbsp;&nbsp;&nbsp;&nbsp;<BR></DIV>
<DIV>For NAT, the difference is not really that big.&nbsp; However, 0.9.0 has a 
lot of new features and has proven stable in many large-scale setups. However, 
0.8.14 is fine for the basics.</DIV>
<DIV>&nbsp;<BR>&gt; 1) In the route[2] section, should the 
sl_send_reply("100",<BR>&gt; "Trying"); be sl_send_reply("200", "OK");?? I 
couldnt register unless<BR>&gt; I changed this line and this route deals with 
the SIP REGISTER<BR>&gt; message.&nbsp;&nbsp;&nbsp;<BR></DIV>
<DIV>No, this only sends an OK when things not really are OK. save("location") 
will&nbsp;send the 200 OK if you get there.&nbsp; You are probably stopped by 
the check_to(). If username (before@) is different from auth name in your 
client, you will not be authorized.</DIV>
<DIV>&nbsp;<BR>&gt; 2) After I changed this I tried to make a call between two 
phones (on<BR>&gt; public addresses) and got a 404 message. Could there be an 
obvious<BR>&gt; reason for this? I am eager to stay with this script as it 
must<BR>&gt; obviously work and would be more reliable than my own script which 
is<BR>&gt; patched together from variors posts on the mailing 
list.&nbsp;&nbsp;&nbsp; <BR></DIV>
<DIV>Because you are not registered (never reached save() ).</DIV>
<DIV>g-)</DIV>
<DIV><BR>&gt; Regards,<BR>&gt; Vivienne.<BR>&gt; <BR>&gt; "Greger V. Teigre" 
&lt;greger@teigre.com&gt; wrote:<BR>&gt; Dear Vivienne,<BR>&gt; I wrote the 
rtpproxy section, so I'll respond for Paul.<BR>&gt; See inline.<BR>&gt; 
g-)<BR>&gt; ---- Original Message ----<BR>&gt; From: Vivienne Curran<BR>&gt; To: 
Java Rockx ; serusers@lists.iptel.org<BR>&gt; Sent: Friday, April 01, 2005 12:25 
PM<BR>&gt; Subject: Re: [Serusers] Nathelper/RTPProxy not working for 
agents<BR>&gt; behind NAT<BR>&gt; <BR>&gt;&gt; Hello Paul,<BR>&gt;&gt; 
<BR>&gt;&gt; Thank you for responding. I have now read the getting 
started<BR>&gt;&gt; document. I am confused as to why my config should have 
supported two<BR>&gt;&gt; private clients on the same subnet communicating via 
rtpproxy [even<BR>&gt;&gt; though again i acknowledge its not the most efficient 
way to process<BR>&gt;&gt; the call] but anyhow I have decided to try to modify 
my script<BR>&gt;&gt; according to the sample rtpproxy/nathelper enabled 
scripted in the<BR>&gt;&gt; onsip document version 3. I will work from this as 
it will provide me<BR>&gt;&gt; with a solid basis.<BR>&gt; <BR>&gt; Please note 
that the example in the document is based on the setup<BR>&gt; (figure) found at 
the beginning of the document.&nbsp; The tests done to<BR>&gt; detect NAT will 
match for your two private clients as they will have<BR>&gt; private 
addresses.&nbsp; Thus, calls between the two will be proxied even<BR>&gt; though 
it is not necessary (as I believe you want). The<BR>&gt; nat_uac_test() function 
can be modifed to do other tests if you have<BR>&gt; some knowledge (due to 
registration or other processing) about<BR>&gt; whether the caller/callee is 
NATed or not.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&gt; <BR>&gt; As to the 
Grandstream config, there is no need to have them listen on<BR>&gt; different 
ports as they will have different IP addresses. Do you<BR>&gt; register to SER 
with the server's public IP address or the private?<BR>&gt; If you use the 
public, SIP messaging will go through your NAT and if<BR>&gt; you have a SIP ALG 
(application layer gateway), it will attempt to<BR>&gt; change the addresses to 
public for the phone using port 5060 and<BR>&gt; (maybe) not for the one using 
5061.&nbsp; The simplest is to use the<BR>&gt; private address in the 
Grandstream phones as SIP server address.&nbsp;&nbsp;&nbsp;&nbsp; <BR>&gt; 
<BR>&gt; <BR>&gt;&gt; I have a few simple questions though. I am getting an 
error with the<BR>&gt;&gt; parameter "has_totag()". The /var/log/messages says I 
am missing the<BR>&gt;&gt; loadmodule. What loadmodule supports the above 
parameter? Also I was<BR>&gt;&gt; unable to load the module uri_db.so. Is this 
module usually included<BR>&gt;&gt; with 0.8.14?<BR>&gt; <BR>&gt; The Getting 
Started document is built on 0.9.0, which will shortly be<BR>&gt; released as 
stable (according to the core team).&nbsp; The has_totag() can<BR>&gt; be found 
in the uri module. Please verify that have the latest<BR>&gt; rtpproxy.cfg file 
as there were a couple of issues with an early<BR>&gt; 
version.&nbsp;&nbsp;&nbsp; <BR>&gt; I recommend that you download the 0.9.0 
Getting Started source<BR>&gt; package on http://onsip.org/ and forget about 
0.8.14 unless you have<BR>&gt; some very special reasons for not doing so.&nbsp; 
<BR>&gt; <BR>&gt; Regards,<BR>&gt; Greger<BR>&gt; <BR>&gt;&gt; Java Rockx 
&lt;javarockx@gmail.com&gt; wrote:<BR>&gt;&gt; Perhaps our "getting started" 
document at http://www.onsip.org/ will<BR>&gt;&gt; help you. It's based on 
ser-0.9.x, but it does cover both mediaproxy<BR>&gt;&gt; and 
rtpproxy.<BR>&gt;&gt; <BR>&gt;&gt; Regards,<BR>&gt;&gt; Paul<BR>&gt;&gt; 
<BR>&gt;&gt; <BR>&gt;&gt; On Thu, 31 Mar 2005 19:22:23 +0100 (BST), Vivienne 
Curran<BR>&gt;&gt; wrote:<BR>&gt;&gt;&gt; <BR>&gt;&gt;&gt; <BR>&gt;&gt;&gt; 
Hi,<BR>&gt;&gt;&gt; <BR>&gt;&gt;&gt; <BR>&gt;&gt;&gt; <BR>&gt;&gt;&gt; I am 
having problems troubleshooting a problem I am experiencing<BR>&gt;&gt;&gt; with 
my SER configuration. I have ser 0.8.14 running with rtpproxy<BR>&gt;&gt;&gt; 
and nathelper enabled. I have two phones on the same subnet 
behind<BR>&gt;&gt;&gt; nat and I would like to make a call between the two. I 
want to<BR>&gt;&gt;&gt; invoke rtpproxy for this as they both have private 
address [I know<BR>&gt;&gt;&gt; this isn't the most efficient way as they're 
both on the same subnet<BR>&gt;&gt;&gt; but I can worry about that 
later].<BR>&gt;&gt;&gt; <BR>&gt;&gt; ! &gt;<BR>&gt;&gt;&gt; <BR>&gt;&gt;&gt; 
When I ring from the phone 1 ( 2092) to phone 2 (2093), 2092 can<BR>&gt;&gt;&gt; 
hear voice but 2093 can't. When 2093 ring 2092, there's no 
audio.<BR>&gt;&gt;&gt; These phones are Grandstream BT100's. They have been 
configured to<BR>&gt;&gt;&gt; listen on different SIP and RTP 
ports.<BR>&gt;&gt;&gt; <BR>&gt;&gt;&gt; <BR>&gt;&gt;&gt; <BR>&gt;&gt;&gt; 2092: 
SIP Port: 5060<BR>&gt;&gt;&gt; <BR>&gt;&gt;&gt; 2092: RTP Port: 
5004<BR>&gt;&gt;&gt; <BR>&gt;&gt;&gt; 2093: SIP Port: 5061<BR>&gt;&gt;&gt; 
<BR>&gt;&gt;&gt; 2093: RTP Port: 5005<BR>&gt;&gt;&gt; <BR>&gt;&gt;&gt; 
<BR>&gt;&gt;&gt; <BR>&gt;&gt;&gt; I have tried to include my ser.cfg and SER 
message dumps but<BR>&gt;&gt;&gt; serbouncers said the attachment was too big. I 
can try adding them<BR>&gt;&gt;&gt; again if requiredI can confirm that my 
rtpproxy is working<BR>&gt;&gt;&gt; (originally I thought it wasn't) by using 
"strace –d -f –F". I can<BR>&gt;&gt;&gt; see a signal being 
returned.<BR>&gt;&gt;&gt; <BR>&gt;&gt;&gt; <BR>&gt;&gt;&gt; <BR>&gt;&gt;&gt; Any 
help would be appreciated or advise as to! how I can proceed<BR>&gt;&gt;&gt; 
troubleshooting.<BR>&gt;&gt;&gt; <BR>&gt;&gt;&gt; Kindest 
Regards,<BR>&gt;&gt;&gt; <BR>&gt;&gt;&gt; Vivienne.<BR>&gt;&gt;&gt; 
<BR>&gt;&gt;&gt; Send instant messages to your on line friends<BR>&gt;&gt;&gt; 
http://uk.messenger.yahoo.com<BR>&gt;&gt;&gt; 
_______________________________________________<BR>&gt;&gt;&gt; Serusers mailing 
list<BR>&gt;&gt;&gt; serusers@lists.iptel.org<BR>&gt;&gt;&gt; 
http://lists.iptel.org/mailman/listinfo/serusers<BR>&gt;&gt;&gt; <BR>&gt;&gt;&gt; 
<BR>&gt;&gt;&gt; <BR>&gt;&gt; <BR>&gt;&gt; Send instant messages to your online 
friends<BR>&gt;&gt; http://uk.messenger.yahoo.com<BR>&gt;&gt; <BR>&gt;&gt; 
<BR>&gt;&gt; <BR>&gt;&gt; 
_______________________________________________<BR>&gt;&gt; Serusers mailing 
list<BR>&gt;&gt; serusers@lists.iptel.org<BR>&gt;&gt; 
http://lists.iptel.org/mailman/listinfo/serusers<BR>&gt; Send instant messages to 
your online friends<BR>&gt; http://uk.messenger.yahoo.com </DIV></BODY></HTML>