[Devel] [ openser-Bugs-1673089 ] bad c= with nathelper and rtpproxy -l

SourceForge.net noreply at sourceforge.net
Sat Mar 3 19:55:05 CET 2007


Bugs item #1673089, was opened at 2007-03-03 19:55
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1673089&group_id=139143

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Manuel Guesdon (mguesdon)
Assigned to: Nobody/Anonymous (nobody)
Summary: bad c= with nathelper and rtpproxy -l 

Initial Comment:

OpenSer openser-1.1.1-tls (22-Jan-2007 15:03)

I run rtpproxy with -l 1.2.3.36

A sip message containing:
       c=IN IP4 10.250.0.130 
         (10.250.0.130 is the natted network)
is transformed to:
       c=IN IP4 4.5.6.1451.2.3.36
         (4.5.6.145 is the public IP of the natted network).

As far as I understand, 4.5.6.145 is not replaced by 1.2.3.36 but 1.2.3.36 is appended.

I think the problem is in alter_mediaip (in nethelper.c).

Here is some traces:
force_rtp_proxy2: proxy reply: 35046 1.2.3.36

in alter_mediaip: oldip=10.250.0.130 newip is 1.2.3.36
                  oldpf=2 newpf=2
                  oip.s and offset seems ok

in build_res_from_sip_res I see 
      c=IN IP4 4.5.6.1451.2.3.36
just after 
      process_lumps(msg, msg->add_rm, new_buf, &offset, &s_offset, 0);/*FIXME:*/
      process_lumps(msg, msg->body_lumps, new_buf, &offset, &s_offset, 0);


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1673089&group_id=139143



More information about the Devel mailing list