fix: session reset after call end, add reject/decline for incoming calls, extract caller ID from SIP headers (P-Asserted-Identity, Remote-Party-ID)

This commit is contained in:
2026-03-17 21:31:53 +05:30
parent 36b3a5d34d
commit aff383cb6d
3 changed files with 76 additions and 14 deletions

View File

@@ -92,6 +92,7 @@ export const CallWidget = () => {
isOnHold,
callDuration,
answer,
reject,
hangup,
toggleMute,
toggleHold,
@@ -171,7 +172,7 @@ export const CallWidget = () => {
<Button size="md" color="primary" iconLeading={Phone01} onClick={answer}>
Answer
</Button>
<Button size="md" color="primary-destructive" iconLeading={PhoneX} onClick={hangup}>
<Button size="md" color="primary-destructive" iconLeading={PhoneX} onClick={reject}>
Decline
</Button>
</div>