kelaresg / go-skype-bridge Goto Github PK
View Code? Open in Web Editor NEWA Matrix-Skype puppeting bridge
License: GNU Affero General Public License v3.0
A Matrix-Skype puppeting bridge
License: GNU Affero General Public License v3.0
As stated, the bridge does not honor chats I closed. Everytime I restart the bridge, I have a ton of ancient messages popping up again. Would it be possible it "reopening" only messages that are new since the last shutdown/save?
If you use command login
, your username and password will stay in history of messages (unless you delete that message) and will be synced across all your devices. It would be nice to automatically remove login message like with other bridges.
I configured the bridge and hopefully did everything correct, but the bridge writes this error in the log. The error is returned from the synapse server.
Failed to connect to homeserver: failed to ensure registered: failed to POST /_matrix/client/r0/register: M_UNKNOWN (HTTP 400): An access token should not be provided on requests to /register (except if type is m.login.application_service). Retrying in 10 seconds...
I was playing around with all the values but it seems like there is a hard limit on 200 messenges, not sure why since web-skype seems to support much more then that.
So i was wondering if it would be possible to change this to a much higher limit.
When the other person is typing, I can see this in the chat room of my Matrix client Element, but when I am typing in Element, it does not show that in the Skype App of the other person.
When I write in my Skype App on the other hand, it does show on the other person's Skype App. So the function is not turned off or anything in the other person's Skype App.
Is there anything else I need to set for the typing status to work both ways?
Does it have anything to do with the Provisioning API? I do not know what values are allowed other than shared_secret: disable
. How do I generate the shared_secret
?
Dear developers,
First, let me thank you a lot for this bridge! It has been very useful so far.
However, I am encountering issues at bridge startup (as if the user/password storage in DB introduced in #14 does not work properly): I need to manually regenerate the connection token.
Furthermore, after an umpteenth of these (where all latest conversation pop up all at once in a fantastic notifications firework) it looks like the first messages display in a conversation is unevitably leading to this segfault:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x87a7ea]
goroutine 285 [running]:
maunium.net/go/mautrix/appservice.(*IntentAPI).EnsureJoined(0x0, {0xc000029f50, 0x27})
/opt/go-skype-bridge/go/pkg/mod/github.com/pidongqianqian/[email protected]/appservice/intent.go:70 +0x2a
maunium.net/go/mautrix/appservice.(*IntentAPI).RedactEvent(0x0, {0xc000029f50, 0x27}, {0xc000029f20, 0x2c}, {0x0, 0x0, 0x0})
/opt/go-skype-bridge/go/pkg/mod/github.com/pidongqianqian/[email protected]/appservice/intent.go:226 +0x4b
main.(*MatrixHandler).HandleMessage.func1()
/opt/go-skype-bridge/matrix.go:405 +0x88
created by main.(*MatrixHandler).HandleMessage
/opt/go-skype-bridge/matrix.go:402 +0x2ec
Could you please have a look and see if something requires a bit more attention?
Thanks in advance!
L.F.
when I run the ./build.sh script I got this message
./main.go:238:18: undefined: NewCryptoHelper
If a message contains a HTML escaped character, such as '
, the escaped version will be sent to the matrix home server resulting in some very difficult to understand messages at times, and it appears to also cause messages to vanish from the element iOS app (works fine on desktop)
P.S. great work otherwise though, one less native client I need to have running constantly
when i try to sync my skype contacts I got this error:
[Matrix/Events/ERROR] Panic in Matrix event handler: runtime error: invalid memory address or nil pointer dereference (event content:{"sender":"@myname:mydomain","type":"m.room.message","origin_server_ts":1663655706956,"event_id":"$S0hOADMFVTOMaSF9CsmG6Dc-PsWKnBpyEytGluZGJ0Y","room_id":"!zxMOxSmeNejTSSiOmD:mydomain","content":{"body":"list contacts 1 2","msgtype":"m.text","org.matrix.msc1767.text":"list contacts 1 2"},"unsigned":{"age":172,"m.relations":{"m.annotation":{"chunk":[],"limited":false,"count":0},"m.reference":{"chunk":[],"limited":false,"count":0},"m.replace":{"chunk":[],"limited":false,"count":0}}}}):
Title says everything. When I restart the bridge, (during a server upgrade) the skype bridge does not log back in, even though the password is still stored in the database.
when a stranger (non-friend/contact) sends a message, no event is monitored during the poll rotation, but it can be monitored in web.skype.com.
[Aug 12, 2022 23:55:23] [User/@asdas:mx.grupotd.nat.cu/WARN] Server responded with error creating personal filtering community: failed to POST /_matrix/client/r0/create_group: M_UNRECOGNIZED (HTTP 400): Unrecognized request
[Aug 12, 2022 23:55:23] [User/@ASDasdas:mx.grupotd.nat.cu/WARN] Failed to update user-portal mapping: pq: syntax error at end of input
PD Synapse version: 1.64
Message reactions don't work Skype->Matrix nor Matrix->Skype.
Just for tracking purpose if anybody will be interested to fix it. Also it will be probably related to issue #11 because even message reactions are animated 😒 .
Hello. I did:
./matrix-skype -c config.yaml -g -r registration.yaml
added the path to this registration.yaml
to app_service_config_files
of homeserver.yaml
and restarted the synapse daemon. Then I tried to execute the bridge, but I get:
[Feb 13, 2021 20:01:13] [DEBUG] Checking connection to homeserver
[Feb 13, 2021 20:01:13] [ERROR] Failed to connect to homeserver: failed to GET /_matrix/client/r0/account/whoami: M_FORBIDDEN (HTTP 403): Application service has not registered this user. Retrying in 10 seconds...
I'm wondering how to fix this?
Failed to login: get token err: can not find BinarySecurityToken
App crash few seconds after ask me to activate:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x48 pc=0x982255]
goroutine 43 [running]:
main.(*MatrixHandler).HandleMessage.func1()
/root/bridges/skype/matrix.go:405 +0x55
created by main.(*MatrixHandler).HandleMessage in goroutine 31
/root/bridges/skype/matrix.go:402 +0x2c7
Sending a message to the (automatically added) Bing contact does not work. It just replies with:
Sorry, I am not compatible with older versions of Skype. Please update to the latest Skype for us to talk. Thank you! (smileeyes)
Is there any way to make it work?
Executing build.sh on Ubuntu 22.04 fails with:
go: downloading golang.org/x/text v0.3.6
# maunium.net/go/mautrix/crypto/olm
../../go/pkg/mod/github.com/pidongqianqian/[email protected]/crypto/olm/account.go:4:11: fatal error: olm/olm.h: No such file or directory
4 | // #include <olm/olm.h>
| ^~~~~~~~~~~
compilation terminated.
# github.com/mattn/go-sqlite3
sqlite3-binding.c: In function ‘sqlite3SelectNew’:
sqlite3-binding.c:128049:10: warning: function may return address of local variable [-Wreturn-local-addr]
128049 | return pNew;
| ^~~~
sqlite3-binding.c:128009:10: note: declared here
128009 | Select standin;
| ^~~~~~~
Any suggestion how to fix that would be great.
If someone is sending an emoji in Skype, it is shown in the matrix client as xml.
for example:
:-)
--> <ss type="smile">:-)</ss>
(y)
--> <ss type="yes">(y)</ss>
On the other hand, sending emojis from matrix is working okay, but the animated emojis from Skype need the xml syntax.
Sending the xml stuff leads to a correct presentation on Skype.
From the repo page, it's completely obscure how this bridge can be set up. Wiki doesn't have any info either. Is there any documentation for it? If yes, it would be useful to put some link to it into README.md or if not, at least describe briefly how a Matrix user can connect with a Skype user using the bridge.
Hello,
I finaly made this run. Login works and says it was a success. I see lots of contacts showing. When I accept invite from one I get following error:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x87aa8a]
goroutine 584 [running]:
maunium.net/go/mautrix/appservice.(*IntentAPI).EnsureJoined(0x0, {0xc00037e3f0, 0x24})
/go/pkg/mod/github.com/pidongqianqian/[email protected]/appservice/intent.go:70 +0x2a
maunium.net/go/mautrix/appservice.(*IntentAPI).RedactEvent(0x0, {0xc00037e3f0, 0x24}, {0xc00037e3c0, 0x2c}, {0x0, 0x0, 0x0})
/go/pkg/mod/github.com/pidongqianqian/[email protected]/appservice/intent.go:226 +0x4b
main.(*MatrixHandler).HandleMessage.func1()
/build/matrix.go:405 +0x88
created by main.(*MatrixHandler).HandleMessage
/build/matrix.go:402 +0x2ec
I have to login again.
Thank you.
I use the current version of the go-skype-bridge and connect it to synapse is working so far. But If I try to log in to skype with the login
command I get the error message in my matrix client: login failed, can not find 't' value, orgid is
In the log file is the same message, but without the orgid part:
Failed to login: login failed, can not find 't' value
I checked the login and password, and they are correct, at least it's the same as it is working on skype web.
As negative test, I use a wrong password and get the same message as above.
Using a bad login name leads to this error message:
Please confirm that your account password is entered correctly , orgid is
Maybe interesting: my login name contains the _
character.
I'm trying to use go-skype-bridge but when I run the bridge I got this message
`[ERROR] Failed to connect to homeserver: failed to ensure request read: failed to POST /_matrix/client/r0/register: 404 Not Found
when I visited the link I got this page
{"errcode":"M_UNRECOGNIZED","error":"Unrecognized request"}
can you please help me to fix this issue
thank you
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.