Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the relationship between the wetrtc and the jingle ? #25

Closed
godpit opened this issue Apr 11, 2020 · 19 comments
Closed

What is the relationship between the wetrtc and the jingle ? #25

godpit opened this issue Apr 11, 2020 · 19 comments
Assignees

Comments

@godpit
Copy link

godpit commented Apr 11, 2020

What is the relationship between the wetrtc and the jingle ?

Can I use only one of them to complete an audio and video call?

Please help me out! Thanks a lot!

@woj-tek
Copy link
Contributor

woj-tek commented Apr 13, 2020

Jingle is used for "signaling" - that is negotiating who will participate in the call, how to connect it (which IPs and ports) and what audio/video codecs will be use)
WebRTC is used for actual audio/video exchange.

@godpit
Copy link
Author

godpit commented May 15, 2020

However, the logcat:
org.webrtc.Logging: NetworkMonitorAutoDetect: Unable to obtain permission to request a cellular network.

WX20200515-234413@2x

WX20200515-232331@2x

WX20200515-232318@2x

How can i resolve the audio call?

@godpit
Copy link
Author

godpit commented May 15, 2020

And when the audio call was called, the PM Emulator got the error.

WX20200515-232331@2x

@woj-tek
Copy link
Contributor

woj-tek commented May 15, 2020

What is the question? What are you trying to do?

Are you trying to run Stork in the emulator?

"org.webrtc.Logging: NetworkMonitorAutoDetect: Unable to obtain permission to request a cellular network." - it seems that you haven't granted application all required permissions.

@godpit
Copy link
Author

godpit commented May 15, 2020

I tried to debug the audio call with in the emulator. And then something went wrong.

  1. Unable to obtain permission to request a cellular network
  2. When the audio call was called, the PM Emulator got the error.
  3. the Jingle returned the feature_not_supported.

@godpit
Copy link
Author

godpit commented May 15, 2020

And the IscServers : "stun:stun.l.google.com:19302", "stun:stun1.l.google.com:19302",
"stun:stun2.l.google.com:19302", "stun:stun3.l.google.com:19302",
"stun:stun4.l.google.com:19302", "stun:stunserver.org:3478"

I can not telnet the port. Is that why I am in China.

@godpit
Copy link
Author

godpit commented May 15, 2020

The debugging process is like this:
QQ20200516-010217@2x
QQ20200516-010251@2x

But, the jingle has occurred a error on initiateSession, the response stanza such as:

8F:91:65:2D:A5:D7:7F:F5:49:88:C7:20:47:39:06:A9:20:4B:89:F8:10:5C:8D:51:4E:78:C3:7D:60:83:D5:9C8F:91:65:2D:A5:D7:7F:F5:49:88:C7:20:47:39:06:A9:20:4B:89:F8:10:5C:8D:51:4E:78:C3:7D:60:83:D5:9CThe feature is not supported yet.

@hantu85
Copy link
Contributor

hantu85 commented May 15, 2020

Those ports are UDP so telnet will not work. I'm not familiar with China's restrictions related to accessing other servers.

@godpit
Copy link
Author

godpit commented May 15, 2020

Please help me analyze that the Jingle returned the feature_not_supported with initiateSession.
Help me out , thanks a lot!

@hantu85 hantu85 assigned hantu85 and bmalkow and unassigned hantu85 May 15, 2020
@godpit
Copy link
Author

godpit commented May 15, 2020

the tigase-server return the error: "<"error code="501" type="cancel">
"<"feature-not-implemented xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">
"<"text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" xml:lang="en">The feature is not supported yet.
"<"/error>

@woj-tek
Copy link
Contributor

woj-tek commented May 15, 2020

It may happen that China block Google's stun servers - we can't help with that.

501 feature-not-implemented error most likely comes from your other user as Jingle is inherently client-client protocol. In this case its not the Tigase that sent the error but the other client.

@godpit
Copy link
Author

godpit commented May 16, 2020

I started two simulators with stork.It shouldn't have happened.

“<”iq xmlns="jabber:client" from="test1@xmpp.server" id="xWdvv29tr0gIIHIRcQJFEra" type="error" to="test2@xmpp.server/stork">
“<”jingle xmlns="urn:xmpp:jingle:1" initiator="test2@xmpp.server/stork" sid="BS3h3eICwjWj6ElT6lY3s9H" action="session-initiate">
..........

Won't jingle XML go through tigase?

@woj-tek
Copy link
Contributor

woj-tek commented May 16, 2020

I'd recommend checking server logs - whether the message was correctly routed to the other client or not and if not, what was the issue.

@godpit
Copy link
Author

godpit commented May 18, 2020

QQ20200519-004111@2x

The reason for this error is that the recipient's resource is null.

How to resolve it?

@hantu85
Copy link
Contributor

hantu85 commented May 18, 2020

All <iq/> stanzas sent to bare JID (without resource) are responded by the server on behalf of the recipient. The only thing to fix that would be to sent <iq/> to the full JID (with a resource).

@godpit
Copy link
Author

godpit commented May 18, 2020

I know this method, but how to deal with it if it is multi client Online. Will Stork fix this problem?

@hantu85
Copy link
Contributor

hantu85 commented May 18, 2020

That needs to be fixed in the client.

@godpit
Copy link
Author

godpit commented May 18, 2020

Will your stork fix this problem?However, how to solve the another about sending IQ with multi client Online?

@woj-tek
Copy link
Contributor

woj-tek commented May 18, 2020

There are two options:

  • send IQ to all connected clients which you want to ring/call
  • use XEP-0353: Jingle Message Initiation (however, it's not supported by the Stork yet -- we do accept PullRequests though)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants