diff options
author | Damian Minkov <damencho@jitsi.org> | 2015-05-20 10:24:25 +0300 |
---|---|---|
committer | Damian Minkov <damencho@jitsi.org> | 2015-05-20 10:24:25 +0300 |
commit | 821e53841bfed9d7e04819d372a7aa88fada2b12 (patch) | |
tree | 92c010c0f6049a35ac9657d356c8ac8f9c7ea3cb /src/net/java | |
parent | 8454a22f04fbfc8e19c37e2d4bbf3315e3528094 (diff) | |
download | jitsi-821e53841bfed9d7e04819d372a7aa88fada2b12.zip jitsi-821e53841bfed9d7e04819d372a7aa88fada2b12.tar.gz jitsi-821e53841bfed9d7e04819d372a7aa88fada2b12.tar.bz2 |
Updates custom headers, a corner case where jsip casts some headers and cannot use custom one for them.
Diffstat (limited to 'src/net/java')
-rw-r--r-- | src/net/java/sip/communicator/impl/protocol/sip/ConfigHeaders.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/net/java/sip/communicator/impl/protocol/sip/ConfigHeaders.java b/src/net/java/sip/communicator/impl/protocol/sip/ConfigHeaders.java index d613ddc..fba8c18 100644 --- a/src/net/java/sip/communicator/impl/protocol/sip/ConfigHeaders.java +++ b/src/net/java/sip/communicator/impl/protocol/sip/ConfigHeaders.java @@ -151,7 +151,10 @@ public class ConfigHeaders // makes possible overriding already created headers which // are not custom one - if(h != null && !(h instanceof CustomHeader)) + // RouteHeader is used by ProxyRouter/DefaultRouter and we + // cannot use it as custom header if we want to add it + if((h != null && !(h instanceof CustomHeader)) + || name.equals(SIPHeaderNames.ROUTE)) { request.setHeader(protocolProvider.getHeaderFactory() .createHeader(name, value)); |