Invite sip user for the room


#1

I want to invite sip user for the room.
The invite dialog box is showing sip users.

I want to know how to setup xmppenvironment in jibri config.

“sip_control_muc”: {
“domain”: “conference.testvideocec.meetrix.io”,
“room_name”: “TheSipBrewery”,
“nickname”:“sip-user”
},

This is a jibri log

2018-08-27 18:34:42.207 INFO: [26] org.jitsi.jibri.api.xmpp.XmppApi.handleStartJibriIq() Received start request

2018-08-27 18:34:42.207 INFO: [26] org.jitsi.jibri.api.xmpp.XmppApi.handleStartJibriIq() Sending ‘pending’ response to start IQ
2018-08-27 18:34:42.208 INFO: [39] org.jitsi.jibri.api.xmpp.XmppApi.run() Starting service
2018-08-27 18:34:42.208 INFO: [39] org.jitsi.jibri.api.xmpp.XmppApi.handleStartService() Parsed call url info: CallUrlInfo(baseUrl=https://testvideocec.meetrix.io, callName=1234, urlParams=[])
2018-08-27 18:34:42.209 INFO: [39] org.jitsi.jibri.JibriManager.startSipGateway() Starting a SIP gateway with params: ServiceParams(usageTimeoutMinutes=0) SipGatewayServiceParams(callParams=CallParams(callUrlInfo=CallUrlInfo(baseUrl=https://testvideocec.meetrix.io, callName=1234, urlParams=[])), sipClientParams=SipClientParams(sipAddress=mksupun@sip.linphone.org, displayName=1234))
2018-08-27 18:34:43.066 INFO: [39] org.openqa.selenium.remote.ProtocolHandshake.createSession() Detected dialect: OSS
2018-08-27 18:34:43.070 FINE: [39] org.jitsi.jibri.statsd.JibriStatsDClient.incrementCounter() Incrementing statsd counter: start:sip_gateway
2018-08-27 18:34:43.071 INFO: [39] org.jitsi.jibri.api.xmpp.XmppApi.invoke() Jibri reports its status is now busy, publishing presence to connection prod environment
2018-08-27 18:34:44.527 FINE: [39] org.jitsi.jibri.selenium.pageobjects.CallPage.visit() Visiting url https://testvideocec.meetrix.io/1234#config.iAmRecorder=true&config.iAmSipGateway=true&config.ignoreStartMuted=true
2018-08-27 18:35:16.037 SEVERE: [39] org.jitsi.jibri.selenium.pageobjects.CallPage.visit() Timed out waiting for call page to load
2018-08-27 18:35:16.038 SEVERE: [39] org.jitsi.jibri.service.impl.SipGatewayJibriService.start() Selenium failed to join the call
2018-08-27 18:35:16.038 FINE: [39] org.jitsi.jibri.statsd.JibriStatsDClient.incrementCounter() Incrementing statsd counter: stop:sip_gateway
2018-08-27 18:35:16.039 INFO: [39] org.jitsi.jibri.JibriManager.stopService() Stopping the current service
2018-08-27 18:35:16.039 INFO: [39] org.jitsi.jibri.sipgateway.pjsua.executor.PjsuaExecutor.stopPjsua() Stopping pjsua process
2018-08-27 18:35:16.039 INFO: [39] org.jitsi.jibri.sipgateway.pjsua.executor.PjsuaExecutor.stopPjsua() Pjsua exited with value null
2018-08-27 18:35:16.052 INFO: [39] org.jitsi.jibri.selenium.JibriSelenium.leaveCallAndQuitBrowser() Got 15 log entries for type browser
2018-08-27 18:35:16.126 INFO: [39] org.jitsi.jibri.selenium.JibriSelenium.leaveCallAndQuitBrowser() Got 958 log entries for type driver
2018-08-27 18:35:16.447 INFO: [39] org.jitsi.jibri.selenium.JibriSelenium.leaveCallAndQuitBrowser() Got 0 log entries for type client
2018-08-27 18:35:16.452 INFO: [39] org.jitsi.jibri.selenium.JibriSelenium.leaveCallAndQuitBrowser() Leaving web call
2018-08-27 18:35:16.459 INFO: [39] org.jitsi.jibri.selenium.JibriSelenium.leaveCallAndQuitBrowser() Quitting chrome driver
2018-08-27 18:35:16.534 INFO: [39] org.jitsi.jibri.selenium.JibriSelenium.leaveCallAndQuitBrowser() Chrome driver quit
2018-08-27 18:35:16.535 INFO: [39] org.jitsi.jibri.api.xmpp.XmppApi.invoke() Jibri reports its status is now idle, publishing presence to connection prod environment
2018-08-27 18:35:16.535 FINE: [39] org.jitsi.jibri.statsd.JibriStatsDClient.incrementCounter() Incrementing statsd counter: error:sip_gateway
2018-08-27 18:35:16.536 INFO: [39] org.jitsi.jibri.api.xmpp.XmppApi.run() Sending start service response iq:

This is a jicofo log

Jicofo 2018-08-27 18:34:42.192 INFO: [218] org.jitsi.jicofo.recording.jibri.JibriSession.log() Starting Jibri thesipbrewery@conference.testvideocec.meetrix.io/sip-user for stream ID: null in room: 1234@conference.testvideocec.meetrix.io

Jicofo 2018-08-27 18:34:42.220 INFO: [218] org.jitsi.jicofo.recording.jibri.JibriSession.log() Setting jibri status to pending with failure reason null

Jicofo 2018-08-27 18:34:42.221 INFO: [218] org.jitsi.jicofo.recording.jibri.JibriSipGateway.log() Publishing new jibri-sip-call-state: mksupun@sip.linphone.org<jibri-sip-call-state xmlns=‘http://jitsi.org/protocol/jibri/call_state’ state=‘pending’ sipaddress=‘mksupun@sip.linphone.org’ session_id=‘lnujlsldcqgnugni’/> in: 1234@conference.testvideocec.meetrix.io

Jicofo 2018-08-27 18:34:42.221 INFO: [218] org.jitsi.jicofo.recording.jibri.JibriSipGateway.log() Started Jibri session

Jicofo 2018-08-27 18:34:43.085 INFO: [37] org.jitsi.jicofo.recording.jibri.JibriDetector.onInstanceStatusChanged().138 Received Jibri status <jibri-status xmlns=‘http://jitsi.org/protocol/jibri’ status=‘busy’/>

Jicofo 2018-08-27 18:34:43.085 INFO: [37] org.jitsi.jicofo.recording.jibri.JibriDetector.notifyJibriStatus().179 Jibri: jibribrewery@internal.auth.testvideocec.meetrix.io/jibri-nickname available: false

Jicofo 2018-08-27 18:34:43.123 INFO: [37] org.jitsi.jicofo.recording.jibri.JibriDetector.onInstanceStatusChanged().138 Received Jibri status <jibri-status xmlns=‘http://jitsi.org/protocol/jibri’ status=‘busy’/>

Jicofo 2018-08-27 18:34:43.123 INFO: [37] org.jitsi.jicofo.recording.jibri.JibriDetector.notifyJibriStatus().179 SIP Jibri: thesipbrewery@conference.testvideocec.meetrix.io/sip-user available: false

Jicofo 2018-08-27 18:35:16.550 INFO: [37] org.jitsi.jicofo.recording.jibri.JibriDetector.onInstanceStatusChanged().138 Received Jibri status <jibri-status xmlns=‘http://jitsi.org/protocol/jibri’ status=‘idle’/>

Jicofo 2018-08-27 18:35:16.550 INFO: [37] org.jitsi.jicofo.recording.jibri.JibriDetector.notifyJibriStatus().179 Jibri: jibribrewery@internal.auth.testvideocec.meetrix.io/jibri-nickname available: true

Jicofo 2018-08-27 18:35:16.553 INFO: [37] org.jitsi.jicofo.recording.jibri.JibriDetector.onInstanceStatusChanged().138 Received Jibri status <jibri-status xmlns=‘http://jitsi.org/protocol/jibri’ status=‘idle’/>

Jicofo 2018-08-27 18:35:16.553 INFO: [37] org.jitsi.jicofo.recording.jibri.JibriDetector.notifyJibriStatus().179 SIP Jibri: thesipbrewery@conference.testvideocec.meetrix.io/sip-user available: true

Jicofo 2018-08-27 18:35:16.572 INFO: [220] org.jitsi.jicofo.recording.jibri.JibriSession.log() Updating status from JIBRI: <iq to=‘focus@auth.testvideocec.meetrix.io/focus2634687822560’ from=‘thesipbrewery@conference.testvideocec.meetrix.io/sip-user’ id=‘Zm9jdXNAYXV0aC50ZXN0dmlkZW9jZWMubWVldHJpeC5pby9mb2N1czI2MzQ2ODc4MjI1NjAAV2dSbTEtMTEzNQDYv8fe2NE0Sdn/mlv50cC7’ type=‘set’><jibri xmlns=‘http://jitsi.org/protocol/jibri’ status=‘off’ sipaddress=‘mksupun@sip.linphone.org’ failure_reason=‘error’/></iq> for 1234@conference.testvideocec.meetrix.io

Jicofo 2018-08-27 18:35:16.572 INFO: [220] org.jitsi.jicofo.recording.jibri.JibriSession.log() Setting jibri status to off with failure reason error

Jicofo 2018-08-27 18:35:16.573 INFO: [220] org.jitsi.jicofo.recording.jibri.JibriSipGateway.log() Publishing new jibri-sip-call-state: mksupun@sip.linphone.org<jibri-sip-call-state xmlns=‘http://jitsi.org/protocol/jibri/call_state’ state=‘off’ failure_reason=‘error’ sipaddress=‘mksupun@sip.linphone.org’ session_id=‘lnujlsldcqgnugni’/> in: 1234@conference.testvideocec.meetrix.io

Jicofo 2018-08-27 18:35:16.575 INFO: [220] org.jitsi.jicofo.recording.jibri.JibriSipGateway.log() Removing SIP call: mksupun@sip.linphone.org

Jicofo 2018-08-27 18:35:16.576 INFO: [220] org.jitsi.jicofo.recording.jibri.JibriSession.log() Cleaning up current JibriSession

Jicofo 2018-08-27 18:39:27.632 INFO: [37] org.jitsi.jicofo.ChatRoomRoleAndPresence.log() Chat room event ChatRoomMemberPresenceChangeEvent[type=MemberLeft sourceRoom=org.jitsi.impl.protocol.xmpp.ChatRoomImpl@4efff491 member=ChatMember[1234@conference.testvideocec.meetrix.io/ca38a56a, jid: ca38a56a-8cc1-4874-9de1-4e39d696384d@testvideocec.meetrix.io/43ce7665-3bc3-43fa-9a97-306218d0c851]@2097861286]

Jicofo 2018-08-27 18:39:27.632 INFO: [37] org.jitsi.jicofo.ChatRoomRoleAndPresence.log() Owner has left the room !

Jicofo 2018-08-27 18:39:27.632 INFO: [37] org.jitsi.jicofo.JitsiMeetConferenceImpl.log() Member 1234@conference.testvideocec.meetrix.io/ca38a56a is leaving

Jicofo 2018-08-27 18:39:27.632 WARNING: [37] org.jitsi.jicofo.JitsiMeetConferenceImpl.log() Participant not found for 1234@conference.testvideocec.meetrix.io/ca38a56a terminated already or never started ?

Jicofo 2018-08-27 18:39:27.636 INFO: [37] org.jitsi.jicofo.FocusManager.log() Disposed conference for room: 1234@conference.testvideocec.meetrix.io conference count: 0

Jicofo 2018-08-27 18:40:29.417 INFO: [153] org.jitsi.jicofo.xmpp.FocusComponent.handleConferenceIq().402 Focus request for room: 1234@conference.testvideocec.meetrix.io

Jicofo 2018-08-27 18:40:29.419 INFO: [153] org.jitsi.jicofo.FocusManager.log() Created new focus for 1234@conference.testvideocec.meetrix.io@auth.testvideocec.meetrix.io conferences count: 1 options:

channelLastN: -1

enableLipSync: true

openSctp: true

disableRtx: false

Jicofo 2018-08-27 18:40:29.420 INFO: [153] org.jitsi.jicofo.JitsiMeetConferenceImpl.log() Lip-sync enabled in 1234@conference.testvideocec.meetrix.io

Jicofo 2018-08-27 18:40:29.420 INFO: [153] org.jitsi.jicofo.JitsiMeetConferenceImpl.log() Joining the room: 1234@conference.testvideocec.meetrix.io

Jicofo 2018-08-27 18:40:30.286 INFO: [37] org.jitsi.jicofo.ChatRoomRoleAndPresence.log() Chat room event ChatRoomMemberPresenceChangeEvent[type=MemberJoined sourceRoom=org.jitsi.impl.protocol.xmpp.ChatRoomImpl@3cdb5bb5 member=ChatMember[1234@conference.testvideocec.meetrix.io/6cdd5da3, jid: null]@1995217780]

Jicofo 2018-08-27 18:40:30.289 INFO: [37] org.jitsi.jicofo.ChatRoomRoleAndPresence.log() Granted owner to 1234@conference.testvideocec.meetrix.io/6cdd5da3

Jicofo 2018-08-27 18:40:30.289 INFO: [37] org.jitsi.jicofo.JitsiMeetConferenceImpl.log() Member 1234@conference.testvideocec.meetrix.io/6cdd5da3 joined.

this is a prosody log

Aug 27 18:34:45 mod_bosh info New BOSH session, assigned it sid ‘fd267c18-3a6b-4238-b8e2-9d8bba321abe’
Aug 27 18:34:45 general warn Error verifying token err:not-allowed, reason:token required
Aug 27 18:40:02 mod_bosh info Client tried to use sid ‘502e02f0-db2f-4d72-a63b-64747a4746a7’ which we don’t know about
Aug 27 18:40:02 mod_bosh warn Unable to associate request with a session (incomplete request?)
Aug 27 18:40:03 mod_bosh warn Unable to associate request with a session (incomplete request?)
Aug 27 18:40:25 mod_bosh info New BOSH session, assigned it sid ‘617c2230-d4cd-4248-aae1-d4d81659a66c’
Aug 27 18:40:25 bosh617c2230-d4cd-4248-aae1-d4d81659a66c info Authenticated as 6cdd5da3-2b31-4147-b5c3-0e1b4d438645@testvideocec.meetrix.io

#2

Hey @Aaron_van_Meerten @bbaldino when using sipgw jibri, don’t we need to compile/install pjsua?
Are there any instructions for that?


#3

I saw the varible CONFIG_FILE_LOCATION&=/home/jibri/pjsua.config" in the PjsuaExecutor.kt file but there is not like that configuretion file.


#4

I don’t see it in the debian dependencies file, so it must be getting installed via some stuff @Aaron_van_Meerten has written.


#5

is it enough to compile/install pjsua ?


#6

could you give me fully configuration explanation for the sip user invite for the room or some suggestion for the find out way to configure? @bbaldino @damencho


#7

in the jibri log
2018-08-28 05:56:29.269 FINE: [39] org.jitsi.jibri.selenium.pageobjects.CallPage.visit() Visiting url https://testvideocec.meetrix.io/1234#config.iAmRecorder=true&config.iAmSipGateway=true&config.ignoreStartMuted=true

org.jitsi.jibri.selenium.pageobjects.CallPage.visit() Timed out waiting for call page to load

what would be the reason. Could you any suggestion @bbaldino @damencho


#8

I will create a PR with steps to compile and install pjsua.


#9

Thank You @damencho. I have installed pjsua and I can call to outbound sip user to using pjsua cli.


#10

I have installed pjsua and I can call to outbound sip user to using pjsua cli.


#11

Hi @Supun_Madushanka,

I’m facing the same issue. I’ve already installed pjsua on the same machine where jibri is running. Still getting the same errors as you described. Were you able to place the video call from jitsi to external SIP device after installing pjsua? How did you resolve it?