Closed telent closed 2 years ago
local GV = lgi.GLib.VariantType
This is wrong, should be lgi.GLib.Variant
Hi there, I'm not familiar with ModemManager, but you should be able to pass a value with the correct signature.
AFAICS CreateCall's signature is
CreateCall (IN a{sv} properties, OUT o path);
So doing something like
local GLib = require("lgi").GLib
local GVariant = GLib.Variant
local properties = {Number = GVariant("s", "123")}
as you seem to be doing. Should work.
Having the full stack trace might help.
This may well just be my lack of understanding of DBus. I'm trying to make a voice call using ModemManager, but not getting very far. I pass it
{Number = "+15005550002"}
and it reports an errorI also tried
voice():CreateCall({Number = GV("s","+15005550002")})
but that gives me(GLib.Variant expected, got userdata)
What am I doing wrong? All help gratefully received
Here's the full script, though I don't know if you'll need a modem installed to replicate it.
PS not a real phone number, it comes from https://www.twilio.com/docs/iam/test-credentials#test-calls