[asterisk-users] SER+Asterisk integration

Siqhamo Sifo siqhamo at newlunar.co.za
Sun Sep 3 01:53:49 MST 2006


I have ser sitting on my iptables nat box  and my asterisk box on the lan
. Ser does forwarding so that any requests (register,invite,ack,...) to
the nat box at 5060 r sent to my asterisk box on the  lan .I can register
from outside
to my asterisk box but there is only one way audio , reason being that
when the asterisk box sends a sip packet whith session description the sdp
part of the sip packet is not natted .I have tried the following  :

  if(src_ip==10.0.0.0/255.0.0.0){
                    force_rtp_proxy();
                   encode_contact("enc_prefix","wanip");
                 sdp_mangle_ip("10.0.0.0/255.0.0.0","wanip");
                                    };


and it does not work because my ethernet dump shows that the contact in
sdp is
not mangled.




More information about the asterisk-users mailing list