[Serusers] NAT Router problem

Rick Thompson rthompson at vir2com.com
Thu Sep 1 22:56:58 CEST 2005


 

Has anyone come across this problem before??

 

I have the same configuration for each of the following except the first
session is going thru a Linksys router and the second one goes thru a Dlink
router.

The first session works fine, the second session has one way audio. The only
difference in the traces is in the following lines.

 

Session one

 

Via: SIP/2.0/UDP
192.168.1.108:5060;rport=5060;received=199.227.155.139;branch=z9hG4bK-389cba
09

 

Session two

 

Via: SIP/2.0/UDP
192.168.1.40:5060;rport=61034;received=199.227.155.135;branch=z9hG4bK-349caf
af

 

I have the following in ser.cfg to correct for a NATed UAC

 

if(nat_uac_test("3")) {

                xlog("L_ALERT", "%Tf %mf ****** NATed UAC detected.\n");

                fix_nated_contact();

                force_rport();

 

                if(method == "INVITE") {

                        fix_nated_sdp("3");

                };

        };

 

And

 

 

onreply_route[1] {

        xlog("L_ALERT", "%Tf %mf ****** On Reply From: <%si> <%tu> <%fu>
<%rm> <%rs> <%rr>\n");

        if(status=~"(183)|(2[0-9][0-9])" && nat_uac_test("3")) {

                xlog("L_ALERT", "%Tf %mf ****** Fixing contact on reply\n");

                fix_nated_contact();

                force_rport();

                fix_nated_sdp("3");

        };

 

Can anyone help

Thanks for your reply

 

 

 

Rick Thompson, CCNA

VP of Technology

Virtual Communications, LLC

O 954-334-4000 ext 420

M 954-217-7322

F 954-252-4580

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20050901/026abdd9/attachment.htm>


More information about the sr-users mailing list