From cb5958aaedaf88a7558726d2c78d160907c468eb Mon Sep 17 00:00:00 2001 From: Chris <38938642+ChrisKontosEU@users.noreply.github.com> Date: Mon, 20 Jul 2020 15:31:34 +0200 Subject: [PATCH] added answer to server with 180 (#223) --- Pod/Classes/VSLEndpoint.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Pod/Classes/VSLEndpoint.m b/Pod/Classes/VSLEndpoint.m index 2b9dfc43..1a597c36 100644 --- a/Pod/Classes/VSLEndpoint.m +++ b/Pod/Classes/VSLEndpoint.m @@ -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); }