I'm using nathelper with SER. Here's a quickie diagram of my setup:
[SIP ATA] <-------------> [SER] <------------------> [Asterisk] 10.0.201.5 eth1 - 10.0.201.7 eth0 - <public_ip1> eth0 - <public_ip0>
I'm using the basic nathelper example configuration, except for one modification. I removed the call to t_relay and replaced it with:
t_relay_to("<public_ip1>", "5060");
Basically I want a SIP packet to come in to eth1 on SER server, get rewritten as needed by nathelper, then get sent out to public_ip1 on my Asterisk PBX.
This appears to be working except a tcpdump on eth0 on SER shows:
14:39:08.654908 IP 10.0.201.7.5060 > <public_ip1>.5060: UDP, length 629
Obviously the packets will never get back with that source IP address. What command should I be looking at to rewrite this IP so it shows up as <public_ip0> automatically?
I'm trying to get SIP ATA's to REGISTER on my Asterisk box but proxy through SER ... (and eventually make use of the rtp proxy).
Can post more info if requested, I am new to SER. :-)
See my post yesterday to Alan on running SER behind a NAT, the same (at least) applies. You may also look at advertised_address and advertised_port. g-)
Ray Van Dolson wrote:
I'm using nathelper with SER. Here's a quickie diagram of my setup:
[SIP ATA] <-------------> [SER] <------------------> [Asterisk] 10.0.201.5 eth1 - 10.0.201.7 eth0 - <public_ip1> eth0 - <public_ip0>
I'm using the basic nathelper example configuration, except for one modification. I removed the call to t_relay and replaced it with:
t_relay_to("<public_ip1>", "5060");
Basically I want a SIP packet to come in to eth1 on SER server, get rewritten as needed by nathelper, then get sent out to public_ip1 on my Asterisk PBX.
This appears to be working except a tcpdump on eth0 on SER shows:
14:39:08.654908 IP 10.0.201.7.5060 > <public_ip1>.5060: UDP, length 629
Obviously the packets will never get back with that source IP address. What command should I be looking at to rewrite this IP so it shows up as <public_ip0> automatically?
I'm trying to get SIP ATA's to REGISTER on my Asterisk box but proxy through SER ... (and eventually make use of the rtp proxy).
Can post more info if requested, I am new to SER. :-)
Thanks Gregor, that looks like useful information. I haven't even gotten to the proxying RTP part yet, but when I run into problems hopefully that will get me going again.
I made some headway on my issue:
1) Apparently the order of the listen directives has some bearing on which interface packets will go out of. 2) Probably needed mhomed set to "yes" :-) 3) I was running in debug mode -- ie: fork was set to no. :-(
Now I'm getting
Got SIP response 479 "We don't forward to private IP addresses" back from <ser_ip_address>
message on my Asterisk console. At least it's registering so I can track down this problem next.
Ray
PS: What exactly does "record_route_preset()" do? The docs don't say much other than "don't use this unless you know what you're doing."
Registration is at least working (error above not withstanding) and I am not using that option, so I'm wondering if I truly need it.
On Tue, Aug 02, 2005 at 08:30:11AM +0200, Greger V. Teigre wrote:
See my post yesterday to Alan on running SER behind a NAT, the same (at least) applies. You may also look at advertised_address and advertised_port. g-)
PS: What exactly does "record_route_preset()" do? The docs don't say much other than "don't use this unless you know what you're doing."
Registration is at least working (error above not withstanding) and I am not using that option, so I'm wondering if I truly need it.
It adds a Route header with the given IP address (and text). See the ONsip.org mediaproxy example config for an example.g g-)