[Serusers] How to proxy to PSTN

Klaus Darilion klaus.mailinglists at pernau.at
Tue Jun 29 10:02:08 CEST 2004


Your proxy has to stay inbetween the signaling path. This can be done by 
using record_route();

klaus

BTW: ASFAIK asterisk is also capable of symmetric RTP for NAT traversal. 
This way we don't have to tuse the rtpproxy for PSTN calls. Has anybody 
tried this before?


mawali at news.icns.com wrote:

> 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
> 
> 
> 
> _______________________________________________
> Serusers mailing list
> serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
> 
> 




More information about the sr-users mailing list