Skip to content

Commit c7a3181

Browse files
committed
Merge branch 'master' of github.com:RestComm/Restcomm-Connect
2 parents 7271c85 + 5a66caa commit c7a3181

6 files changed

Lines changed: 1468 additions & 1 deletion

File tree

release/build.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<property name="restcomm-media.distro.zip.path" value="${checkout.dir}/${restcomm-media.download.distro.file}"/>
3434

3535
<!-- <property name="restcomm-olympus.download.url" value="https://mobicents.ci.cloudbees.com/job/Olympus/${olympus.build}/artifact/target/olympus.war"/> -->
36-
<property name="restcomm-olympus.download.url" value="https://app.box.com/shared/static/0rf2w3q7r0g2b4p4rtptc24wauxegfsf.war"/>
36+
<property name="restcomm-olympus.download.url" value="https://app.box.com/shared/static/p78uyxuuzg4fa8kl68ljiyzjkl9ei3r8.war"/>
3737
<property name="restcomm-olympus.path" value="${configuration.directory}/olympus.war"/>
3838

3939
<!-- Determine RVD retrieval URL

restcomm/restcomm.docs/sources-asciidoc/src/main/asciidoc/release-notes.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ The folowing tags are used to categorize and state the scope of a change
2929
* Configurable inbound/outbound SMPP encoding
3030
* Race condition on sending BYE to incoming call for a dial fork scenario
3131
* Fixed SDR event for SMS - **commercial**
32+
* Fixed REFER (Call Transfer) support to work with organizations
3233

3334

3435
=== Migration Notes

restcomm/restcomm.interpreter/src/main/java/org/restcomm/connect/interpreter/SIPOrganizationUtil.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
*/
2020
package org.restcomm.connect.interpreter;
2121

22+
import javax.servlet.sip.Address;
23+
import javax.servlet.sip.ServletParseException;
2224
import javax.servlet.sip.SipServletRequest;
2325
import javax.servlet.sip.SipURI;
2426
import org.apache.log4j.Logger;
@@ -50,6 +52,18 @@ public static Sid searchOrganizationBySIPRequest(OrganizationsDao orgDao, SipSer
5052
// try to get destinationOrganizationSid from toUri
5153
destinationOrganizationSid = getOrganizationSidBySipURIHost(orgDao, (SipURI) request.getTo().getURI());
5254
}
55+
if (destinationOrganizationSid == null) {
56+
// try to get destinationOrganizationSid from Refer-To
57+
Address referAddress;
58+
try {
59+
referAddress = request.getAddressHeader("Refer-To");
60+
if(referAddress != null){
61+
destinationOrganizationSid = getOrganizationSidBySipURIHost(orgDao, (SipURI) referAddress.getURI());
62+
}
63+
} catch (ServletParseException e) {
64+
logger.error(e);
65+
}
66+
}
5367
return destinationOrganizationSid;
5468
}
5569
}

0 commit comments

Comments
 (0)