QuickBlox Chat: can't perform video call - ios

I'm developing a video chat application with quickblox. And I have a trouble with performing video call. There are logs of two instances of application started in one time:
Sep 11 16:43:40 iPod-touch DimChat[3823] <Warning>: QBChat/didConnect
Sep 11 16:43:40 iPod-touch DimChat[3823] <Warning>: -[QBChat xmppStreamDidAuthenticate:] -> user: 290427, supportsStartTLS: 1, isSecure: 0
Sep 11 16:43:40 iPod-touch DimChat[3823] <Warning>: -[QBChat xmppStream:didSendPresence:] -> Presence: <presence/>
Sep 11 16:43:40 iPod-touch DimChat[3823] <Warning>: -[QBChat xmppStream:didSendIQ:] -> IQ: <iq type="get" id="561006823"><query xmlns="jabber:iq:roster"/></iq>
Sep 11 16:43:41 iPod-touch DimChat[3823] <Warning>: -[QBChat xmppStream:didReceiveIQ:] -> <iq xmlns="jabber:client" id="561006823" type="result" to="290427-3936#chat.quickblox.com/tigase-3171"><query xmlns="jabber:iq:roster"/></iq>
Sep 11 16:44:00 iPod-touch DimChat[3823] <Warning>: -[QBChat xmppStream:didSendPresence:] -> Presence: <presence/>
Sep 11 16:44:18 iPod-touch wifid[14] <Error>: WiFi:[400596258.779212]: Disable WoW requested by "UserEventAgent"
Sep 11 16:44:18 iPod-touch DimChat[3823] <Warning>: QBChat/didDisconnect, error: Error Domain=GCDAsyncSocketErrorDomain Code=7 "Socket closed by remote peer" UserInfo=0x1ed273e0 {NSLocalizedDescription=Socket closed by remote peer}
Sep 11 16:44:20 iPod-touch DimChat[3823] <Warning>: -[QBChat sendPresence] -> return. You have to be logged in in order to use Chat API
The second instance which calls the first one:
2013-09-11 16:43:46.408 DimChat[55216:b10f] QBChat/didConnect
2013-09-11 16:43:47.053 DimChat[55216:a207] -[QBChat xmppStreamDidAuthenticate:] -> user: 503867, supportsStartTLS: 1, isSecure: 0
2013-09-11 16:43:47.053 DimChat[55216:a207] -[QBChat xmppStream:didSendIQ:] -> IQ: <iq type="get" id="561006823"><query xmlns="jabber:iq:roster"/></iq>
2013-09-11 16:43:47.053 DimChat[55216:a207] -[QBChat xmppStream:didSendPresence:] -> Presence: <presence/>
2013-09-11 16:43:47.215 DimChat[55216:b10f] -[QBChat xmppStream:didReceiveIQ:] -> <iq xmlns="jabber:client" id="561006823" type="result" to="503867-3936#chat.quickblox.com/tigase-3170"><query xmlns="jabber:iq:roster"/></iq>
2013-09-11 16:43:56.295 DimChat[55216:b10f] -[QBVideoChat init] ->
2013-09-11 16:43:56.295 DimChat[55216:b10f] -[QBVideoChat orientatioDidChange:] -> LandscapeLeft
2013-09-11 16:43:56.296 DimChat[55216:b10f] -[QBVideoChat callUser:conferenceType:customParameters:] -> VideoChat configuration: {
kQBVideoChatBadConnectionTimeout = 5;
kQBVideoChatCallTimeout = 15;
kQBVideoChatFrameQualityPreset = AVCaptureSessionPresetLow;
kQBVideoChatP2PTimeout = "1.5";
kQBVideoChatTURNServerEndPoint = "turnserver.quickblox.com";
kQBVideoChatVideoFramesPerSecond = 10;
kQBVideoChatWriteQueueMaxAudioOperationsThreshold = 25;
kQBVideoChatWriteQueueMaxVideoOperationsThreshold = 25;
}
2013-09-11 16:43:56.296 DimChat[55216:b10f] -[QBChat xmppStream:didSendMessage:] -> Message: <message id="282475249" type="qbvideochat_call" to="290427-3936#chat.quickblox.com" from="503867-3936#chat.quickblox.com"><body>1</body></message>
2013-09-11 16:43:58.297 DimChat[55216:b10f] -[QBChat xmppStream:didSendMessage:] -> Message: <message id="1622650073" type="qbvideochat_call" to="290427-3936#chat.quickblox.com" from="503867-3936#chat.quickblox.com"><body>1</body></message>
2013-09-11 16:44:00.298 DimChat[55216:b10f] -[QBChat xmppStream:didSendMessage:] -> Message: <message id="984943658" type="qbvideochat_call" to="290427-3936#chat.quickblox.com" from="503867-3936#chat.quickblox.com"><body>1</body></message>
2013-09-11 16:44:02.300 DimChat[55216:b10f] -[QBChat xmppStream:didSendMessage:] -> Message: <message id="1144108930" type="qbvideochat_call" to="290427-3936#chat.quickblox.com" from="503867-3936#chat.quickblox.com"><body>1</body></message>
2013-09-11 16:44:04.300 DimChat[55216:b10f] -[QBChat xmppStream:didSendMessage:] -> Message: <message id="470211272" type="qbvideochat_call" to="290427-3936#chat.quickblox.com" from="503867-3936#chat.quickblox.com"><body>1</body></message>
2013-09-11 16:44:06.302 DimChat[55216:b10f] -[QBChat xmppStream:didSendMessage:] -> Message: <message id="101027544" type="qbvideochat_call" to="290427-3936#chat.quickblox.com" from="503867-3936#chat.quickblox.com"><body>1</body></message>
2013-09-11 16:44:07.065 DimChat[55216:b10f] -[QBChat xmppStream:didSendPresence:] -> Presence: <presence/>
2013-09-11 16:44:08.303 DimChat[55216:b10f] -[QBChat xmppStream:didSendMessage:] -> Message: <message id="1457850878" type="qbvideochat_call" to="290427-3936#chat.quickblox.com" from="503867-3936#chat.quickblox.com"><body>1</body></message>
2013-09-11 16:44:10.303 DimChat[55216:b10f] -[QBChat xmppStream:didSendMessage:] -> Message: <message id="1458777923" type="qbvideochat_call" to="290427-3936#chat.quickblox.com" from="503867-3936#chat.quickblox.com"><body>1</body></message>
2013-09-11 16:44:11.304 DimChat[55216:b10f] -[QBVideoChat finishCallWithStatus:customParameters:] -> kStopVideoChatCallStatus_OpponentDidNotAnswer
2013-09-11 16:44:11.305 DimChat[55216:b10f] -[QBVideoChat deinitialization] ->
2013-09-11 16:44:11.305 DimChat[55216:b10f] -[QBVideoChat releaseVideoCapture] ->
2013-09-11 16:44:11.306 DimChat[55216:b10f] -[QBVideoChat releaseAudioCapture] ->
2013-09-11 16:44:11.306 DimChat[55216:b10f] -[QBVideoChat releaseSocketConnection] ->
2013-09-11 16:44:11.306 DimChat[55216:b10f] -[QBChat xmppStream:didSendMessage:] -> Message: <message id="2007237709" type="qbvideochat_stopCall" to="290427-3936#chat.quickblox.com" from="503867-3936#chat.quickblox.com"><body>kStopVideoChatCallStatus_OpponentDidNotAnswer</body></message>
2013-09-11 16:44:25.264 DimChat[55216:b10f] QBChat/didDisconnect, error: Error Domain=GCDAsyncSocketErrorDomain Code=7 "Socket closed by remote peer" UserInfo=0x9ca1260 {NSLocalizedDescription=Socket closed by remote peer}
2013-09-11 16:44:27.074 DimChat[55216:b10f] -[QBChat sendPresence] -> return. You have to be logged in in order to use Chat API
Actually the problem is that the first instance didn't receive incoming call.
I checked the video chat example from quickblox's github. It works with my users/passwords, so I have a mistake in my code, but I really don't know where I should search it.
As you can see both instances have the same problem: "Socket closed by remote peer". But this problem happens after call timeout, so it isn't a cause of main problem.

Finally I've found the solution. The problem was in QBVideoChat object. I thought that QBChat will send me the signal when another user calls me and then I'll create the QBVideoChat object and present it's view on screen.
The sad truth is that QBChat don't send any video relations signals before I create QBVideoChat. So I have to create it at program's start in order to receive chatDidReceiveCallRequestFromUser signal.

Related

Orderer container fails to run Hyperledger Fabric 2.0

I am trying to make my own network on top of the "test-network" provided in fabric-samples. Although the test-network runs fine, when i make my changes into it (like renaming org1 and org2 to some other names) all runs but the orderer container stops running after a few seconds,
docker logs for the container
2020-12-30 12:38:46.267 UTC [localconfig] completeInitialization -> WARN 001 General.GenesisFile should be replaced by General.BootstrapFile
2020-12-30 12:38:46.268 UTC [localconfig] completeInitialization -> INFO 002 Kafka.Version unset, setting to 0.10.2.0
2020-12-30 12:38:46.268 UTC [orderer.common.server] prettyPrintStruct -> INFO 003 Orderer config values:
General.ListenAddress = "0.0.0.0"
General.ListenPort = 7050
General.TLS.Enabled = true
General.TLS.PrivateKey = "/var/hyperledger/orderer/tls/server.key"
General.TLS.Certificate = "/var/hyperledger/orderer/tls/server.crt"
General.TLS.RootCAs = [/var/hyperledger/orderer/tls/ca.crt]
General.TLS.ClientAuthRequired = false
General.TLS.ClientRootCAs = []
General.TLS.TLSHandshakeTimeShift = 0s
General.Cluster.ListenAddress = ""
General.Cluster.ListenPort = 0
General.Cluster.ServerCertificate = ""
General.Cluster.ServerPrivateKey = ""
General.Cluster.ClientCertificate = "/var/hyperledger/orderer/tls/server.crt"
General.Cluster.ClientPrivateKey = "/var/hyperledger/orderer/tls/server.key"
General.Cluster.RootCAs = [/var/hyperledger/orderer/tls/ca.crt]
General.Cluster.DialTimeout = 5s
General.Cluster.RPCTimeout = 7s
General.Cluster.ReplicationBufferSize = 20971520
General.Cluster.ReplicationPullTimeout = 5s
General.Cluster.ReplicationRetryTimeout = 5s
General.Cluster.ReplicationBackgroundRefreshInterval = 5m0s
General.Cluster.ReplicationMaxRetries = 12
General.Cluster.SendBufferSize = 10
General.Cluster.CertExpirationWarningThreshold = 168h0m0s
General.Cluster.TLSHandshakeTimeShift = 0s
General.Keepalive.ServerMinInterval = 1m0s
General.Keepalive.ServerInterval = 2h0m0s
General.Keepalive.ServerTimeout = 20s
General.ConnectionTimeout = 0s
General.GenesisMethod = "file"
General.GenesisFile = "/var/hyperledger/orderer/orderer.genesis.block"
General.BootstrapMethod = "file"
General.BootstrapFile = "/var/hyperledger/orderer/orderer.genesis.block"
General.Profile.Enabled = false
General.Profile.Address = "0.0.0.0:6060"
General.LocalMSPDir = "/var/hyperledger/orderer/msp"
General.LocalMSPID = "OrdererMSP"
General.BCCSP.ProviderName = "SW"
General.BCCSP.SwOpts.SecLevel = 256
General.BCCSP.SwOpts.HashFamily = "SHA2"
General.BCCSP.SwOpts.Ephemeral = true
General.BCCSP.SwOpts.FileKeystore.KeyStorePath = ""
General.BCCSP.SwOpts.DummyKeystore =
General.BCCSP.SwOpts.InmemKeystore =
General.Authentication.TimeWindow = 15m0s
General.Authentication.NoExpirationChecks = false
FileLedger.Location = "/var/hyperledger/production/orderer"
FileLedger.Prefix = "hyperledger-fabric-ordererledger"
Kafka.Retry.ShortInterval = 5s
Kafka.Retry.ShortTotal = 10m0s
Kafka.Retry.LongInterval = 5m0s
Kafka.Retry.LongTotal = 12h0m0s
Kafka.Retry.NetworkTimeouts.DialTimeout = 10s
Kafka.Retry.NetworkTimeouts.ReadTimeout = 10s
Kafka.Retry.NetworkTimeouts.WriteTimeout = 10s
Kafka.Retry.Metadata.RetryMax = 3
Kafka.Retry.Metadata.RetryBackoff = 250ms
Kafka.Retry.Producer.RetryMax = 3
Kafka.Retry.Producer.RetryBackoff = 100ms
Kafka.Retry.Consumer.RetryBackoff = 2s
Kafka.Verbose = true
Kafka.Version = 0.10.2.0
Kafka.TLS.Enabled = false
Kafka.TLS.PrivateKey = ""
Kafka.TLS.Certificate = ""
Kafka.TLS.RootCAs = []
Kafka.TLS.ClientAuthRequired = false
Kafka.TLS.ClientRootCAs = []
Kafka.TLS.TLSHandshakeTimeShift = 0s
Kafka.SASLPlain.Enabled = false
Kafka.SASLPlain.User = ""
Kafka.SASLPlain.Password = ""
Kafka.Topic.ReplicationFactor = 1
Debug.BroadcastTraceDir = ""
Debug.DeliverTraceDir = ""
Consensus = map[SnapDir:/var/hyperledger/production/orderer/etcdraft/snapshot WALDir:/var/hyperledger/production/orderer/etcdraft/wal]
Operations.ListenAddress = "127.0.0.1:8443"
Operations.TLS.Enabled = false
Operations.TLS.PrivateKey = ""
Operations.TLS.Certificate = ""
Operations.TLS.RootCAs = []
Operations.TLS.ClientAuthRequired = false
Operations.TLS.ClientRootCAs = []
Operations.TLS.TLSHandshakeTimeShift = 0s
Metrics.Provider = "disabled"
Metrics.Statsd.Network = "udp"
Metrics.Statsd.Address = "127.0.0.1:8125"
Metrics.Statsd.WriteInterval = 30s
Metrics.Statsd.Prefix = ""
ChannelParticipation.Enabled = false
ChannelParticipation.RemoveStorage = false
2020-12-30 12:38:46.295 UTC [orderer.common.server] initializeServerConfig -> INFO 004 Starting orderer with TLS enabled
2020-12-30 12:38:46.658 UTC [orderer.common.server] Main -> INFO 005 Not bootstrapping the system channel because of existing channels
2020-12-30 12:38:46.761 UTC [orderer.common.server] selectClusterBootBlock -> INFO 006 Cluster boot block is bootstrap (genesis) block; Blocks Header.Number system-channel=0, bootstrap=0
2020-12-30 12:38:46.766 UTC [orderer.common.server] Main -> INFO 007 Starting with system channel: system-channel, consensus type: etcdraft
2020-12-30 12:38:46.766 UTC [orderer.common.server] Main -> INFO 008 Setting up cluster
2020-12-30 12:38:46.766 UTC [orderer.common.server] reuseListener -> INFO 009 Cluster listener is not configured, defaulting to use the general listener on port 7050
2020-12-30 12:38:46.766 UTC [orderer.common.server] reuseListener -> INFO 00a Cluster listener is not configured, defaulting to use the general listener on port 7050
2020-12-30 12:38:46.772 UTC [orderer.common.cluster] loadVerifier -> INFO 00b Loaded verifier for channel system-channel from config block at index 0
2020-12-30 12:38:46.772 UTC [certmonitor] trackCertExpiration -> INFO 00c The enrollment certificate will expire on 2021-12-30 12:39:00 +0000 UTC
2020-12-30 12:38:46.772 UTC [certmonitor] trackCertExpiration -> INFO 00d The server TLS certificate will expire on 2021-12-30 12:39:00 +0000 UTC
2020-12-30 12:38:46.772 UTC [certmonitor] trackCertExpiration -> INFO 00e The client TLS certificate will expire on 2021-12-30 12:39:00 +0000 UTC
2020-12-30 12:38:46.782 UTC [orderer.consensus.etcdraft] detectSelfID -> WARN 00f Could not find -----BEGIN CERTIFICATE-----
MIICyjCCAnGgAwIBAgIUYfzAFhIUFlpkY0tXOAZG+dNHwL0wCgYIKoZIzj0EAwIw
XjELMAkGA1UEBhMCUEsxDzANBgNVBAgTBlB1bmphYjEPMA0GA1UEBxMGTGFob3Jl
MRQwEgYDVQQKEwtzc2gtaGhtLmNvbTEXMBUGA1UEAxMOY2Euc3NjLWhobS5jb20w
HhcNMjAxMjMwMTIzNDAwWhcNMjExMjMwMTIzOTAwWjBgMQswCQYDVQQGEwJVUzEX
MBUGA1UECBMOTm9ydGggQ2Fyb2xpbmExFDASBgNVBAoTC0h5cGVybGVkZ2VyMRAw
DgYDVQQLEwdvcmRlcmVyMRAwDgYDVQQDEwdvcmRlcmVyMFkwEwYHKoZIzj0CAQYI
KoZIzj0DAQcDQgAEGZ/xCBprojm/iSrRdNosCSvGR/3nLZ8mtqPlhkLCTZouptr0
RqYxFqMdCDQe0Sh8a0ZnwvB9cnSQiQpNQdcdBaOCAQkwggEFMA4GA1UdDwEB/wQE
AwIDqDAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDAYDVR0TAQH/BAIw
ADAdBgNVHQ4EFgQUOfdnd2a46tUDkeGYyILJ3hVlXlgwHwYDVR0jBBgwFoAUeDHp
ud9ZRsgehfOLprCK/Wpw0H8wKQYDVR0RBCIwIIITb3JkZXJlci5zc2MtaGhtLmNv
bYIJbG9jYWxob3N0MFsGCCoDBAUGBwgBBE97ImF0dHJzIjp7ImhmLkFmZmlsaWF0
aW9uIjoiIiwiaGYuRW5yb2xsbWVudElEIjoib3JkZXJlciIsImhmLlR5cGUiOiJv
cmRlcmVyIn19MAoGCCqGSM49BAMCA0cAMEQCID1dC/QtexQQDHyUcWh7b9Adti4l
P6XVl9P1V0PtByhAAiBh6UoaAmved5zr9rDvKbVPpte6N+2ANrbft9wV7UrAbw==
-----END CERTIFICATE-----
among [-----BEGIN CERTIFICATE-----
MIICZDCCAgugAwIBAgIRAKjhbRj45MuremeCXWn8wzIwCgYIKoZIzj0EAwIwbDEL
MAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNhbiBG
cmFuY2lzY28xFDASBgNVBAoTC3NzYy1oaG0uY29tMRowGAYDVQQDExF0bHNjYS5z
c2MtaGhtLmNvbTAeFw0yMDEyMjkxMDM2MDBaFw0zMDEyMjcxMDM2MDBaMFgxCzAJ
BgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJh
bmNpc2NvMRwwGgYDVQQDExNvcmRlcmVyLnNzYy1oaG0uY29tMFkwEwYHKoZIzj0C
AQYIKoZIzj0DAQcDQgAEL/gYIN8w69hi/abMkdDmCBpJEhokhcPcx1mmICf8+9Aa
dSwfRpCbN4GQ71mOUwfh6U5PglXwMkJrXmn/TczaQKOBoTCBnjAOBgNVHQ8BAf8E
BAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMAwGA1UdEwEB/wQC
MAAwKwYDVR0jBCQwIoAgVk5hX37poZ0h4MjMfqtYZte2PEoJs6DwR0lhPOXMBVsw
MgYDVR0RBCswKYITb3JkZXJlci5zc2MtaGhtLmNvbYIHb3JkZXJlcoIJbG9jYWxo
b3N0MAoGCCqGSM49BAMCA0cAMEQCIFGU5BMMpcmkIG1tmA3rwsm2h0Yn6bOT/GU9
oLxTg57iAiB9TaK9uBaYSF0GkpH+fvmhiQ0egSxRcwaXWi99C/V1rA==
-----END CERTIFICATE-----
]
2020-12-30 12:38:46.782 UTC [orderer.common.onboarding] TrackChain -> INFO 010 Adding system-channel to the set of chains to track
2020-12-30 12:38:46.782 UTC [orderer.commmon.multichannel] Initialize -> INFO 011 Starting system channel 'system-channel' with genesis block hash 8d267aa91012044d668ed2f377d485df675b181a5a02d10addf05ec9ef1c77fc and orderer type etcdraft
2020-12-30 12:38:46.783 UTC [orderer.common.server] Main -> INFO 012 Starting orderer:
Version: 2.2.1
Commit SHA: 344fda6
Go version: go1.14.4
OS/Arch: linux/amd64
2020-12-30 12:38:46.783 UTC [orderer.common.server] Main -> INFO 013 Beginning to serve requests
2020-12-30 12:38:56.775 UTC [orderer.common.onboarding] replicateDisabledChains -> INFO 014 Found 1 inactive chains: [system-channel]
2020-12-30 12:38:56.776 UTC [orderer.common.cluster] ReplicateChains -> INFO 015 Will now replicate chains [system-channel]
2020-12-30 12:38:56.786 UTC [orderer.common.cluster] discoverChannels -> INFO 016 Discovered 1 channels: [system-channel]
2020-12-30 12:38:56.786 UTC [orderer.common.cluster] channelsToPull -> INFO 017 Evaluating channels to pull: [system-channel]
2020-12-30 12:38:56.786 UTC [orderer.common.cluster] channelsToPull -> INFO 018 Probing whether I should pull channel system-channel
2020-12-30 12:38:56.790 UTC [core.comm] ServerHandshake -> ERRO 019 TLS handshake failed with error remote error: tls: bad certificate server=Orderer remoteaddress=172.21.0.8:59898
2020-12-30 12:38:57.793 UTC [core.comm] ServerHandshake -> ERRO 01a TLS handshake failed with error remote error: tls: bad certificate server=Orderer remoteaddress=172.21.0.8:59900
2020-12-30 12:38:59.432 UTC [core.comm] ServerHandshake -> ERRO 01b TLS handshake failed with error remote error: tls: bad certificate server=Orderer remoteaddress=172.21.0.8:59902
2020-12-30 12:39:01.881 UTC [core.comm] ServerHandshake -> ERRO 01c TLS handshake failed with error remote error: tls: bad certificate server=Orderer remoteaddress=172.21.0.8:59904
2020-12-30 12:39:03.787 UTC [orderer.common.cluster.replication] probeEndpoint -> WARN 01d Failed connecting to {"CAs":[{"Expired":false,"Issuer":"self","Subject":"CN=tlsca.ssc-hhm.com,O=ssc-hhm.com,L=San Francisco,ST=California,C=US"}],"Endpoint":"orderer.ssc-hhm.com:7050"}: failed to create new connection: context deadline exceeded channel=system-channel
2020-12-30 12:39:03.788 UTC [orderer.common.cluster.replication] func1 -> WARN 01e Received error of type 'failed to create new connection: context deadline exceeded' from {"CAs":[{"Expired":false,"Issuer":"self","Subject":"CN=tlsca.ssc-hhm.com,O=ssc-hhm.com,L=San Francisco,ST=California,C=US"}],"Endpoint":"orderer.ssc-hhm.com:7050"} channel=system-channel
2020-12-30 12:39:03.788 UTC [orderer.common.cluster.replication] HeightsByEndpoints -> INFO 01f Returning the heights of OSNs mapped by endpoints map[] channel=system-channel
2020-12-30 12:39:03.788 UTC [orderer.common.cluster] channelsToPull -> WARN 020 Could not obtain blocks needed for classifying whether I am in the channel,skipping the retrieval of the chan system-channel
2020-12-30 12:39:03.788 UTC [orderer.common.cluster] ReplicateChains -> INFO 021 Found myself in 0 channels out of 1 : {[] [{system-channel 0xc0006e7580}]}
2020-12-30 12:39:03.788 UTC [orderer.common.cluster] appendBlock -> INFO 022 Skipping commit of block [0] for channel system-channel because height is at 1
2020-12-30 12:39:03.788 UTC [orderer.common.cluster] PullChannel -> INFO 023 Pulling channel system-channel
2020-12-30 12:39:03.793 UTC [core.comm] ServerHandshake -> ERRO 024 TLS handshake failed with error remote error: tls: bad certificate server=Orderer remoteaddress=172.21.0.8:59906
2020-12-30 12:39:04.797 UTC [core.comm] ServerHandshake -> ERRO 025 TLS handshake failed with error remote error: tls: bad certificate server=Orderer remoteaddress=172.21.0.8:59908
2020-12-30 12:39:06.430 UTC [core.comm] ServerHandshake -> ERRO 026 TLS handshake failed with error remote error: tls: bad certificate server=Orderer remoteaddress=172.21.0.8:59910
2020-12-30 12:39:08.952 UTC [core.comm] ServerHandshake -> ERRO 027 TLS handshake failed with error remote error: tls: bad certificate server=Orderer remoteaddress=172.21.0.8:59912
2020-12-30 12:39:10.790 UTC [orderer.common.cluster.replication] probeEndpoint -> WARN 028 Failed connecting to {"CAs":[{"Expired":false,"Issuer":"self","Subject":"CN=tlsca.ssc-hhm.com,O=ssc-hhm.com,L=San Francisco,ST=California,C=US"}],"Endpoint":"orderer.ssc-hhm.com:7050"}: failed to create new connection: context deadline exceeded channel=system-channel
2020-12-30 12:39:10.790 UTC [orderer.common.cluster.replication] func1 -> WARN 029 Received error of type 'failed to create new connection: context deadline exceeded' from {"CAs":[{"Expired":false,"Issuer":"self","Subject":"CN=tlsca.ssc-hhm.com,O=ssc-hhm.com,L=San Francisco,ST=California,C=US"}],"Endpoint":"orderer.ssc-hhm.com:7050"} channel=system-channel
2020-12-30 12:39:10.790 UTC [orderer.common.cluster.replication] HeightsByEndpoints -> INFO 02a Returning the heights of OSNs mapped by endpoints map[] channel=system-channel
2020-12-30 12:39:10.790 UTC [orderer.common.cluster] ReplicateChains -> PANI 02b Failed pulling system channel: failed obtaining the latest block for channel system-channel
panic: Failed pulling system channel: failed obtaining the latest block for channel system-channel
goroutine 28 [running]:
go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc000151340, 0x0, 0x0, 0x0)
/go/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore/entry.go:230 +0x545
go.uber.org/zap.(*SugaredLogger).log(0xc000209240, 0xc00044b304, 0x101fc6d, 0x21, 0xc0000f9c40, 0x1, 0x1, 0x0, 0x0, 0x0)
/go/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:234 +0x100
go.uber.org/zap.(*SugaredLogger).Panicf(...)
/go/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:159
github.com/hyperledger/fabric/common/flogging.(*FabricLogger).Panicf(...)
/go/src/github.com/hyperledger/fabric/common/flogging/zap.go:74
github.com/hyperledger/fabric/orderer/common/cluster.(*Replicator).ReplicateChains(0xc0003dfe00, 0xc00054e340, 0xc0002c0200, 0xc0003dfe00)
/go/src/github.com/hyperledger/fabric/orderer/common/cluster/replication.go:166 +0x49d
github.com/hyperledger/fabric/orderer/common/onboarding.(*ReplicationInitiator).ReplicateChains(0xc00027e400, 0xc00054e340, 0xc0002c0000, 0x1, 0x1, 0x0, 0x0, 0x0)
/go/src/github.com/hyperledger/fabric/orderer/common/onboarding/onboarding.go:185 +0x1e3
github.com/hyperledger/fabric/orderer/common/onboarding.(*InactiveChainReplicator).replicateDisabledChains(0xc000207920)
/go/src/github.com/hyperledger/fabric/orderer/common/onboarding/onboarding.go:312 +0x225
github.com/hyperledger/fabric/orderer/common/onboarding.(*InactiveChainReplicator).Run(0xc000207920)
/go/src/github.com/hyperledger/fabric/orderer/common/onboarding/onboarding.go:290 +0x42
created by github.com/hyperledger/fabric/orderer/common/server.initializeEtcdraftConsenter
/go/src/github.com/hyperledger/fabric/orderer/common/server/main.go:777 +0x218
I am very much new to Fabric. I am trying to make a network for SupplyChain with 3 orgs : Manufacturer, Supplier and Retailer. If anyone could guide me here, their help would be greatly appreciated.
I am using Hyperledger Fabric 2.0 on Ubuntu 18.04.
With help of #myeongkil kim I was able to solve this issue. The solution was I just had to remove all the docker volumes by docker volume prune and after this, bringing the network back up solves this problem.
The prob comes from a bad TLS certificate used by the new ordered. Check the log of other ordereres and you would get some hints about this.

When save next event, spring data neo4j delete previous relationships

I have a problem with save node in cascade. I have a 3 #NodeEntity: Event, Tag, UserNeo. When I save next event, the previous relationship was deleted between user and events, and also between events and tag. Sometimes this relations are saved. I don't know what I doing wrong.
Neo4j dependency
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-neo4j</artifactId>
<version>4.2.0.BUILD-SNAPSHOT</version>
</dependency>
Event.java
#NodeEntity(label = "Event")
public class Event {
#GraphId
private Long id;
#Property(name = "title")
private String title;
#Property(name = "short_description")
private String shortDescription;
#Property(name = "long_description")
private String longDescription;
#Property(name = "address")
private String address;
#Property(name = "lat")
private double lat;
#Property(name = "lon")
private double lon;
#Property(name = "time")
#DateLong
private Date time;
#Property(name = "nuts")
private int nuts;
#Property(name = "created_by")
private String createdBy;
#Property(name = "created_date")
#DateLong
private Date createdDate;
#Property(name = "modified_by")
private String modifiedBy;
#Property(name = "modified_date")
#DateLong
private Date modifiedDate;
#Property(name = "deleted_date")
#DateLong
private Date deletedDate = null;
#Relationship(type = "TAGGED", direction = Relationship.OUTGOING)
private Set<Tag> tagSet = new HashSet<>();
#Relationship(type = "JOINED_IN", direction = Relationship.INCOMING)
private Set<UserNeo> joinedUsers = new HashSet<>();
#Relationship(type = "ORGANIZED", direction = Relationship.INCOMING)
private Set<UserNeo> organizedUsers;
// getters and setters
UserNeo.java
#NodeEntity(label = "User")
public class UserNeo {
#GraphId
private Long id;
#Property(name = "first_name")
private String firstName;
#Property(name = "last_name")
private String lastName;
#Property(name = "email")
private String email;
#Property(name = "vip")
private boolean vip;
#Property(name = "nuts")
private int nuts;
#Property(name = "current_lat")
private double currentLat;
#Property(name = "current_lon")
private double currentLon;
#Property(name = "created_date")
#DateLong
private Date createdDate;
#Property(name = "deleted_date")
#DateLong
private Date deletedDate;
#Relationship(type = "JOINED_IN", direction = Relationship.OUTGOING)
private List<Event> joinEvents;
#Relationship(type = "ORGANIZED", direction = Relationship.OUTGOING)
private List<Event> organizeEvents;
// getters and setters
Tag.java
#NodeEntity(label = "Tag")
public class Tag {
#GraphId
private Long id;
#Property(name = "tag")
private String tag;
#Relationship(type = "TAGGED", direction = Relationship.INCOMING)
private Set<Event> events = new HashSet<>();
// getters and setters
My service method to save nodes
public Event createEvent(EventDTO event){
Set<Tag> tags = new HashSet<>(event.getTagSet().size());
Iterator it = event.getTagSet().iterator();
while(it.hasNext()){
String tag = it.next().toString();
Tag resultTag = tagRepository.findByName(tag);
if(resultTag != null){
tags.add(resultTag);
}else {
Tag newTag = new Tag(tag);
newTag = tagRepository.save(newTag);
tags.add(newTag);
}
}
UserNeo userNeo = userNeoRepository.findByEmail("sunday1601#gmail.com");
Set<UserNeo> userNeos = new HashSet<>();
userNeos.add(userNeo);
Event createEvent = new `Event(event.getTitle(),event.getShortDescription(),event.getLongDescription(),`
event.getAddress(),event.getLat(),event.getLon(),event.getTime(),event.getNuts(),
event.getCreatedBy(), new Timestamp(new Date().getTime()),null,null);
createEvent.setTagSet(tags);
createEvent.setOrganizedUsers(userNeos);
Event save = eventRepository.save(createEvent);
return save;
}
When I save in short time, then delete previous relationship. And when I watch in neo4j browser I have a two the same event node.
This is log from jhipster
2016-07-14 22:04:42.863 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.MetaData : looking for concrete class to resolve label: User
2016-07-14 22:04:42.863 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.MetaData : concrete class found: com.mycompany.myapp.domain.UserNeo. comparing with what's already been found previously...
2016-07-14 22:04:42.863 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.MetaData : User resolving class: com.mycompany.myapp.domain.UserNeo
2016-07-14 22:04:42.863 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.context.GraphEntityMapper : Unable to find property: address on class: com.mycompany.myapp.domain.UserNeo for writing
2016-07-14 22:04:42.864 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.context.EntityGraphMapper : context-init: ($3153)-[:ORGANIZED]->($2108)
2016-07-14 22:04:42.864 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.context.EntityGraphMapper : context-init: ($2108)-[:TAGGED]->($2098)
2016-07-14 22:04:42.864 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.context.EntityGraphMapper : context-init: ($2108)-[:TAGGED]->($2100)
2016-07-14 22:04:42.864 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.context.EntityGraphMapper : context initialised with 3 relationships
2016-07-14 22:04:42.864 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.context.EntityGraphMapper : visiting: Event{id=null, title='Event 47', shortDescription='Opis krotki short', longDescription='Opis długi long', address='address 5', lat=50.000452, lon=20.957071, time=Sun Jun 18 01:07:34 CEST 2017, nuts=17, createdBy='Michal Niedziela', createdDate=2016-07-14 22:04:42.863, modifiedBy='null', modifiedDate=null, deletedDate=1970-01-01 01:00:00.0, tagSet=[Tag{id=2100, tag='Rock'}, Tag{id=2098, tag='Festiwal'}, Tag{id=3231, tag='Plaża'}], joinedUsers=[], organizedUsers=[UserNeo{id=3153, firstName='Michal', lastName='Niedziela', email='sunday1601#gmail.com', vip=false, nuts=100, currentLat=50.028797, currentLon=21.000123, createdDate=Tue Jul 12 11:07:55 CEST 2016, deletedDate=null, joinEvents=null, organizeEvents=null}]}
2016-07-14 22:04:42.864 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.context.EntityGraphMapper : Event{id=null, title='Event 47', shortDescription='Opis krotki short', longDescription='Opis długi long', address='address 5', lat=50.000452, lon=20.957071, time=Sun Jun 18 01:07:34 CEST 2017, nuts=17, createdBy='Michal Niedziela', createdDate=2016-07-14 22:04:42.863, modifiedBy='null', modifiedDate=null, deletedDate=1970-01-01 01:00:00.0, tagSet=[Tag{id=2100, tag='Rock'}, Tag{id=2098, tag='Festiwal'}, Tag{id=3231, tag='Plaża'}], joinedUsers=[], organizedUsers=[UserNeo{id=3153, firstName='Michal', lastName='Niedziela', email='sunday1601#gmail.com', vip=false, nuts=100, currentLat=50.028797, currentLon=21.000123, createdDate=Tue Jul 12 11:07:55 CEST 2016, deletedDate=null, joinEvents=null, organizeEvents=null}]} has changed
2016-07-14 22:04:42.866 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.context.EntityGraphMapper : mapping references declared by: Event{id=null, title='Event 47', shortDescription='Opis krotki short', longDescription='Opis długi long', address='address 5', lat=50.000452, lon=20.957071, time=Sun Jun 18 01:07:34 CEST 2017, nuts=17, createdBy='Michal Niedziela', createdDate=2016-07-14 22:04:42.863, modifiedBy='null', modifiedDate=null, deletedDate=1970-01-01 01:00:00.0, tagSet=[Tag{id=2100, tag='Rock'}, Tag{id=2098, tag='Festiwal'}, Tag{id=3231, tag='Plaża'}], joinedUsers=[], organizedUsers=[UserNeo{id=3153, firstName='Michal', lastName='Niedziela', email='sunday1601#gmail.com', vip=false, nuts=100, currentLat=50.028797, currentLon=21.000123, createdDate=Tue Jul 12 11:07:55 CEST 2016, deletedDate=null, joinEvents=null, organizeEvents=null}]}
2016-07-14 22:04:42.866 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.context.EntityGraphMapper : mapping reference type: TAGGED
2016-07-14 22:04:42.866 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.context.EntityGraphMapper : linking to entity Tag{id=2100, tag='Rock'} in one direction
2016-07-14 22:04:42.867 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.context.EntityGraphMapper : visiting: Tag{id=2100, tag='Rock'}
2016-07-14 22:04:42.867 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.context.EntityGraphMapper : Tag{id=2100, tag='Rock'}, has not changed
2016-07-14 22:04:42.867 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.context.EntityGraphMapper : mapping references declared by: Tag{id=2100, tag='Rock'}
2016-07-14 22:04:42.867 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.context.EntityGraphMapper : context-del: (2100)<-[:TAGGED]-()
2016-07-14 22:04:42.867 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.context.EntityGraphMapper : mapping reference type: TAGGED
2016-07-14 22:04:42.867 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.context.EntityGraphMapper : trying to map relationship between Event{id=null, title='Event 47', shortDescription='Opis krotki short', longDescription='Opis długi long', address='address 5', lat=50.000452, lon=20.957071, time=Sun Jun 18 01:07:34 CEST 2017, nuts=17, createdBy='Michal Niedziela', createdDate=2016-07-14 22:04:42.863, modifiedBy='null', modifiedDate=null, deletedDate=1970-01-01 01:00:00.0, tagSet=[Tag{id=2100, tag='Rock'}, Tag{id=2098, tag='Festiwal'}, Tag{id=3231, tag='Plaża'}], joinedUsers=[], organizedUsers=[UserNeo{id=3153, firstName='Michal', lastName='Niedziela', email='sunday1601#gmail.com', vip=false, nuts=100, currentLat=50.028797, currentLon=21.000123, createdDate=Tue Jul 12 11:07:55 CEST 2016, deletedDate=null, joinEvents=null, organizeEvents=null}]} and Tag{id=2100, tag='Rock'}
2016-07-14 22:04:42.867 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.context.EntityGraphMapper : context-new: (-250914077)-[-1950378672:TAGGED]->(2100)
2016-07-14 22:04:42.867 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.context.EntityGraphMapper : linking to entity Tag{id=2098, tag='Festiwal'} in one direction
2016-07-14 22:04:42.867 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.context.EntityGraphMapper : visiting: Tag{id=2098, tag='Festiwal'}
2016-07-14 22:04:42.867 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.context.EntityGraphMapper : Tag{id=2098, tag='Festiwal'}, has not changed
2016-07-14 22:04:42.872 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.context.EntityGraphMapper : mapping references declared by: Tag{id=2098, tag='Festiwal'}
2016-07-14 22:04:42.872 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.context.EntityGraphMapper : context-del: (2098)<-[:TAGGED]-()
2016-07-14 22:04:42.872 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.context.EntityGraphMapper : mapping reference type: TAGGED
2016-07-14 22:04:42.872 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.context.EntityGraphMapper : trying to map relationship between Event{id=null, title='Event 47', shortDescription='Opis krotki short', longDescription='Opis długi long', address='address 5', lat=50.000452, lon=20.957071, time=Sun Jun 18 01:07:34 CEST 2017, nuts=17, createdBy='Michal Niedziela', createdDate=2016-07-14 22:04:42.863, modifiedBy='null', modifiedDate=null, deletedDate=1970-01-01 01:00:00.0, tagSet=[Tag{id=2100, tag='Rock'}, Tag{id=2098, tag='Festiwal'}, Tag{id=3231, tag='Plaża'}], joinedUsers=[], organizedUsers=[UserNeo{id=3153, firstName='Michal', lastName='Niedziela', email='sunday1601#gmail.com', vip=false, nuts=100, currentLat=50.028797, currentLon=21.000123, createdDate=Tue Jul 12 11:07:55 CEST 2016, deletedDate=null, joinEvents=null, organizeEvents=null}]} and Tag{id=2098, tag='Festiwal'}
2016-07-14 22:04:42.873 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.context.EntityGraphMapper : context-new: (-250914077)-[-1648969869:TAGGED]->(2098)
2016-07-14 22:04:42.873 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.context.EntityGraphMapper : linking to entity Tag{id=3231, tag='Plaża'} in one direction
2016-07-14 22:04:42.873 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.context.EntityGraphMapper : visiting: Tag{id=3231, tag='Plaża'}
2016-07-14 22:04:42.873 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.context.EntityGraphMapper : Tag{id=3231, tag='Plaża'}, has not changed
2016-07-14 22:04:42.873 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.context.EntityGraphMapper : mapping references declared by: Tag{id=3231, tag='Plaża'}
2016-07-14 22:04:42.873 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.context.EntityGraphMapper : context-del: (3231)<-[:TAGGED]-()
2016-07-14 22:04:42.873 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.context.EntityGraphMapper : mapping reference type: TAGGED
2016-07-14 22:04:42.873 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.context.EntityGraphMapper : trying to map relationship between Event{id=null, title='Event 47', shortDescription='Opis krotki short', longDescription='Opis długi long', address='address 5', lat=50.000452, lon=20.957071, time=Sun Jun 18 01:07:34 CEST 2017, nuts=17, createdBy='Michal Niedziela', createdDate=2016-07-14 22:04:42.863, modifiedBy='null', modifiedDate=null, deletedDate=1970-01-01 01:00:00.0, tagSet=[Tag{id=2100, tag='Rock'}, Tag{id=2098, tag='Festiwal'}, Tag{id=3231, tag='Plaża'}], joinedUsers=[], organizedUsers=[UserNeo{id=3153, firstName='Michal', lastName='Niedziela', email='sunday1601#gmail.com', vip=false, nuts=100, currentLat=50.028797, currentLon=21.000123, createdDate=Tue Jul 12 11:07:55 CEST 2016, deletedDate=null, joinEvents=null, organizeEvents=null}]} and Tag{id=3231, tag='Plaża'}
2016-07-14 22:04:42.873 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.context.EntityGraphMapper : context-new: (-250914077)-[-1054618601:TAGGED]->(3231)
2016-07-14 22:04:42.873 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.context.EntityGraphMapper : mapping reference type: ORGANIZED
2016-07-14 22:04:42.873 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.context.EntityGraphMapper : linking to entity UserNeo{id=3153, firstName='Michal', lastName='Niedziela', email='sunday1601#gmail.com', vip=false, nuts=100, currentLat=50.028797, currentLon=21.000123, createdDate=Tue Jul 12 11:07:55 CEST 2016, deletedDate=null, joinEvents=null, organizeEvents=null} in one direction
2016-07-14 22:04:42.873 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.context.EntityGraphMapper : visiting: UserNeo{id=3153, firstName='Michal', lastName='Niedziela', email='sunday1601#gmail.com', vip=false, nuts=100, currentLat=50.028797, currentLon=21.000123, createdDate=Tue Jul 12 11:07:55 CEST 2016, deletedDate=null, joinEvents=null, organizeEvents=null}
2016-07-14 22:04:42.874 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.context.EntityGraphMapper : UserNeo{id=3153, firstName='Michal', lastName='Niedziela', email='sunday1601#gmail.com', vip=false, nuts=100, currentLat=50.028797, currentLon=21.000123, createdDate=Tue Jul 12 11:07:55 CEST 2016, deletedDate=null, joinEvents=null, organizeEvents=null}, has not changed
2016-07-14 22:04:42.874 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.context.EntityGraphMapper : mapping references declared by: UserNeo{id=3153, firstName='Michal', lastName='Niedziela', email='sunday1601#gmail.com', vip=false, nuts=100, currentLat=50.028797, currentLon=21.000123, createdDate=Tue Jul 12 11:07:55 CEST 2016, deletedDate=null, joinEvents=null, organizeEvents=null}
2016-07-14 22:04:42.874 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.context.EntityGraphMapper : context-del: (3153)-[:JOINED_IN]->()
2016-07-14 22:04:42.874 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.context.EntityGraphMapper : context-del: (3153)-[:ORGANIZED]->()
2016-07-14 22:04:42.874 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.context.EntityGraphMapper : trying to map relationship between Event{id=null, title='Event 47', shortDescription='Opis krotki short', longDescription='Opis długi long', address='address 5', lat=50.000452, lon=20.957071, time=Sun Jun 18 01:07:34 CEST 2017, nuts=17, createdBy='Michal Niedziela', createdDate=2016-07-14 22:04:42.863, modifiedBy='null', modifiedDate=null, deletedDate=1970-01-01 01:00:00.0, tagSet=[Tag{id=2100, tag='Rock'}, Tag{id=2098, tag='Festiwal'}, Tag{id=3231, tag='Plaża'}], joinedUsers=[], organizedUsers=[UserNeo{id=3153, firstName='Michal', lastName='Niedziela', email='sunday1601#gmail.com', vip=false, nuts=100, currentLat=50.028797, currentLon=21.000123, createdDate=Tue Jul 12 11:07:55 CEST 2016, deletedDate=null, joinEvents=null, organizeEvents=null}]} and UserNeo{id=3153, firstName='Michal', lastName='Niedziela', email='sunday1601#gmail.com', vip=false, nuts=100, currentLat=50.028797, currentLon=21.000123, createdDate=Tue Jul 12 11:07:55 CEST 2016, deletedDate=null, joinEvents=null, organizeEvents=null}
2016-07-14 22:04:42.874 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.context.EntityGraphMapper : context-new: (3153)-[-1646367736:ORGANIZED]->(-250914077)
2016-07-14 22:04:42.874 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.context.EntityGraphMapper : mapping reference type: JOINED_IN
2016-07-14 22:04:42.874 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.context.EntityGraphMapper : context-del: ($3153)-[null:ORGANIZED]->($2108)
2016-07-14 22:04:42.874 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.context.EntityGraphMapper : flushing end node of: ($3153)-[:ORGANIZED]->($2108)
2016-07-14 22:04:42.874 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.context.EntityGraphMapper : flushing start node of: ($3153)-[:ORGANIZED]->($2108)
2016-07-14 22:04:42.874 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.context.EntityGraphMapper : context-del: ($2108)-[null:TAGGED]->($2098)
2016-07-14 22:04:42.874 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.context.EntityGraphMapper : flushing end node of: ($2108)-[:TAGGED]->($2098)
2016-07-14 22:04:42.874 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.context.EntityGraphMapper : flushing end node of: ($2108)-[:TAGGED]->($2100)
2016-07-14 22:04:42.874 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.context.EntityGraphMapper : context-del: ($2108)-[null:TAGGED]->($2100)
2016-07-14 22:04:42.875 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.session.Neo4jSession : Thread 41: beginTransaction()
2016-07-14 22:04:42.875 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.session.Neo4jSession : Thread 41: Neo4jSession identity: org.neo4j.ogm.session.delegates.TransactionsDelegate#32786293
2016-07-14 22:04:42.875 DEBUG 26162 --- [nio-8080-exec-5] o.n.ogm.drivers.http.driver.HttpDriver : Thread 41: POST http://localhost:7474/db/data/transaction
2016-07-14 22:04:42.875 INFO 26162 --- [nio-8080-exec-5] o.n.o.drivers.http.request.HttpRequest : Thread 41: POST http://localhost:7474/db/data/transaction HTTP/1.1
2016-07-14 22:04:42.876 DEBUG 26162 --- [nio-8080-exec-5] o.n.o.drivers.http.request.HttpRequest : Thread 41: HttpResponse HttpResponseProxy{HTTP/1.1 201 Created [Date: Thu, 14 Jul 2016 20:04:42 GMT, Location: http://localhost:7474/db/data/transaction/531, Content-Type: application/json, Access-Control-Allow-Origin: *, Content-Length: 150, Server: Jetty(9.2.9.v20150224)] ResponseEntityProxy{[Content-Type: application/json,Content-Length: 150,Chunked: false]}}
2016-07-14 22:04:42.881 DEBUG 26162 --- [nio-8080-exec-5] o.n.ogm.drivers.http.driver.HttpDriver : Thread 41: {"commit":"http://localhost:7474/db/data/transaction/531/commit","results":[],"transaction":{"expires":"Thu, 14 Jul 2016 20:05:42 +0000"},"errors":[]}
2016-07-14 22:04:42.882 DEBUG 26162 --- [nio-8080-exec-5] o.n.ogm.drivers.http.driver.HttpDriver : Thread 41: Connection released
2016-07-14 22:04:42.884 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.session.Neo4jSession : Thread 41: Transaction, tx id: org.neo4j.ogm.drivers.http.transaction.HttpTransaction#39e7461a
2016-07-14 22:04:42.884 DEBUG 26162 --- [nio-8080-exec-5] o.n.ogm.drivers.http.driver.HttpDriver : Thread 41: request url http://localhost:7474/db/data/transaction/531
2016-07-14 22:04:42.884 INFO 26162 --- [nio-8080-exec-5] o.n.o.drivers.http.request.HttpRequest : Thread 41: request {"statements":[{"statement":"UNWIND {rows} as row CREATE (n:`Event`) SET n=row.props RETURN row.nodeRef as ref, ID(n) as id, row.type as type","parameters":{"rows":[{"nodeRef":-250914077,"type":"node","props":{"short_description":"Opis krotki short","deleted_date":0,"address":"address 5","nuts":17,"lon":20.957071,"created_date":1468526682863,"time":1497740854000,"long_description":"Opis długi long","title":"Event 47","created_by":"Michal Niedziela","lat":50.000452}}]},"resultDataContents":["row"],"includeStats":false}]}
2016-07-14 22:04:42.885 INFO 26162 --- [nio-8080-exec-5] o.n.o.drivers.http.request.HttpRequest : Thread 41: POST http://localhost:7474/db/data/transaction/531 HTTP/1.1
2016-07-14 22:04:42.889 DEBUG 26162 --- [nio-8080-exec-5] o.n.o.drivers.http.request.HttpRequest : Thread 41: HttpResponse HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 14 Jul 2016 20:04:42 GMT, Content-Type: application/json, Access-Control-Allow-Origin: *, Content-Length: 247, Server: Jetty(9.2.9.v20150224)] ResponseEntityProxy{[Content-Type: application/json,Content-Length: 247,Chunked: false]}}
2016-07-14 22:04:42.889 DEBUG 26162 --- [nio-8080-exec-5] o.n.o.d.h.response.AbstractHttpResponse : Thread 41: Releasing HttpResponse
2016-07-14 22:04:42.889 DEBUG 26162 --- [nio-8080-exec-5] o.n.ogm.session.request.RequestExecutor : to create: nodeEntity -250914077:2109
2016-07-14 22:04:42.889 DEBUG 26162 --- [nio-8080-exec-5] o.n.ogm.drivers.http.driver.HttpDriver : Thread 41: request url http://localhost:7474/db/data/transaction/531
2016-07-14 22:04:42.890 INFO 26162 --- [nio-8080-exec-5] o.n.o.drivers.http.request.HttpRequest : Thread 41: request {"statements":[{"statement":"UNWIND {rows} as row MATCH (startNode) WHERE ID(startNode) = row.startNodeId MATCH (endNode) WHERE ID(endNode) = row.endNodeId MERGE (startNode)-[rel:`TAGGED`]->(endNode) RETURN row.relRef as ref, ID(rel) as id, row.type as type","parameters":{"rows":[{"startNodeId":2109,"relRef":-1054618601,"type":"rel","endNodeId":3231},{"startNodeId":2109,"relRef":-1648969869,"type":"rel","endNodeId":2098},{"startNodeId":2109,"relRef":-1950378672,"type":"rel","endNodeId":2100}]},"resultDataContents":["row"],"includeStats":false},{"statement":"UNWIND {rows} as row MATCH (startNode) WHERE ID(startNode) = row.startNodeId MATCH (endNode) WHERE ID(endNode) = row.endNodeId MERGE (startNode)-[rel:`ORGANIZED`]->(endNode) RETURN row.relRef as ref, ID(rel) as id, row.type as type","parameters":{"rows":[{"startNodeId":3153,"relRef":-1646367736,"type":"rel","endNodeId":2109}]},"resultDataContents":["row"],"includeStats":false},{"statement":"UNWIND {rows} as row MATCH (startNode) WHERE ID(startNode) = row.startNodeId MATCH (endNode) WHERE ID(endNode) = row.endNodeId MATCH (startNode)-[rel:`ORGANIZED`]->(endNode) DELETE rel","parameters":{"rows":[{"startNodeId":3153,"endNodeId":2108}]},"resultDataContents":["row"],"includeStats":false},{"statement":"UNWIND {rows} as row MATCH (startNode) WHERE ID(startNode) = row.startNodeId MATCH (endNode) WHERE ID(endNode) = row.endNodeId MATCH (startNode)-[rel:`TAGGED`]->(endNode) DELETE rel","parameters":{"rows":[{"startNodeId":2108,"endNodeId":2098},{"startNodeId":2108,"endNodeId":2100}]},"resultDataContents":["row"],"includeStats":false}]}
2016-07-14 22:04:42.891 INFO 26162 --- [nio-8080-exec-5] o.n.o.drivers.http.request.HttpRequest : Thread 41: POST http://localhost:7474/db/data/transaction/531 HTTP/1.1
2016-07-14 22:04:42.895 DEBUG 26162 --- [nio-8080-exec-5] o.n.o.drivers.http.request.HttpRequest : Thread 41: HttpResponse HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 14 Jul 2016 20:04:42 GMT, Content-Type: application/json, Access-Control-Allow-Origin: *, Content-Length: 505, Server: Jetty(9.2.9.v20150224)] ResponseEntityProxy{[Content-Type: application/json,Content-Length: 505,Chunked: false]}}
2016-07-14 22:04:42.895 DEBUG 26162 --- [nio-8080-exec-5] o.n.o.d.h.response.AbstractHttpResponse : Thread 41: Releasing HttpResponse
2016-07-14 22:04:42.896 DEBUG 26162 --- [nio-8080-exec-5] o.n.ogm.session.request.RequestExecutor : to (maybe) create: relEntity -1054618601:461
2016-07-14 22:04:42.896 DEBUG 26162 --- [nio-8080-exec-5] o.n.ogm.session.request.RequestExecutor : to (maybe) create: relEntity -1648969869:462
2016-07-14 22:04:42.896 DEBUG 26162 --- [nio-8080-exec-5] o.n.ogm.session.request.RequestExecutor : to (maybe) create: relEntity -1950378672:463
2016-07-14 22:04:42.896 DEBUG 26162 --- [nio-8080-exec-5] o.n.ogm.session.request.RequestExecutor : to (maybe) create: relEntity -1646367736:464
2016-07-14 22:04:42.897 INFO 26162 --- [nio-8080-exec-5] o.n.o.drivers.http.request.HttpRequest : Thread 41: POST http://localhost:7474/db/data/transaction/531/commit HTTP/1.1
2016-07-14 22:04:42.908 DEBUG 26162 --- [nio-8080-exec-5] o.n.o.drivers.http.request.HttpRequest : Thread 41: HttpResponse HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 14 Jul 2016 20:04:42 GMT, Content-Type: application/json, Access-Control-Allow-Origin: *, Content-Length: 26, Server: Jetty(9.2.9.v20150224)] ResponseEntityProxy{[Content-Type: application/json,Content-Length: 26,Chunked: false]}}
2016-07-14 22:04:42.909 DEBUG 26162 --- [nio-8080-exec-5] o.n.ogm.drivers.http.driver.HttpDriver : Thread 41: {"results":[],"errors":[]}
2016-07-14 22:04:42.909 DEBUG 26162 --- [nio-8080-exec-5] o.n.ogm.drivers.http.driver.HttpDriver : Thread 41: Connection released
2016-07-14 22:04:42.909 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.transaction.Transaction : Thread 41: Commit transaction extent: 0
2016-07-14 22:04:42.909 DEBUG 26162 --- [nio-8080-exec-5] org.neo4j.ogm.transaction.Transaction : Thread 41: Committed
2016-07-14 22:04:42.909 DEBUG 26162 --- [nio-8080-exec-5] o.n.ogm.session.request.RequestExecutor : creating new node id: 2109
2016-07-14 22:04:42.909 DEBUG 26162 --- [nio-8080-exec-5] c.m.myapp.aop.logging.LoggingAspect : Exit: com.mycompany.myapp.service.EventService.createEvent() with result = Event{id=2109, title='Event 47', shortDescription='Opis krotki short', longDescription='Opis długi long', address='address 5', lat=50.000452, lon=20.957071, time=Sun Jun 18 01:07:34 CEST 2017, nuts=17, createdBy='Michal Niedziela', createdDate=2016-07-14 22:04:42.863, modifiedBy='null', modifiedDate=null, deletedDate=1970-01-01 01:00:00.0, tagSet=[Tag{id=2100, tag='Rock'}, Tag{id=2098, tag='Festiwal'}, Tag{id=3231, tag='Plaża'}], joinedUsers=[], organizedUsers=[UserNeo{id=3153, firstName='Michal', lastName='Niedziela', email='sunday1601#gmail.com', vip=false, nuts=100, currentLat=50.028797, currentLon=21.000123, createdDate=Tue Jul 12 11:07:55 CEST 2016, deletedDate=null, joinEvents=null, organizeEvents=null}]}
2016-07-14 22:04:42.909 DEBUG 26162 --- [nio-8080-exec-5] c.m.myapp.aop.logging.LoggingAspect : Exit: com.mycompany.myapp.web.rest.EventResources.createEvent() with result = <200 OK,Event{id=2109, title='Event 47', shortDescription='Opis krotki short', longDescription='Opis długi long', address='address 5', lat=50.000452, lon=20.957071, time=Sun Jun 18 01:07:34 CEST 2017, nuts=17, createdBy='Michal Niedziela', createdDate=2016-07-14 22:04:42.863, modifiedBy='null', modifiedDate=null, deletedDate=1970-01-01 01:00:00.0, tagSet=[Tag{id=2100, tag='Rock'}, Tag{id=2098, tag='Festiwal'}, Tag{id=3231, tag='Plaża'}], joinedUsers=[], organizedUsers=[UserNeo{id=3153, firstName='Michal', lastName='Niedziela', email='sunday1601#gmail.com', vip=false, nuts=100, currentLat=50.028797, currentLon=21.000123, createdDate=Tue Jul 12 11:07:55 CEST 2016, deletedDate=null, joinEvents=null, organizeEvents=null}]},{}>
When you add tags to the event, it looks like the Tag does not contain a reference back to the Event? This could be one of the reasons the event-tag relationships are deleted i.e. your object references inconsistent with what is expected in the graph.
In case you want to define relationship in only one of the entities, you may use Session.clear after saving of tag so that tag is not tracked by session and does not get automatically saved after change to event.
https://docs.spring.io/spring-data/neo4j/docs/5.0.0.M1/reference/html/#reference.architecture.session

Register for remote VOIP server with PJSIP in IOS

I want to make app that let user to make calls over ip (VOIP).
I was following this tutorial http://www.xianwenchen.com/blog/2014/06/09/how-to-make-an-ios-voip-app-with-pjsip-part-1/
but now I want to register to global server like ekiga or linphone.org .
now this is my code written in C
#include "Pjsua.h"
#include <pjsua-lib/pjsua.h>
#define THIS_FILE "Pjsua.c"
static pjsua_acc_id acc_id;
const size_t MAX_SIP_ID_LENGTH = 50;
const size_t MAX_SIP_REG_URI_LENGTH = 50;
static void on_incoming_call(pjsua_acc_id acc_id, pjsua_call_id call_id, pjsip_rx_data *rdata);
static void on_call_state(pjsua_call_id call_id, pjsip_event *e);
static void on_call_media_state(pjsua_call_id call_id);
static void error_exit(const char *title, pj_status_t status);
int startPjsip(char *sipUser, char* sipDomain)
{
pj_status_t status;
// Create pjsua first
status = pjsua_create();
if (status != PJ_SUCCESS) error_exit("Error in pjsua_create()", status);
// Init pjsua
{
// Init the config structure
pjsua_config cfg;
pjsua_config_default (&cfg);
cfg.cb.on_incoming_call = &on_incoming_call;
cfg.cb.on_call_media_state = &on_call_media_state;
cfg.cb.on_call_state = &on_call_state;
// Init the logging config structure
pjsua_logging_config log_cfg;
pjsua_logging_config_default(&log_cfg);
log_cfg.console_level = 5;
log_cfg.level = 5;
// Init the pjsua
status = pjsua_init(&cfg, &log_cfg, NULL);
if (status != PJ_SUCCESS) error_exit("Error in pjsua_init()", status);
}
// Add UDP transport.
{
// Init transport config structure
pjsua_transport_config cfg;
pjsua_transport_config_default(&cfg);
cfg.port = 5080;
// Add TCP transport.
status = pjsua_transport_create(PJSIP_TRANSPORT_UDP, &cfg, NULL);
if (status != PJ_SUCCESS) error_exit("Error creating transport udp", status);
}
// Add TCP transport.
{
// Init transport config structure
pjsua_transport_config cfg;
pjsua_transport_config_default(&cfg);
cfg.port = 5080;
// Add TCP transport.
status = pjsua_transport_create(PJSIP_TRANSPORT_TCP, &cfg, NULL);
if (status != PJ_SUCCESS) error_exit("Error creating transport tcp", status);
}
// Initialization is done, now start pjsua
status = pjsua_start();
if (status != PJ_SUCCESS) error_exit("Error starting pjsua", status);
// Register the account on local sip server
{
pjsua_acc_config cfg;
pjsua_acc_config_default(&cfg);
cfg.id = pj_str((char *)"sip:exampleuser#sip.linphone.org");
cfg.reg_uri = pj_str((char *)"sip:sip.linphone.org");
cfg.proxy[0] = pj_str((char *)"sip:sip.linphone.org");
cfg.cred_count = 1;
cfg.cred_info[0].scheme = pj_str((char *)"digest");
cfg.cred_info[0].realm = pj_str((char *)"*");
cfg.cred_info[0].username = pj_str((char *)"exampleuser");
cfg.cred_info[0].data_type = 0;
cfg.cred_info[0].data = pj_str((char *)"examplepasswor");
status = pjsua_acc_add(&cfg, PJ_TRUE, &acc_id);
if (status != PJ_SUCCESS) error_exit("Error adding account", status);
}
return 0;
}
/* Callback called by the library upon receiving incoming call */
static void on_incoming_call(pjsua_acc_id acc_id, pjsua_call_id call_id,
pjsip_rx_data *rdata)
{
pjsua_call_info ci;
PJ_UNUSED_ARG(acc_id);
PJ_UNUSED_ARG(rdata);
pjsua_call_get_info(call_id, &ci);
PJ_LOG(3,(THIS_FILE, "Incoming call from %.*s!!",
(int)ci.remote_info.slen,
ci.remote_info.ptr));
/* Automatically answer incoming calls with 200/OK */
pjsua_call_answer(call_id, 200, NULL, NULL);
}
/* Callback called by the library when call's state has changed */
static void on_call_state(pjsua_call_id call_id, pjsip_event *e)
{
pjsua_call_info ci;
PJ_UNUSED_ARG(e);
pjsua_call_get_info(call_id, &ci);
PJ_LOG(3,(THIS_FILE, "Call %d state=%.*s", call_id,
(int)ci.state_text.slen,
ci.state_text.ptr));
}
/* Callback called by the library when call's media state has changed */
static void on_call_media_state(pjsua_call_id call_id)
{
pjsua_call_info ci;
pjsua_call_get_info(call_id, &ci);
if (ci.media_status == PJSUA_CALL_MEDIA_ACTIVE) {
// When media is active, connect call to sound device.
pjsua_conf_connect(ci.conf_slot, 0);
pjsua_conf_connect(0, ci.conf_slot);
}
}
/* Display error and exit application */
static void error_exit(const char *title, pj_status_t status)
{
pjsua_perror(THIS_FILE, title, status);
pjsua_destroy();
exit(1);
}
void makeCall(char* destUri)
{
pj_status_t status;
pj_str_t uri = pj_str(destUri);
status = pjsua_call_make_call(acc_id, &uri, 0, NULL, NULL, NULL);
if (status != PJ_SUCCESS) error_exit("Error making call", status);
}
void endCall()
{
pjsua_call_hangup_all();
}
display request time out error .
12:41:02.521 os_core_unix.c !pjlib 2.3 for POSIX initialized
12:41:02.524 sip_endpoint.c .Creating endpoint instance...
12:41:02.528 pjlib .select() I/O Queue created (0x7db49148)
12:41:02.528 sip_endpoint.c .Module "mod-msg-print" registered
12:41:02.528 sip_transport. .Transport manager created.
12:41:02.528 pjsua_core.c .PJSUA state changed: NULL --> CREATED
12:41:02.531 sip_endpoint.c .Module "mod-pjsua-log" registered
12:41:02.531 sip_endpoint.c .Module "mod-tsx-layer" registered
12:41:02.532 sip_endpoint.c .Module "mod-stateful-util" registered
12:41:02.532 sip_endpoint.c .Module "mod-ua" registered
12:41:02.533 sip_endpoint.c .Module "mod-100rel" registered
12:41:02.533 sip_endpoint.c .Module "mod-pjsua" registered
12:41:02.533 sip_endpoint.c .Module "mod-invite" registered
12:41:02.584 coreaudio_dev. .. dev_id 0: iPhone IO device (in=1, out=1) 8000Hz
12:41:02.584 coreaudio_dev. ..core audio initialized
12:41:02.584 pjlib ..select() I/O Queue created (0x7cb38a14)
12:41:02.595 sip_endpoint.c .Module "mod-evsub" registered
12:41:02.595 sip_endpoint.c .Module "mod-presence" registered
12:41:02.595 sip_endpoint.c .Module "mod-mwi" registered
12:41:02.609 sip_endpoint.c .Module "mod-refer" registered
12:41:02.609 sip_endpoint.c .Module "mod-pjsua-pres" registered
12:41:02.609 sip_endpoint.c .Module "mod-pjsua-im" registered
12:41:02.609 sip_endpoint.c .Module "mod-pjsua-options" registered
12:41:02.609 pjsua_core.c .1 SIP worker threads created
12:41:02.609 pjsua_core.c .pjsua version 2.3 for Darwin-15.2/x86_64 initialized
12:41:02.609 pjsua_core.c .PJSUA state changed: CREATED --> INIT
12:41:02.610 pjsua_core.c SIP UDP socket reachable at 192.168.1.4:5080
12:41:02.610 udp0x7e33de00 SIP UDP transport started, published address is 192.168.1.4:5080
12:41:02.610 pjsua_core.c PJSUA state changed: INIT --> STARTING
12:41:02.610 sip_endpoint.c .Module "mod-unsolicited-mwi" registered
12:41:02.610 pjsua_core.c .PJSUA state changed: STARTING --> RUNNING
12:41:02.610 pjsua_acc.c Adding account: id=sip:eslamhanafy#sip.linphone.org
12:41:02.610 pjsua_acc.c .Account sip:eslamhanafy#sip.linphone.org added with id 0
12:41:02.662 pjsua_acc.c .Acc 0: setting registration..
12:41:03.011 pjsua_core.c ...TX 513 bytes Request msg REGISTER/cseq=61350 (tdta0x7db55800) to UDP 91.121.209.194:5060:
REGISTER sip:sip.linphone.org SIP/2.0
Via: SIP/2.0/UDP 192.168.1.4:5080;rport;branch=z9hG4bKPjEqa4bpBzv-vnExngLtmsuk5iwICWQ6nq
Max-Forwards: 70
From: <sip:eslamhanafy#sip.linphone.org>;tag=6tsmpbE3RQMQYGV3V4umeMM.U78z5CLt
To: <sip:eslamhanafy#sip.linphone.org>
Call-ID: OMZHw0Zs5Yz7Yjn8qZGr3Oiy2ELIHUh2
CSeq: 61350 REGISTER
Contact: <sip:eslamhanafy#192.168.1.4:5080;ob>
Expires: 300
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Content-Length: 0
--end msg--
12:41:03.012 pjsua_acc.c ..Acc 0: Registration sent
12:41:03.012 pjsua_call.c Making call with acc #0 to sip:485501406065403210#sip.linphone.org
12:41:03.013 pjsua_aud.c .Set sound device: capture=-1, playback=-2
12:41:03.014 pjsua_aud.c ..Opening sound device PCM#16000/1/20ms
12:41:03.014 coreaudio_dev. ...Using VoiceProcessingIO audio unit
12:41:03.082 coreaudio_dev. ...core audio stream started
12:41:03.082 pjsua_media.c .Call 0: initializing media..
12:41:03.083 pjsua_media.c ..RTP socket reachable at 192.168.1.4:4000
12:41:03.083 pjsua_media.c ..RTCP socket reachable at 192.168.1.4:4001
12:41:03.083 pjsua_media.c ..Media index 0 selected for audio call 0
12:41:03.084 pjsua_core.c ....TX 1079 bytes Request msg INVITE/cseq=5147 (tdta0x7db57000) to UDP 91.121.209.194:5060:
INVITE sip:485501406065403210#sip.linphone.org SIP/2.0
Via: SIP/2.0/UDP 192.168.1.4:5080;rport;branch=z9hG4bKPjwaxGhboJCF8WhuS7G6UQqXVwps0Qo3na
Max-Forwards: 70
From: sip:eslamhanafy#sip.linphone.org;tag=yRJayafQCC9ApjtJuF8-NtAmY8PquMXt
To: sip:485501406065403210#sip.linphone.org
Contact: <sip:eslamhanafy#192.168.1.4:5080;ob>
Call-ID: FScQI.ot3zfH6qdPis4.zQUw4g.yzDun
CSeq: 5147 INVITE
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Supported: replaces, 100rel, timer, norefersub
Session-Expires: 1800
Min-SE: 90
Content-Type: application/sdp
Content-Length: 446
v=0
o=- 3662793663 3662793663 IN IP4 192.168.1.4
s=pjmedia
b=AS:84
t=0 0
a=X-nat:0
m=audio 4000 RTP/AVP 98 97 99 104 3 0 8 96
c=IN IP4 192.168.1.4
b=TIAS:64000
a=rtcp:4001 IN IP4 192.168.1.4
a=sendrecv
a=rtpmap:98 speex/16000
a=rtpmap:97 speex/8000
a=rtpmap:99 speex/32000
a=rtpmap:104 iLBC/8000
a=fmtp:104 mode=30
a=rtpmap:3 GSM/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:96 telephone-event/8000
a=fmtp:96 0-16
--end msg--
done
done
12:41:03.100 os_core_unix.c !Info: possibly re-registering existing thread
12:41:03.512 pjsua_core.c !.TX 513 bytes Request msg REGISTER/cseq=61350 (tdta0x7db55800) to UDP 91.121.209.194:5060:
REGISTER sip:sip.linphone.org SIP/2.0
Via: SIP/2.0/UDP 192.168.1.4:5080;rport;branch=z9hG4bKPjEqa4bpBzv-vnExngLtmsuk5iwICWQ6nq
Max-Forwards: 70
From: <sip:eslamhanafy#sip.linphone.org>;tag=6tsmpbE3RQMQYGV3V4umeMM.U78z5CLt
To: <sip:eslamhanafy#sip.linphone.org>
Call-ID: OMZHw0Zs5Yz7Yjn8qZGr3Oiy2ELIHUh2
CSeq: 61350 REGISTER
Contact: <sip:eslamhanafy#192.168.1.4:5080;ob>
Expires: 300
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Content-Length: 0
--end msg--
12:41:03.585 pjsua_core.c .TX 1079 bytes Request msg INVITE/cseq=5147 (tdta0x7db57000) to UDP 91.121.209.194:5060:
INVITE sip:485501406065403210#sip.linphone.org SIP/2.0
Via: SIP/2.0/UDP 192.168.1.4:5080;rport;branch=z9hG4bKPjwaxGhboJCF8WhuS7G6UQqXVwps0Qo3na
Max-Forwards: 70
From: sip:eslamhanafy#sip.linphone.org;tag=yRJayafQCC9ApjtJuF8-NtAmY8PquMXt
To: sip:485501406065403210#sip.linphone.org
Contact: <sip:eslamhanafy#192.168.1.4:5080;ob>
Call-ID: FScQI.ot3zfH6qdPis4.zQUw4g.yzDun
CSeq: 5147 INVITE
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Supported: replaces, 100rel, timer, norefersub
Session-Expires: 1800
Min-SE: 90
Content-Type: application/sdp
Content-Length: 446
v=0
o=- 3662793663 3662793663 IN IP4 192.168.1.4
s=pjmedia
b=AS:84
t=0 0
a=X-nat:0
m=audio 4000 RTP/AVP 98 97 99 104 3 0 8 96
c=IN IP4 192.168.1.4
b=TIAS:64000
a=rtcp:4001 IN IP4 192.168.1.4
a=sendrecv
a=rtpmap:98 speex/16000
a=rtpmap:97 speex/8000
a=rtpmap:99 speex/32000
a=rtpmap:104 iLBC/8000
a=fmtp:104 mode=30
a=rtpmap:3 GSM/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:96 telephone-event/8000
a=fmtp:96 0-16
--end msg--
12:41:04.513 pjsua_core.c .TX 513 bytes Request msg REGISTER/cseq=61350 (tdta0x7db55800) to UDP 91.121.209.194:5060:
REGISTER sip:sip.linphone.org SIP/2.0
Via: SIP/2.0/UDP 192.168.1.4:5080;rport;branch=z9hG4bKPjEqa4bpBzv-vnExngLtmsuk5iwICWQ6nq
Max-Forwards: 70
From: <sip:eslamhanafy#sip.linphone.org>;tag=6tsmpbE3RQMQYGV3V4umeMM.U78z5CLt
To: <sip:eslamhanafy#sip.linphone.org>
Call-ID: OMZHw0Zs5Yz7Yjn8qZGr3Oiy2ELIHUh2
CSeq: 61350 REGISTER
Contact: <sip:eslamhanafy#192.168.1.4:5080;ob>
Expires: 300
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Content-Length: 0
--end msg--
12:41:04.585 pjsua_core.c .TX 1079 bytes Request msg INVITE/cseq=5147 (tdta0x7db57000) to UDP 91.121.209.194:5060:
INVITE sip:485501406065403210#sip.linphone.org SIP/2.0
Via: SIP/2.0/UDP 192.168.1.4:5080;rport;branch=z9hG4bKPjwaxGhboJCF8WhuS7G6UQqXVwps0Qo3na
Max-Forwards: 70
From: sip:eslamhanafy#sip.linphone.org;tag=yRJayafQCC9ApjtJuF8-NtAmY8PquMXt
To: sip:485501406065403210#sip.linphone.org
Contact: <sip:eslamhanafy#192.168.1.4:5080;ob>
Call-ID: FScQI.ot3zfH6qdPis4.zQUw4g.yzDun
CSeq: 5147 INVITE
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Supported: replaces, 100rel, timer, norefersub
Session-Expires: 1800
Min-SE: 90
Content-Type: application/sdp
Content-Length: 446
v=0
o=- 3662793663 3662793663 IN IP4 192.168.1.4
s=pjmedia
b=AS:84
t=0 0
a=X-nat:0
m=audio 4000 RTP/AVP 98 97 99 104 3 0 8 96
c=IN IP4 192.168.1.4
b=TIAS:64000
a=rtcp:4001 IN IP4 192.168.1.4
a=sendrecv
a=rtpmap:98 speex/16000
a=rtpmap:97 speex/8000
a=rtpmap:99 speex/32000
a=rtpmap:104 iLBC/8000
a=fmtp:104 mode=30
a=rtpmap:3 GSM/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:96 telephone-event/8000
a=fmtp:96 0-16
--end msg--
12:41:06.515 pjsua_core.c .TX 513 bytes Request msg REGISTER/cseq=61350 (tdta0x7db55800) to UDP 91.121.209.194:5060:
REGISTER sip:sip.linphone.org SIP/2.0
Via: SIP/2.0/UDP 192.168.1.4:5080;rport;branch=z9hG4bKPjEqa4bpBzv-vnExngLtmsuk5iwICWQ6nq
Max-Forwards: 70
From: <sip:eslamhanafy#sip.linphone.org>;tag=6tsmpbE3RQMQYGV3V4umeMM.U78z5CLt
To: <sip:eslamhanafy#sip.linphone.org>
Call-ID: OMZHw0Zs5Yz7Yjn8qZGr3Oiy2ELIHUh2
CSeq: 61350 REGISTER
Contact: <sip:eslamhanafy#192.168.1.4:5080;ob>
Expires: 300
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Content-Length: 0
--end msg--
12:41:10.515 pjsua_core.c .TX 513 bytes Request msg REGISTER/cseq=61350 (tdta0x7db55800) to UDP 91.121.209.194:5060:
REGISTER sip:sip.linphone.org SIP/2.0
Via: SIP/2.0/UDP 192.168.1.4:5080;rport;branch=z9hG4bKPjEqa4bpBzv-vnExngLtmsuk5iwICWQ6nq
Max-Forwards: 70
From: <sip:eslamhanafy#sip.linphone.org>;tag=6tsmpbE3RQMQYGV3V4umeMM.U78z5CLt
To: <sip:eslamhanafy#sip.linphone.org>
Call-ID: OMZHw0Zs5Yz7Yjn8qZGr3Oiy2ELIHUh2
CSeq: 61350 REGISTER
Contact: <sip:eslamhanafy#192.168.1.4:5080;ob>
Expires: 300
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Content-Length: 0
--end msg--
12:41:10.585 pjsua_core.c .TX 1079 bytes Request msg INVITE/cseq=5147 (tdta0x7db57000) to UDP 91.121.209.194:5060:
INVITE sip:485501406065403210#sip.linphone.org SIP/2.0
Via: SIP/2.0/UDP 192.168.1.4:5080;rport;branch=z9hG4bKPjwaxGhboJCF8WhuS7G6UQqXVwps0Qo3na
Max-Forwards: 70
From: sip:eslamhanafy#sip.linphone.org;tag=yRJayafQCC9ApjtJuF8-NtAmY8PquMXt
To: sip:485501406065403210#sip.linphone.org
Contact: <sip:eslamhanafy#192.168.1.4:5080;ob>
Call-ID: FScQI.ot3zfH6qdPis4.zQUw4g.yzDun
CSeq: 5147 INVITE
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Supported: replaces, 100rel, timer, norefersub
Session-Expires: 1800
Min-SE: 90
Content-Type: application/sdp
Content-Length: 446
v=0
o=- 3662793663 3662793663 IN IP4 192.168.1.4
s=pjmedia
b=AS:84
t=0 0
a=X-nat:0
m=audio 4000 RTP/AVP 98 97 99 104 3 0 8 96
c=IN IP4 192.168.1.4
b=TIAS:64000
a=rtcp:4001 IN IP4 192.168.1.4
a=sendrecv
a=rtpmap:98 speex/16000
a=rtpmap:97 speex/8000
a=rtpmap:99 speex/32000
a=rtpmap:104 iLBC/8000
a=fmtp:104 mode=30
a=rtpmap:3 GSM/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:96 telephone-event/8000
a=fmtp:96 0-16
--end msg--
12:41:14.515 pjsua_core.c .TX 513 bytes Request msg REGISTER/cseq=61350 (tdta0x7db55800) to UDP 91.121.209.194:5060:
REGISTER sip:sip.linphone.org SIP/2.0
Via: SIP/2.0/UDP 192.168.1.4:5080;rport;branch=z9hG4bKPjEqa4bpBzv-vnExngLtmsuk5iwICWQ6nq
Max-Forwards: 70
From: <sip:eslamhanafy#sip.linphone.org>;tag=6tsmpbE3RQMQYGV3V4umeMM.U78z5CLt
To: <sip:eslamhanafy#sip.linphone.org>
Call-ID: OMZHw0Zs5Yz7Yjn8qZGr3Oiy2ELIHUh2
CSeq: 61350 REGISTER
Contact: <sip:eslamhanafy#192.168.1.4:5080;ob>
Expires: 300
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Content-Length: 0
--end msg--
12:41:18.518 pjsua_core.c .TX 513 bytes Request msg REGISTER/cseq=61350 (tdta0x7db55800) to UDP 91.121.209.194:5060:
REGISTER sip:sip.linphone.org SIP/2.0
Via: SIP/2.0/UDP 192.168.1.4:5080;rport;branch=z9hG4bKPjEqa4bpBzv-vnExngLtmsuk5iwICWQ6nq
Max-Forwards: 70
From: <sip:eslamhanafy#sip.linphone.org>;tag=6tsmpbE3RQMQYGV3V4umeMM.U78z5CLt
To: <sip:eslamhanafy#sip.linphone.org>
Call-ID: OMZHw0Zs5Yz7Yjn8qZGr3Oiy2ELIHUh2
CSeq: 61350 REGISTER
Contact: <sip:eslamhanafy#192.168.1.4:5080;ob>
Expires: 300
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Content-Length: 0
--end msg--
12:41:18.588 pjsua_core.c .TX 1079 bytes Request msg INVITE/cseq=5147 (tdta0x7db57000) to UDP 91.121.209.194:5060:
INVITE sip:485501406065403210#sip.linphone.org SIP/2.0
Via: SIP/2.0/UDP 192.168.1.4:5080;rport;branch=z9hG4bKPjwaxGhboJCF8WhuS7G6UQqXVwps0Qo3na
Max-Forwards: 70
From: sip:eslamhanafy#sip.linphone.org;tag=yRJayafQCC9ApjtJuF8-NtAmY8PquMXt
To: sip:485501406065403210#sip.linphone.org
Contact: <sip:eslamhanafy#192.168.1.4:5080;ob>
Call-ID: FScQI.ot3zfH6qdPis4.zQUw4g.yzDun
CSeq: 5147 INVITE
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Supported: replaces, 100rel, timer, norefersub
Session-Expires: 1800
Min-SE: 90
Content-Type: application/sdp
Content-Length: 446
v=0
o=- 3662793663 3662793663 IN IP4 192.168.1.4
s=pjmedia
b=AS:84
t=0 0
a=X-nat:0
m=audio 4000 RTP/AVP 98 97 99 104 3 0 8 96
c=IN IP4 192.168.1.4
b=TIAS:64000
a=rtcp:4001 IN IP4 192.168.1.4
a=sendrecv
a=rtpmap:98 speex/16000
a=rtpmap:97 speex/8000
a=rtpmap:99 speex/32000
a=rtpmap:104 iLBC/8000
a=fmtp:104 mode=30
a=rtpmap:3 GSM/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:96 telephone-event/8000
a=fmtp:96 0-16
--end msg--
12:41:22.520 pjsua_core.c .TX 513 bytes Request msg REGISTER/cseq=61350 (tdta0x7db55800) to UDP 91.121.209.194:5060:
REGISTER sip:sip.linphone.org SIP/2.0
Via: SIP/2.0/UDP 192.168.1.4:5080;rport;branch=z9hG4bKPjEqa4bpBzv-vnExngLtmsuk5iwICWQ6nq
Max-Forwards: 70
From: <sip:eslamhanafy#sip.linphone.org>;tag=6tsmpbE3RQMQYGV3V4umeMM.U78z5CLt
To: <sip:eslamhanafy#sip.linphone.org>
Call-ID: OMZHw0Zs5Yz7Yjn8qZGr3Oiy2ELIHUh2
CSeq: 61350 REGISTER
Contact: <sip:eslamhanafy#192.168.1.4:5080;ob>
Expires: 300
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Content-Length: 0
--end msg--
12:41:26.520 pjsua_core.c .TX 513 bytes Request msg REGISTER/cseq=61350 (tdta0x7db55800) to UDP 91.121.209.194:5060:
REGISTER sip:sip.linphone.org SIP/2.0
Via: SIP/2.0/UDP 192.168.1.4:5080;rport;branch=z9hG4bKPjEqa4bpBzv-vnExngLtmsuk5iwICWQ6nq
Max-Forwards: 70
From: <sip:eslamhanafy#sip.linphone.org>;tag=6tsmpbE3RQMQYGV3V4umeMM.U78z5CLt
To: <sip:eslamhanafy#sip.linphone.org>
Call-ID: OMZHw0Zs5Yz7Yjn8qZGr3Oiy2ELIHUh2
CSeq: 61350 REGISTER
Contact: <sip:eslamhanafy#192.168.1.4:5080;ob>
Expires: 300
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Content-Length: 0
--end msg--
12:41:30.524 pjsua_core.c .TX 513 bytes Request msg REGISTER/cseq=61350 (tdta0x7db55800) to UDP 91.121.209.194:5060:
REGISTER sip:sip.linphone.org SIP/2.0
Via: SIP/2.0/UDP 192.168.1.4:5080;rport;branch=z9hG4bKPjEqa4bpBzv-vnExngLtmsuk5iwICWQ6nq
Max-Forwards: 70
From: <sip:eslamhanafy#sip.linphone.org>;tag=6tsmpbE3RQMQYGV3V4umeMM.U78z5CLt
To: <sip:eslamhanafy#sip.linphone.org>
Call-ID: OMZHw0Zs5Yz7Yjn8qZGr3Oiy2ELIHUh2
CSeq: 61350 REGISTER
Contact: <sip:eslamhanafy#192.168.1.4:5080;ob>
Expires: 300
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Content-Length: 0
--end msg--
12:41:34.525 pjsua_core.c .TX 513 bytes Request msg REGISTER/cseq=61350 (tdta0x7db55800) to UDP 91.121.209.194:5060:
REGISTER sip:sip.linphone.org SIP/2.0
Via: SIP/2.0/UDP 192.168.1.4:5080;rport;branch=z9hG4bKPjEqa4bpBzv-vnExngLtmsuk5iwICWQ6nq
Max-Forwards: 70
From: <sip:eslamhanafy#sip.linphone.org>;tag=6tsmpbE3RQMQYGV3V4umeMM.U78z5CLt
To: <sip:eslamhanafy#sip.linphone.org>
Call-ID: OMZHw0Zs5Yz7Yjn8qZGr3Oiy2ELIHUh2
CSeq: 61350 REGISTER
Contact: <sip:eslamhanafy#192.168.1.4:5080;ob>
Expires: 300
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Content-Length: 0
--end msg--
12:41:34.588 pjsua_core.c .TX 1079 bytes Request msg INVITE/cseq=5147 (tdta0x7db57000) to UDP 91.121.209.194:5060:
INVITE sip:485501406065403210#sip.linphone.org SIP/2.0
Via: SIP/2.0/UDP 192.168.1.4:5080;rport;branch=z9hG4bKPjwaxGhboJCF8WhuS7G6UQqXVwps0Qo3na
Max-Forwards: 70
From: sip:eslamhanafy#sip.linphone.org;tag=yRJayafQCC9ApjtJuF8-NtAmY8PquMXt
To: sip:485501406065403210#sip.linphone.org
Contact: <sip:eslamhanafy#192.168.1.4:5080;ob>
Call-ID: FScQI.ot3zfH6qdPis4.zQUw4g.yzDun
CSeq: 5147 INVITE
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Supported: replaces, 100rel, timer, norefersub
Session-Expires: 1800
Min-SE: 90
Content-Type: application/sdp
Content-Length: 446
v=0
o=- 3662793663 3662793663 IN IP4 192.168.1.4
s=pjmedia
b=AS:84
t=0 0
a=X-nat:0
m=audio 4000 RTP/AVP 98 97 99 104 3 0 8 96
c=IN IP4 192.168.1.4
b=TIAS:64000
a=rtcp:4001 IN IP4 192.168.1.4
a=sendrecv
a=rtpmap:98 speex/16000
a=rtpmap:97 speex/8000
a=rtpmap:99 speex/32000
a=rtpmap:104 iLBC/8000
a=fmtp:104 mode=30
a=rtpmap:3 GSM/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:96 telephone-event/8000
a=fmtp:96 0-16
--end msg--
12:41:35.015 pjsua_acc.c ...SIP registration failed, status=408 (Request Timeout)
12:41:35.015 pjsua_acc.c ...Scheduling re-registration retry for acc 0 in 6 seconds..
12:41:35.086 pjsua_media.c ....Call 0: deinitializing media..
12:41:36.087 pjsua_aud.c Closing sound device after idle for 1 second(s)
12:41:36.088 pjsua_aud.c .Closing iPhone IO device sound playback device and iPhone IO device sound capture device
12:41:36.097 coreaudio_dev. .core audio stream stopped
12:41:41.818 pjsua_acc.c Acc 0: setting registration..
12:41:41.820 pjsua_core.c ..TX 513 bytes Request msg REGISTER/cseq=57441 (tdta0x7e343400) to UDP 91.121.209.194:5060:
REGISTER sip:sip.linphone.org SIP/2.0
Via: SIP/2.0/UDP 192.168.1.4:5080;rport;branch=z9hG4bKPjwqokNHR5QxIsPICaadyURijMJCPYMq0s
Max-Forwards: 70
From: <sip:eslamhanafy#sip.linphone.org>;tag=j5fAFvbb3pMEy4jUSE8Mvx4OdSl0LR.I
To: <sip:eslamhanafy#sip.linphone.org>
Call-ID: J4IpT-HlM8wWISM6NHokczyuNpJBZ5i.
CSeq: 57441 REGISTER
Contact: <sip:eslamhanafy#192.168.1.4:5080;ob>
Expires: 300
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Content-Length: 0
please any help.
Checking your log I find that you already have an process running on your phone that is already bind at the target UDP port.
15:47:04.750 Pjsua.c : Error creating transport UDP: Address already in use [status=120048]
This line shows that your App cannot allocate the network resource.
Solution 1: Try to reboot your iOS and/or kill all apps related with SIP;
Solution 2: If possible change the UDP port cfg.port = 5080;

Launching Libgdx project to IPhonesimulator

Im trying to make sure my app works on IOS. And doing so by trying to launch it to a IPhonesimulator on my mac.
doing:
./gradlew ios:launchIPhoneSimulator
Makes my app start on the simulator, the standard splashscreen by libgdx appears and then it shuts down and nothing more happends.
But when I build it ./gradlew ios:build ios:launchIPhoneSimulator I get these errors:
2015-06-12 17:39:36.226 IOSLauncher[730:16518] [debug] IOSApplication: iOS version: 8.3
2015-06-12 17:39:36.227 IOSLauncher[730:16518] [debug] IOSApplication: Running in 64-bit mode
2015-06-12 17:39:36.229 IOSLauncher[730:16518] [debug] IOSApplication: scale: 2.0
2015-06-12 17:39:36.347 IOSLauncher[730:16518] [debug] IOSApplication: Unscaled View: Portrait 375x667
2015-06-12 17:39:36.347 IOSLauncher[730:16518] [debug] IOSApplication: View: Portrait 750x1334
2015-06-12 17:39:36.348 IOSLauncher[730:16518] [debug] IOSGraphics: 750.0x1334.0, 2.0
2015-06-12 17:39:37.104 IOSLauncher[730:16518] [debug] IOSGraphics: Display: ppi=264, density=1.65
2015-06-12 17:39:37.631 IOSLauncher[730:16658] 17:39:37.614 ERROR: 98: Error '!obj' trying to fetch default input device's sample rate
2015-06-12 17:39:37.631 IOSLauncher[730:16658] 17:39:37.631 ERROR: 100: Error getting audio input device sample rate: '!obj'
2015-06-12 17:39:37.632 IOSLauncher[730:16658] 17:39:37.632 WARNING: 230: The input device is 0x0; '(null)'
2015-06-12 17:39:37.632 IOSLauncher[730:16658] 17:39:37.632 WARNING: 234: The output device is 0x26; 'AppleHDAEngineOutput:1B,0,1,2:0'
2015-06-12 17:39:37.632 IOSLauncher[730:16658] 17:39:37.632 ERROR: 296: error '!obj'
2015-06-12 17:39:37.632 IOSLauncher[730:16618] 17:39:37.632 ERROR: 296: error -66680
2015-06-12 17:39:37.633 IOSLauncher[730:16518] 17:39:37.632 ERROR: >aurioc> 806: failed: -10851 (enable 2, outf< 2 ch, 44100 Hz, Int16, inter> inf< 2 ch, 0 Hz, Int16, inter>)
2015-06-12 17:39:37.633 IOSLauncher[730:16618] 17:39:37.633 ERROR: 113: * * * NULL AQIONode object
2015-06-12 17:39:37.633 IOSLauncher[730:16518] OAL Error: +[ALWrapper openDevice:]: Could not open device (null)
2015-06-12 17:39:37.633 IOSLauncher[730:16518] OAL Error: -[ALDevice initWithDeviceSpecifier:]: : Failed to create OpenAL device (null)
2015-06-12 17:39:37.635 IOSLauncher[730:16518] OAL Error: +[ALWrapper closeDevice:]: Invalid Value (error code 0x0000a004)
2015-06-12 17:39:37.635 IOSLauncher[730:16618] 17:39:37.635 ERROR: 703: Can't make UISound Renderer
2015-06-12 17:39:37.636 IOSLauncher[730:16518] OAL Warning: -[OALAudioSession onAudioError:]: Received audio error notification, but last reset was 0.377221 seconds ago. Doing nothing.
2015-06-12 17:39:37.636 IOSLauncher[730:16518] OAL Error: -[OALSimpleAudio initWithSources:]: : Could not create OpenAL device
2015-06-12 17:39:37.656 IOSLauncher[730:16518] [error] IOSAudio: No OALSimpleAudio instance available, audio will not be availabe
2015-06-12 17:39:37.944 IOSLauncher[730:16518] [debug] IOSApplication: created
2015-06-12 17:39:39.155 IOSLauncher[730:16658] 17:39:39.155 ERROR: 296: error -66680
2015-06-12 17:39:39.156 IOSLauncher[730:16664] 17:39:39.156 ERROR: >aurioc> 806: failed: -10851 (enable 2, outf< 2 ch, 44100 Hz, Int16, inter> inf< 2 ch, 0 Hz, Int16, inter>)
2015-06-12 17:39:39.157 IOSLauncher[730:16664] OAL Error: +[ALWrapper openDevice:]: Could not open device (null)
2015-06-12 17:39:39.157 IOSLauncher[730:16664] OAL Error: -[ALDevice initWithDeviceSpecifier:]: : Failed to create OpenAL device (null)
2015-06-12 17:39:39.157 IOSLauncher[730:16664] OAL Error: +[ALWrapper closeDevice:]: Invalid Value (error code 0x0000a004)
2015-06-12 17:39:39.157 IOSLauncher[730:16664] OAL Warning: -[OALAudioSession onAudioError:]: Received audio error notification. Resetting audio session.
BUILD SUCCESSFUL
And here´s my IOSLauncher if its to any help..
public class IOSLauncher extends IOSApplication.Delegate {
#Override
protected IOSApplication createApplication() {
IOSApplicationConfiguration config = new IOSApplicationConfiguration();
return new IOSApplication(new MainClass(null,null), config);
}
public static void main(String[] argv) {
NSAutoreleasePool pool = new NSAutoreleasePool();
UIApplication.main(argv, null, IOSLauncher.class);
pool.close();
}
}
You simulator's audio output is borked. The openal audio toolkit is failing init which is causing everything to crash.

only admin can login using ejabberd server in ios

I have setup local xmpp server on my mac using ejabberd. Now I can connect to xmpp server using admin account but can not connect for user. How to solve this issue.
Log for user
SEND: <?xml version='1.0'?>
SEND: <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' to=‘myHostname.com'>
RECV: <stream:stream xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams" id="509633310" from=“myHostname.com" version="1.0" stream1:lang="en"/>
RECV: <stream:features xmlns:stream="http://etherx.jabber.org/streams"><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>PLAIN</mechanism><mechanism>DIGEST-MD5</mechanism><mechanism>SCRAM-SHA-1</mechanism></mechanisms><c xmlns="http://jabber.org/protocol/caps" hash="sha-1" node="http://www.process-one.net/en/ejabberd/" ver="k0acyvEdZQ7cl5uD5FTPoiOnuaw="/><register xmlns="http://jabber.org/features/iq-register"/></stream:features>
iPhoneXMPPAppDelegate: xmppStream:socketDidConnect:
iPhoneXMPPAppDelegate: xmppStreamDidConnect:
SEND: <auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl" mechanism="SCRAM-SHA-1">biwsbj1raXJpdC52YWdoZWxhLHI9RTZDNDlERUQtOEIxRS00REVCLUI5Q0MtRjY0OEQyMEI3MzNC</auth>
RECV: <challenge xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cj1FNkM0OURFRC04QjFFLTRERUItQjlDQy1GNjQ4RDIwQjczM0IrT0NNUjN5bm5sSE1kWmQ0SkUzbFlRPT0scz14VzFOb0wxd3dFV2RhRURGR1B1dlVRPT0saT00MDk2</challenge>
SEND: <response xmlns="urn:ietf:params:xml:ns:xmpp-sasl">Yz1iaXdzLHI9RTZDNDlERUQtOEIxRS00REVCLUI5Q0MtRjY0OEQyMEI3MzNCK09DTVIzeW5ubEhNZFpkNEpFM2xZUT09LHA9WG5PeU4rUjMwL05EV2F0dWsrN3g2MThSRHpBPQ==</response>
RECV: <failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><bad-auth/></failure>
iPhoneXMPPAppDelegate: xmppStream:didNotAuthenticate:
Log for Admin
SEND: <?xml version='1.0'?>
SEND: <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' to='myHostname.com'>
RECV: <stream:stream xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams" id="4147870522" from="myHostname.com" version="1.0" stream1:lang="en"/>
RECV: <stream:features xmlns:stream="http://etherx.jabber.org/streams"><starttls xmlns="urn:ietf:myHostname.comparams:xml:ns:xmpp-tls"/><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>PLAIN</mechanism><mechanism>DIGEST-MD5</mechanism><mechanism>SCRAM-SHA-1</mechanism></mechanisms><c xmlns="http://jabber.org/protocol/caps" hash="sha-1" node="http://www.process-one.net/en/ejabberd/" ver="k0acyvEdZQ7cl5uD5FTPoiOnuaw="/><register xmlns="http://jabber.org/features/iq-register"/></stream:features>
iPhoneXMPPAppDelegate: xmppStream:socketDidConnect:
iPhoneXMPPAppDelegate: xmppStreamDidConnect:
SEND: <auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl" mechanism="SCRAM-SHA-1">biwsbj1hZG1pbixyPTg0REY4NzdELTI1Q0QtNDI5RS05QTk5LURGNUE4RTVFQTEyOQ==</auth>
RECV: <challenge xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cj04NERGODc3RC0yNUNELTQyOUUtOUE5OS1ERjVBOEU1RUExMjlkSXlidUp1bm45T1pSZmFRbndSRW13PT0scz1zYXV3WFg1MUFoSC9lVUxlaDZXdjdRPT0saT00MDk2</challenge>
SEND: <response xmlns="urn:ietf:params:xml:ns:xmpp-sasl">Yz1iaXdzLHI9ODRERjg3N0QtMjVDRC00MjlFLTlBOTktREY1QThFNUVBMTI5ZEl5YnVKdW5uOU9aUmZhUW53UkVtdz09LHA9TGZYTmdJdXZMZmprQW10Tm5KT0FVQmF5MVFVPQ==</response>
RECV: <success xmlns="urn:ietf:params:xml:ns:xmpp-sasl">dj1KVE95ZStNVFp2UU1OYlpZZ0JtWnRVa1pEVHM9</success>
SEND: <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' to='myHostname.com'>
RECV: <stream:stream xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams" id="3937583598" from="myHostname.com" version="1.0" stream1:lang="en"/>
RECV: <stream:features xmlns:stream="http://etherx.jabber.org/streams"><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"/><session xmlns="urn:ietf:params:xml:ns:xmpp-session"/><c xmlns="http://jabber.org/protocol/caps" hash="sha-1" node="http://www.process-one.net/en/ejabberd/" ver="k0acyvEdZQ7cl5uD5FTPoiOnuaw="/><register xmlns="http://jabber.org/features/iq-register"/></stream:features>
SEND: <iq type="set" id="526FD685-D8D6-4A30-BB21-639C46344E0E"><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"/></iq>
RECV: <iq xmlns="jabber:client" id="526FD685-D8D6-4A30-BB21-639C46344E0E" type="result"><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"><jid>admin#myHostname.com/20692733401398173934880752</jid></bind></iq>
SEND: <iq type="set" id="94B351BD-3BB8-4151-B913-F73CA7638C52"><session xmlns="urn:ietf:params:xml:ns:xmpp-session"/></iq>
RECV: <iq xmlns="jabber:client" type="result" id="94B351BD-3BB8-4151-B913-F73CA7638C52"/>
SEND: <iq type="get" id="728B7EE5-9CDA-4736-B600-BAD72EA42251"><query xmlns="jabber:iq:roster"/></iq>
SEND: <presence><x xmlns="vcard-temp:x:update"><photo/></x><c xmlns="http://jabber.org/protocol/caps" hash="sha-1" node="https://github.com/robbiehanson/XMPPFramework" ver="VyOFcFX6+YNmKssVXSBKGFP0BS4="/></presence>
RECV: <iq xmlns="jabber:client" from="admin#myHostname.com" to="admin#myHostname.com/20692733401398173934880752" id="728B7EE5-9CDA-4736-B600-BAD72EA42251" type="result"><query xmlns="jabber:iq:roster"/></iq>
RECV: <presence xmlns="jabber:client" from="admin#myHostname.com/20692733401398173934880752" to="admin#myHostname.com/20692733401398173934880752"><x xmlns="vcard-temp:x:update"><photo/></x><c xmlns="http://jabber.org/protocol/caps" hash="sha-1" node="https://github.com/robbiehanson/XMPPFramework" ver="VyOFcFX6+YNmKssVXSBKGFP0BS4="/></presence>

Resources