I've the following configuration :
internet --- ser -||-- asterisk
where ser has two network interfaces, one with public ip and one with 192.168.1.1, asterisk sits in the 192.168.1.0 net, authorization and forwarding of calls from internet works well with this ser.cfg (I omit parameters and obvious stuff):
if (uri==myself) { if (method=="REGISTER") { if (!radius_www_authorize("")) { www_challenge("", "0"); break; }; save("location"); break; }; lookup("aliases"); }; if (method=="INVITE") { record_route(); }; rewritehost("192.168.1.101"); <--- asterisk ip if (!t_relay()) { sl_reply_error(); };
but of course you can't hear nothing with this config... Googling I only find configurations relative to the ser machine also being natted, can someone tell me what I need to do in my particular case ?
On Mon, 2005-08-22 at 16:23 +0200, Simone Cittadini wrote:
I've the following configuration :
internet --- ser -||-- asterisk
but of course you can't hear nothing with this config... Googling I only find configurations relative to the ser machine also being natted, can someone tell me what I need to do in my particular case ?
Reading this solved most of my SIP/NAT problems: http://www.voip-info.org/wiki-Asterisk+SIP+NAT+solutions
You may be better off using the NAT functions in Asterisk and forwarding a bunch of ports to it. That's my strategy, coupled with putting SER on the public Internet only.
as long as SER has taken care of the nat fixing, then asterisk has to do not much (assuming asterisk is on public also)
Iqbal
Lee Azzarello wrote:
On Mon, 2005-08-22 at 16:23 +0200, Simone Cittadini wrote:
I've the following configuration :
internet --- ser -||-- asterisk
but of course you can't hear nothing with this config... Googling I only find configurations relative to the ser machine also being natted, can someone tell me what I need to do in my particular case ?
Reading this solved most of my SIP/NAT problems: http://www.voip-info.org/wiki-Asterisk+SIP+NAT+solutions
You may be better off using the NAT functions in Asterisk and forwarding a bunch of ports to it. That's my strategy, coupled with putting SER on the public Internet only.
Hello
Because the SER box sits in the middle between the user agents and Asterisk, it will block rtp streams to/from Asterisk. You will need to do either port forwarding or proxying of the rtp streams to enable sound in your setup. This will require you to adjust your firewall settings or use mediaproxy/rtpproxy or both these things even.
Kind regards Roger
-----Ursprungligt meddelande----- Från: serusers-bounces@iptel.org [mailto:serusers-bounces@lists.iptel.org] För Simone Cittadini Skickat: den 22 augusti 2005 16:23 Till: serusers@lists.iptel.org Ämne: [Serusers] configuration for public ser and natted pstn gateway
I've the following configuration :
internet --- ser -||-- asterisk
where ser has two network interfaces, one with public ip and one with 192.168.1.1, asterisk sits in the 192.168.1.0 net, authorization and forwarding of calls from internet works well with this ser.cfg (I omit parameters and obvious stuff):
if (uri==myself) { if (method=="REGISTER") { if (!radius_www_authorize("")) { www_challenge("", "0"); break; }; save("location"); break; }; lookup("aliases"); }; if (method=="INVITE") { record_route(); }; rewritehost("192.168.1.101"); <--- asterisk ip if (!t_relay()) { sl_reply_error(); };
but of course you can't hear nothing with this config... Googling I only find configurations relative to the ser machine also being natted, can someone tell me what I need to do in my particular case ?
_______________________________________________ Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers