SIP.js
SIP.js copied to clipboard
SimpleUser sessionManagerOptions delegate onCallReceived parameter should add Invitation
when a user receive a call , he/she should know whose call before he answer or decline
the proper mement is delegate onCallReceived which will trigered when receive a invite, when he can get invitation info , he will know it from .
It already has
https://github.com/onsip/SIP.js/blob/2e1c525279c8d6deebb6ecaf3d14477ab7b63310/src/platform/web/session-manager/session-manager-delegate.ts#L24-L30
https://github.com/onsip/SIP.js/blob/2e1c525279c8d6deebb6ecaf3d14477ab7b63310/src/platform/web/session-manager/session-manager.ts#L225-L227
My mistake I just realized you said the onCallReceived
delegate from the SimpleUser
.
From my understanding, SimpleUser only manages one session at a time, so basically, the invitation will be the session
set on your SimpleUser
instance.