[SR-Users] nat_uac_test mode parameter 16

Klaus Darilion klaus.mailinglists at pernau.at
Wed Aug 5 15:37:25 CEST 2009


The problem arises because the Cisco is SIP asymmetric. Thus, why do you 
apply NAT traversal at all?

I would make something like this:


route{
   if (src_ip==ip.of.cisco.gw) {
     xlog("request from cisco, no NAT traversal");
   } else {
     force_rport();
     if (is_method("REGISTER)) {
       fix_nated_register();
     } else {
       fix_nated_contact();
     }
   }
   ...
}

reply_route[x] {
   if (src_ip==ip.of.cisco.gw) {
     xlog("request from cisco, no NAT traversal");
   } else {
     fix_nated_contact();
   }
   ...
}

regards
klaus

Andrew O. Zhukov schrieb:
> 
>> So:
>>
>> if(is_method("PRACK|ACK") && !is_present_hf("Contact"))
>>   append_hf("Contact: <sip:$si:$sp;nat=yes>\r\n");
>>
>> Let me know if works.
>>
>> Cheers,
>> Daniel
> 
> 
> I try it. Do not working.
> http://www.ipshka.com/core/fix_ask.txt
> Snom use the port from INVITE, mesage not from ASK
> Possible it can fix the trouble for other UA. Anyway it's not a common 
> solution.
> 
> 
> Actually, if Cisco is over the port restricted or symmetric nat, without 
> the port mapping it's not possible to fix it at all.
> 
> Thanks Andrew.
> 
> 
> 
> 
> 
> _______________________________________________
> sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users




More information about the sr-users mailing list