Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

Commit

Permalink
added answer to server with 180 (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisKontosEU authored Jul 20, 2020
1 parent 0e2af1b commit cb5958a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Pod/Classes/VSLEndpoint.m
Original file line number Diff line number Diff line change
Expand Up @@ -745,6 +745,9 @@ static void onIncomingCall(pjsua_acc_id acc_id, pjsua_call_id call_id, pjsip_rx_
call.callId = call_id;
call.invite = [[SipInvite alloc] initWithInvitePacket:rdata->pkt_info.packet];

// Answer 180 to the server so it will create a tone signalling the caller that the remote side is ringing.
pjsua_call_answer(call_id, 180, NULL, NULL);

if ([VSLEndpoint sharedEndpoint].incomingCallBlock) {
[VSLEndpoint sharedEndpoint].incomingCallBlock(call);
}
Expand Down

0 comments on commit cb5958a

Please sign in to comment.