Send room password ivr asterisk

Hi!

I´m using asterisk server (extension connected to jigasi) to send the room name and all works fine.

exten => 333,1,SIPAddHeader(X-Jitsi-Conference-Room: 12345)
exten => 333,n,Dial(SIP/XXXXX,30,tr)
exten => 333,n,Hangup

Now i need to send the room password parameter but i can´t find any info about it.

I don´t need tokens or other more complicated setup…only to send the password info for the room that is already active.

Thank you.

You can use header Jitsi-Conference-Room-Pass.

Thank you Damencho it worked!

For those who use asterisk:

exten => 333,1,SIPAddHeader(Jitsi-Conference-Room: 12345)
exten => 333,n,SIPAddHeader(Jitsi-Conference-Room-Pass: 456)
exten => 333,n,Dial(SIP/XXXXX,30,tr)
exten => 333,n,Hangup

You need to define in jigasi >> sip-communicator.properties:

net.java.sip.communicator.service.protocol.JITSI_MEET_ROOM_HEADER_NAME=Jitsi-Conference-Room

User can define the password or not…it works anyway.

Hi Damencho,

There is a similar way to send the host username and password?

I have the secure domain working but people can only open the rooms by web…(opening by the app don´t work) .and that´s a problem for me.

Than you

This is not required.

You need to create a jigasi user and configure it as described: https://github.com/jitsi/jigasi/blob/master/jigasi-home/sip-communicator.properties#L89

Hi Demencho,

Did not work , jigasi user cannot open the room. …is that the same user/password created with "prosodyctl register " ? Or other configuration?

org.jitsi.jigasi.xmpp.acc.USER_ID=SOME_USER@SOME_DOMAIN

org.jitsi.jigasi.xmpp.acc.PASS=SOME_PASS

org.jitsi.jigasi.xmpp.acc.ANONYMOUS_AUTH=false

The same password you entered when executing prosodyctl register.

What are the jigasi logs when it fails?

Hi @demencho , here is the log, i´m using the same user and pass that i use to authenticate as host in the web interface.

2019-09-10 11:51:51.112 INFO: [53] impl.protocol.sip.SipLogger.logInfo().196 Info from the JAIN-SIP stack: Setting SIPMessage peerPacketSource to: /173 .199.122.219:5060
2019-09-10 11:51:51.158 INFO: [56] impl.protocol.sip.SipLogger.logInfo().196 Info from the JAIN-SIP stack: Setting SIPMessage peerPacketSource to: /173 .199.122.219:5060
2019-09-10 11:51:51.159 INFO: [54] impl.protocol.sip.SipLogger.logInfo().196 Info from the JAIN-SIP stack: Setting SIPMessage peerPacketSource to: /173 .199.122.219:5060
2019-09-10 11:51:51.162 INFO: [55] impl.protocol.sip.SipLogger.logInfo().196 Info from the JAIN-SIP stack: Setting SIPMessage peerPacketSource to: /173 .199.122.219:5060
2019-09-10 11:51:51.176 INFO: [55] org.jitsi.jigasi.SipGateway.registrationStateChanged().105 REG STATE CHANGE ProtocolProviderServiceSipImpl(654347@mi klostecnologia.com.br (SIP)) -> RegistrationStateChangeEvent[ oldState=Registering; newState=RegistrationState=Registered; reasonCode=-1; reason=null]
2019-09-10 11:51:51.180 WARNING: [55] org.jitsi.jigasi.health.SipHealthPeriodicChecker.log() No health check started, no HEALTH_CHECK_SIP_URI prop.
2019-09-10 11:51:51.208 INFO: [61] impl.protocol.sip.SipLogger.logInfo().196 Info from the JAIN-SIP stack: Setting SIPMessage peerPacketSource to: /173 .199.122.219:5060
2019-09-10 11:52:16.209 INFO: [65] impl.protocol.sip.SipLogger.logInfo().196 Info from the JAIN-SIP stack: Setting SIPMessage peerPacketSource to: /173 .199.122.219:5060
2019-09-10 11:52:41.209 INFO: [68] impl.protocol.sip.SipLogger.logInfo().196 Info from the JAIN-SIP stack: Setting SIPMessage peerPacketSource to: /173 .199.122.219:5060
2019-09-10 11:52:51.203 INFO: [69] impl.protocol.sip.SipLogger.logInfo().196 Info from the JAIN-SIP stack: Setting SIPMessage peerPacketSource to: /173 .199.122.219:5060
2019-09-10 11:53:06.208 INFO: [72] impl.protocol.sip.SipLogger.logInfo().196 Info from the JAIN-SIP stack: Setting SIPMessage peerPacketSource to: /173 .199.122.219:5060
2019-09-10 11:53:25.167 INFO: [75] impl.protocol.sip.SipLogger.logInfo().196 Info from the JAIN-SIP stack: Setting SIPMessage peerPacketSource to: /173.199.122.219:5060
2019-09-10 11:53:25.233 INFO: [75] org.jitsi.jigasi.SipGateway.incomingCallReceived().188 Incoming call received…
2019-09-10 11:53:25.246 INFO: [76] org.jitsi.jigasi.SipGatewaySession.run().1073 Wait thread cancelled
2019-09-10 11:53:25.262 INFO: [77] impl.protocol.sip.SipLogger.logInfo().196 Info from the JAIN-SIP stack: Setting SIPMessage peerPacketSource to: /173.199.122.219:5060
2019-09-10 11:53:25.334 INFO: [75] org.jitsi.jigasi.JvbConference.setXmppProvider().567 1861d1b0@conf.miklos.com.br will use ProtocolProviderServiceJabberImpl(miklos@conf.miklos.com.br (Jabber))
2019-09-10 11:53:25.530 INFO: [78] impl.protocol.jabber.OperationSetBasicTelephonyJabberImpl.registrationStateChanged().125 Jingle : ON
2019-09-10 11:53:25.531 INFO: [78] org.jitsi.jigasi.JvbConference.registrationStateChanged().612 XMPP (1861d1b0@conf.miklos.com.br): RegistrationStateChangeEvent[ oldState=Registering; newState=RegistrationState=Registering; reasonCode=-1; reason=null]
2019-09-10 11:53:25.576 INFO: [78] impl.protocol.jabber.ProtocolProviderServiceJabberImpl.authenticated().2535 Authenticated: false
2019-09-10 11:53:25.586 INFO: [78] org.jitsi.jigasi.JvbConference.joinConferenceRoom().653 Joining JVB conference room: 12345
2019-09-10 11:53:25.706 SEVERE: [78] org.jitsi.jigasi.JvbConference.inviteFocus().1359 Could not invite the focus to the conference
org.jivesoftware.smack.XMPPException$XMPPErrorException: XMPP error reply received from focus.conf.miklos.com.br: XMPPError: not-acceptable - modify
at org.jivesoftware.smack.XMPPException$XMPPErrorException.ifHasErrorThenThrow(XMPPException.java:132)
at org.jivesoftware.smack.StanzaCollector.nextResultOrThrow(StanzaCollector.java:263)
at org.jivesoftware.smack.StanzaCollector.nextResultOrThrow(StanzaCollector.java:214)
at org.jitsi.jigasi.JvbConference.inviteFocus(JvbConference.java:1353)
at org.jitsi.jigasi.JvbConference.joinConferenceRoom(JvbConference.java:690)
at org.jitsi.jigasi.JvbConference.registrationStateChanged(JvbConference.java:597)
at net.java.sip.communicator.service.protocol.AbstractProtocolProviderService.fireRegistrationStateChanged(AbstractProtocolProviderService.java:187)
at net.java.sip.communicator.service.protocol.AbstractProtocolProviderService.fireRegistrationStateChanged(AbstractProtocolProviderService.java:141)
at net.java.sip.communicator.impl.protocol.jabber.ProtocolProviderServiceJabberImpl.connectAndLogin(ProtocolProviderServiceJabberImpl.java:1389)
at net.java.sip.communicator.impl.protocol.jabber.ProtocolProviderServiceJabberImpl.connectAndLogin(ProtocolProviderServiceJabberImpl.java:970)
at net.java.sip.communicator.impl.protocol.jabber.ProtocolProviderServiceJabberImpl.initializeConnectAndLogin(ProtocolProviderServiceJabberImpl.java:795)
at net.java.sip.communicator.impl.protocol.jabber.ProtocolProviderServiceJabberImpl.register(ProtocolProviderServiceJabberImpl.java:500)
at org.jitsi.jigasi.util.RegisterThread.run(RegisterThread.java:59)
2019-09-10 11:53:31.209 INFO: [94] impl.protocol.sip.SipLogger.logInfo().196 Info from the JAIN-SIP stack: Setting SIPMessage peerPacketSource to: /173.199.122.219:5060
2019-09-10 11:53:51.241 INFO: [95] impl.protocol.sip.SipLogger.logInfo().196 Info from the JAIN-SIP stack: Setting SIPMessage peerPacketSource to: /173.199.122.219:5060
2019-09-10 11:53:55.184 INFO: [98] impl.protocol.sip.SipLogger.logInfo().196 Info from the JAIN-SIP stack: Setting SIPMessage peerPacketSource to: /173.199.122.219:5060
2019-09-10 11:53:55.193 INFO: [98] org.jitsi.jigasi.SipGatewaySession.handleCallState().942 SIP call ended: CallPeerChangeEvent: type=CallPeerStatusChange oldV=net.java.sip.communicator.service.protocol.CallPeerState:Incoming Call newV=net.java.sip.communicator.service.protocol.CallPeerState:Disconnected for peer=1138681558 1138681558@173.199.122.219;status=Disconnected
2019-09-10 11:53:55.194 INFO: [98] org.jitsi.jigasi.SipGatewaySession.peerStateChanged().1007 1861d1b0@conf.miklos.com.br SIP peer state: Disconnected
2019-09-10 11:53:55.227 INFO: [100] impl.protocol.sip.SipLogger.logInfo().196 Info from the JAIN-SIP stack: Setting SIPMessage peerPacketSource to: /173.199.122.219:5060
2019-09-10 11:53:55.727 SEVERE: [93] org.jitsi.jigasi.JvbConference.run().1433 Did not received session invite (30000 ms)
2019-09-10 11:53:55.734 INFO: [93] org.jitsi.jigasi.JvbConference.stop().527 1861d1b0@conf.miklos.com.br is removing account Jabber:1861d1b0@conf.miklos.com.br/1861d1b0
2019-09-10 11:53:55.743 INFO: [93] impl.protocol.jabber.OperationSetBasicTelephonyJabberImpl.registrationStateChanged().132 Jingle : OFF
2019-09-10 11:53:56.210 INFO: [102] impl.protocol.sip.SipLogger.logInfo().196 Info from the JAIN-SIP stack: Setting SIPMessage peerPacketSource to: /173.199.122.219:5060
2019-09-10 11:54:00.195 INFO: [99] org.jitsi.jigasi.SipGatewaySession.sipCallEnded().552 Sip call ended: Call: id=15681164051871760054960 peers=0
2019-09-10 11:54:00.200 INFO: [99] org.jitsi.jigasi.AbstractGateway.notifyCallEnded().141 Removed session for call 1861d1b0@conf.miklos.com.br