How to deal with js proxy

30 views
Skip to first unread message

Imran Raja

unread,
Jun 20, 2021, 11:18:54 AMJun 20
to JsSIP
The problem is I want to make new JsSip.ua to store in global variable in vue3 and share it in different screens I register the ua but it returns proxy and following error shows up.

TypeError: 'get' on proxy: property 'uri' is a read-only and non-configurable data property on the proxy target but the proxy did not return its actual value (expected '[object Object]' but got '[object Object]')
    at new OutgoingRequest (SIPMessage.js?03f2:93)
    at InitialOutgoingInviteRequest._createSuperInternal (SIPMessage.js?03f2:9)
    at new InitialOutgoingInviteRequest (SIPMessage.js?03f2:393)
    at RTCSession.connect (RTCSession.js?380f:329)
    at Proxy.call (UA.js?1bbf:239)
    at startAudioCall (useJsSIP.js?f5f3:146)
    at eval (phone-dialer-screen.vue?e978:86)
    at callWithErrorHandling (runtime-core.esm-bundler.js?5c40:154)
    at callWithAsyncErrorHandling (runtime-core.esm-bundler.js?5c40:163)
    at Array.hook.__weh.hook.__weh (runtime-core.esm-bundler.js?5c40:1953)

Lukas Wallisch

unread,
Jul 8, 2021, 1:42:45 PMJul 8
to JsSIP
I've got the exact same Problem -.- still searching for an solution... In some forums describing a similar issue, they suggested to manually override the the attribute.... Just need to find it and hope that nothing breaks -.-... Keep me updated if you could find the solution :)

Bests Lukas
Reply all
Reply to author
Forward
0 new messages