[OpenSIPS-Users] Stubborn ALG always append wrong "Route" header in BYE message

Bogdan-Andrei Iancu bogdan at voice-system.ro
Thu Apr 16 09:53:26 CEST 2009


Hi,

in order to figure out if the Route hdr from BYE is correct, you need to 
post the INVITE the client receives from opensips (to see the RR header).

Regards,
Bogdan

DangVinh Nguyen wrote:
> Dear all
>
> I have a opensips/mediaproxy,run a basic script. Opensips/mediaproxy 
> using public IP address, client behind NAT ( maybe Cisco PIX. i do not 
> control the NAT box)
>
> Everything works fine if i force opensips not listen on 5060, and 
> clients mus not listen on port 5060 UDP.
>
> If one client listen on port 5060, something wrong happens.
> The NAT box do some very nasty things.
>
> With fix_nated_contact and fix_contact, fix_nated_register, i can 
> manage to place a call OK.
>
> But I can not fix call tear down request.
> Here's a sip log when 02 client behind the same NAT box tried to call 
> ok, then client_13 tried to tear down the call to client_12
>
> UDP, client_13_WAN_IP:port  -> opensipPublicIP:5080
>
> BYE sip:opensipsIP:5080;ftag=59fbbd9a;lr=on;did=f12.8b280607
> SIP/2.0..Via: SIP/2.0/UDP 10.0.0.115:5060;rport;branch=z9hG4bKde05e887e5..
> From: <sip:13 at opensipsIP:5080>;tag=0c46ffef..
> To: 12" <sip:12 at opensipsIP:5080>;tag=59fbbd9a..Call-ID: 
> 21a6b8b248a7bf607d055ce36b157b34 at 10.0.0.96 
> <mailto:21a6b8b248a7bf607d055ce36b157b34 at 10.0.0.96>..
> Route: <sip:12 at 10.0.0.96:5060 <http://sip:12@10.0.0.96:5060>>..
> Contact:<sip:13 at 10.0.0.115:5060 <http://sip:13@10.0.0.115:5060>>..
> CSeq: 801 BYE..
> Max-Forwards: 70..
> User-Agent: CM5K  (709190)..
> Content-Length: 0..
>
>
> And here's opensips debug message
>
>  DBG:rr:after_strict: Next hop: 'sip:12 at 10.0.0.96:5060 
> <http://sip:12@10.0.0.96:5060>' is strict router
>
> And then opensips send BYE message to 10.0.0.96:5060 
> <http://10.0.0.96:5060>, not to WANIP:Port of the destination client. 
> Ofcourse the destination cound not receive BYE message, call tear down 
> failed.
>
> I tried to remove_hf, subst_uri, replace... the BYE message just after 
> it enter routing script, but nothing works.
>
> Please suggest me one way to get rid of this NAT box. Or the only 
> solution is change both ports on opensips and clients?
>
>
> Regards
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>   




More information about the Users mailing list