Skip to content

Commit

Permalink
Ticket #4: Ensure that starting a call sets up a MediaAgent.
Browse files Browse the repository at this point in the history
  • Loading branch information
haumacher committed Mar 21, 2024
1 parent 8faa0ec commit 2200cf7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mjsip-ua/src/main/java/org/mjsip/ua/UserAgent.java
Original file line number Diff line number Diff line change
Expand Up @@ -162,17 +162,17 @@ public void call(String callee, MediaAgent mediaAgent) {
* The {@link MediaAgent} start the call with
*/
public void call(NameAddress callee, MediaAgent mediaAgent) {
setupMedia(mediaAgent);

AddressType addressType = ConnectionField.addressType(callee.getAddress().getSpecificPart());

// new call
SdpMessage sdp=_config.getNoOffer()? null : getSessionDescriptor(addressType);
call(callee,sdp);
call(callee,sdp, mediaAgent);
}

/** Makes a new call (acting as UAC) with specific SDP. */
public void call(NameAddress callee, SdpMessage sdp) {
public void call(NameAddress callee, SdpMessage sdp, MediaAgent mediaAgent) {
setupMedia(mediaAgent);

call = new ExtendedCall(sip_provider, new SipUser(_config.getUserURI(), _config.getAuthUser(),
_config.getAuthRealm(), _config.getAuthPasswd()),this);
if (_config.getNoOffer()) {
Expand Down

0 comments on commit 2200cf7

Please sign in to comment.