mirror of
https://github.com/jambonz/chrome-extension-dialer.git
synced 2026-01-25 02:08:05 +00:00
Merge pull request #35 from jambonz/fix/cannot_answer_inbound
fixed cannot answer inbound call
This commit is contained in:
@@ -67,7 +67,7 @@ export default class SipSession extends events.EventEmitter {
|
|||||||
({ response }: { response: IncomingResponse }) => {
|
({ response }: { response: IncomingResponse }) => {
|
||||||
this.emit(SipConstants.SESSION_ANSWERED, {
|
this.emit(SipConstants.SESSION_ANSWERED, {
|
||||||
status: SipConstants.SESSION_ANSWERED,
|
status: SipConstants.SESSION_ANSWERED,
|
||||||
callSid: response.hasHeader("X-Call-Sid")
|
callSid: response?.hasHeader("X-Call-Sid")
|
||||||
? response.getHeader("X-Call-Sid")
|
? response.getHeader("X-Call-Sid")
|
||||||
: null,
|
: null,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user