Issue on Asterisk + CDR records

Hi all.

To give you a brief, here is my setup:

OpenSER + RTP Proxy + Asterisk (Call features, VM, etc.) - server1.somedomain.com (Server hosted in Telehouse so lots of bandwidth)

Asterisk (PSTN Call Routing + CDR’s) - server2.somedomain.com (Server hosted on a broadband connection so limited bandwidth) NO NAT PROXYING

All Users register to SERVER1, which also handles NAT Proxying, when a user needs to dial a PSTN number this should send a request to SERVER2 via SERVER1 to connect to our upstream pstn provider.

The NAT connection should stay between the client and the RTP Proxy on SERVER1, but I’m finding that the RTP Stream is being redirected to SERVER2 which doesn’t have the bandwidth capabilities, which means the call is silent.

Is there anyway we can send traffic via SERVER2 just so that it can handle the CDR records, but the RTP NAT stream is kept between the client and SERVER1.

In my sip.conf on SERVER2 I have the following set:-
context=default
nat=no

[SERVER1]
type=friend
context=default
host=server1.somedomain.com
insecure=very
trustrpid=yes
canreinvite=no
nat=never

[UPSTREAM]
type=friend
context=default
host=sip.upstreamhost.com
insecure=very
sendrpid=yes

I wouldn’t have thought that SERVER2 needs to have NAT support, as it is on a normal NON-natted connection, nor does our upstream provider need the NAT stream.

So just a brief cap:-

  • User dials pstn number
  • SERVER1 handles the nat stream, but sends to call to SERVER2
  • SERVER2 then creates a cdr record and passes it to the upstream host

Any help on this and would be very greatfull.

G.