mirror of
https://dev.azure.com/globalhealthx/EMR/_git/helix-engage
synced 2026-04-11 18:28:15 +00:00
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:
@@ -110,6 +110,10 @@ export const useSipPhone = (config?: Partial<SIPConfig>) => {
|
||||
sipClientRef.current?.answer();
|
||||
}, []);
|
||||
|
||||
const reject = useCallback(() => {
|
||||
sipClientRef.current?.reject();
|
||||
}, []);
|
||||
|
||||
const hangup = useCallback(() => {
|
||||
sipClientRef.current?.hangup();
|
||||
}, []);
|
||||
@@ -159,6 +163,7 @@ export const useSipPhone = (config?: Partial<SIPConfig>) => {
|
||||
disconnect,
|
||||
makeCall,
|
||||
answer,
|
||||
reject,
|
||||
hangup,
|
||||
toggleMute,
|
||||
toggleHold,
|
||||
|
||||
Reference in New Issue
Block a user