refer event listener does not get executed after calling refer()

52 views
Skip to first unread message

Juan Pablo

unread,
Nov 16, 2022, 8:59:47 AM11/16/22
to JsSIP
Disclaimer: I'm new to WebRTC.

On every new session, I set up a refer listener, but it never gets executed, even though the refer process works perfectly fine. A short version of my demo:

on('newRTCSession', (e) => {
  e.session.on('refer', () => {
    // this block of code never gets executed
    console.log('refer')
  });
});

Iñaki Baz Castillo

unread,
Nov 16, 2022, 9:38:28 AM11/16/22
to js...@googlegroups.com
As per the docs, “refer” event:

Fired when an in-dialog REFER is received.”

Pretty sure you are using Asterisk and you are not receiving any REFER since Asterisk does it on its own, right?

--
You received this message because you are subscribed to the Google Groups "JsSIP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jssip+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jssip/bd831985-7e1e-4c3b-b724-31b3b2223825n%40googlegroups.com.
--
Iñaki Baz Castillo
<i...@aliax.net>
Message has been deleted
Message has been deleted

Juan Pablo

unread,
Nov 16, 2022, 11:53:49 AM11/16/22
to JsSIP
Yes, you're right, I'm using Asterisk. Good to know that's the problem, I'll have look into that.

I appreciate your help, thank you.
Reply all
Reply to author
Forward
0 new messages