Hi
I am trying to send all my calls to a PSTN gateway (asterisk with digium cards running on the same machine on 7060). I can use forward, but then I cannot use the solution SER provides me by using NAT helper. Consider the forwarding script: Â Â Â Â Â Â if (uri=~"^sip:[8].*@") { forward(209.7.34.58,7060); Â Â Â Â }
Here it works fine if I am calling from a public IP, but will not work if I am calling from a NATed client since this stateless forwarding will take SER out of the picture, and rtpproxy will not be used. I have also tried using t_relay_to_udp, but is is doing the same, the below lines are still not making SER to proxy the request.
if (uri=~"^sip:[8].*@") { t_relay_to_udp("209.7.34.58","7060"); break; }
What would be the best way of doing it. I want SER to act as a proxy (B2BUA?) between my caller and the PSTN asterisk server. I want to be able to use nathelper for this scenario.
Regards