Skip to content

Commit 9f23645

Browse files
committed
Provided override constructor of CreateCall for when customHeaders is not needed
This refer to RESTCOMM-1580
1 parent e678703 commit 9f23645

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

  • restcomm/restcomm.telephony.api/src/main/java/org/restcomm/connect/telephony/api

restcomm/restcomm.telephony.api/src/main/java/org/restcomm/connect/telephony/api/CreateCall.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,15 @@ public CreateCall(final String from, final String to, final String username, fin
6565
statusCallbackEvent, "", null, new MediaAttributes(), null);
6666
}
6767

68+
//Used to create CreateCall objects (CallsEndpoint, UssdPushEndpoint, VI)
69+
public CreateCall(final String from, final String to, final String username, final String password,
70+
final boolean isFromApi, final int timeout, final CreateCallType type, final Sid accountId, final Sid parentCallSid,
71+
final URI statusCallbackUrl, final String statusCallbackMethod, final List<String> statusCallbackEvent, final String customHeaders) {
72+
this(from, to, username, password, isFromApi, timeout, type, accountId, parentCallSid, statusCallbackUrl, statusCallbackMethod,
73+
statusCallbackEvent, "", null, new MediaAttributes(), customHeaders);
74+
}
75+
76+
//Used to create CreateCall objects with MediaAttributes (VI)
6877
public CreateCall(final String from, final String to, final String username, final String password,
6978
final boolean isFromApi, final int timeout, final CreateCallType type, final Sid accountId, final Sid parentCallSid,
7079
final URI statusCallbackUrl, final String statusCallbackMethod, final List<String> statusCallbackEvent, final MediaAttributes mediaAttributes, final String customHeaders) {

0 commit comments

Comments
 (0)