|
|
@ -84,7 +84,11 @@ public class SIPRequestHeaderProvider { |
|
|
|
SipURI requestLine = sipFactory.createAddressFactory().createSipURI(channelId, host.getAddress()); |
|
|
|
//via
|
|
|
|
ArrayList<ViaHeader> viaHeaders = new ArrayList<ViaHeader>(); |
|
|
|
ViaHeader viaHeader = sipFactory.createHeaderFactory().createViaHeader(sipConfig.getSipIp(), sipConfig.getSipPort(), device.getTransport(), viaTag); |
|
|
|
ViaHeader viaHeader = sipFactory.createHeaderFactory().createViaHeader(device.getHost().getIp(), device.getHost().getPort(), device.getTransport(), viaTag); |
|
|
|
viaHeader.setRPort(); |
|
|
|
viaHeaders.add(viaHeader); |
|
|
|
|
|
|
|
viaHeader = sipFactory.createHeaderFactory().createViaHeader(sipConfig.getSipIp(), sipConfig.getSipPort(), device.getTransport(), viaTag); |
|
|
|
viaHeader.setRPort(); |
|
|
|
viaHeaders.add(viaHeader); |
|
|
|
//from
|
|
|
|