SIP.js icon indicating copy to clipboard operation
SIP.js copied to clipboard

SimpleUser sessionManagerOptions delegate onCallReceived parameter should add Invitation

Open minvision opened this issue 1 year ago • 2 comments

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 .

minvision avatar May 17 '23 04:05 minvision

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

iomariani avatar May 17 '23 11:05 iomariani

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.

iomariani avatar May 24 '23 11:05 iomariani