incoming call management

62 views
Skip to first unread message

Aleks

unread,
Jun 3, 2021, 10:49:30 AM6/3/21
to JsSIP
Hello.
I have a problem. I don't understand the logic of incoming calls. What methods from the documentation should I use at each step to make incoming calls work?

I'm connecting now _ua = new JsSIP.UA(
{
***
});

Start successfully 
this._ua.start();

Outgoing call works

function call(callid) {
    this.session = this._ua.call(number, {
        pcConfig:
        {
            hackStripTcp: true, 
            rtcpMuxPolicy: 'negotiate', 
            iceServers: []
        },
        'extraHeaders': [ 'X-CRM-ID : '+callid ],
        mediaConstraints:
        {
            audio: true, 
            video: false
        },
        rtcOfferConstraints:
        {
            offerToReceiveAudio: 1, 
            offerToReceiveVideo: 0
        }
    });
}

But the incoming call doesn't work.
Give me a roadmap of my actions for success please.
Reply all
Reply to author
Forward
0 new messages