santhoshpoojari14 / sipservlets

Automatically exported from code.google.com/p/sipservlets
0 stars 0 forks source link

Ability to set outbound interface from application when ethernet aliases exists #210

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When there are Ethernet aliases for a network interface, such as 

eth0 192.168.0.70
eth0:1 192.168.1.70
eth0:2 192.168.2.70
eth0:3 192.168.3.70
eth0:4 192.168.4.70
eth0:5 192.168.5.70

and the user sets the outbound interface using:
sipSession.setOutboundInterface(new InetSocketAddress("192.168.4.70", 5080));

container doesn't take into account the outbound interface and uses always the 
most outbound interface 
(org.mobicents.servlet.sip.JainSipUtils.getMostOutboundAddress(List<String>)) 
which for the specific case is 192.168.5.70.

The result is that CONTACT and VIA headers are wrong.

Original issue reported on code.google.com by gvage...@gmail.com on 1 May 2013 at 4:11

GoogleCodeExporter commented 8 years ago
This issue was updated by revision 540cad8989e3.

Original comment by gvage...@gmail.com on 1 May 2013 at 4:26

GoogleCodeExporter commented 8 years ago
Problem is that listening point now points to all the aliases:

ExtendedListeningPoint:ipAddress=0.0.0.0,maps to following ipaddress:
     mapped ipaddress:fe80:0:0:0:d6be:d9ff:fe16:dd01%2
     mapped ipaddress:192.168.5.70
     mapped ipaddress:192.168.4.70
     mapped ipaddress:192.168.3.70
     mapped ipaddress:192.168.2.70
     mapped ipaddress:192.168.0.70
     mapped ipaddress:192.168.1.70
     mapped ipaddress:0:0:0:0:0:0:0:1%1
     mapped ipaddress:127.0.0.1
, port=5080, transport=udp, globalIpAddress=null, gloablPort=-1

Original comment by gvage...@gmail.com on 1 May 2013 at 5:12

GoogleCodeExporter commented 8 years ago
Find attached a sip servlet application that can be used to verify the patch 
and also wireshark pcap files for a failed call (before applying the patch) and 
a success call (after applying the patch).

Application comments provide instructions on how to setup the env.

Original comment by gvage...@gmail.com on 1 May 2013 at 5:49

Attachments:

GoogleCodeExporter commented 8 years ago
This issue was updated by revision 3956d5cf2d18.

Original comment by gvage...@gmail.com on 2 May 2013 at 1:22

GoogleCodeExporter commented 8 years ago
New wireshark pcap file after the latest update. Call is successful as before.

Original comment by gvage...@gmail.com on 2 May 2013 at 3:56

Attachments:

GoogleCodeExporter commented 8 years ago
Marking as Fixed. Please mark as verified when customer has confirmed

Original comment by jean.deruelle on 3 Jul 2013 at 8:51

GoogleCodeExporter commented 8 years ago

Original comment by jean.deruelle on 5 Jul 2013 at 12:49