MMCall objects from CallAdded signal

Bob Ham bob.ham at puri.sm
Wed Jul 18 07:17:30 UTC 2018


On 17/07/18 20:47, Aleksander Morgado wrote:

> I would totally suggest you play with this branch instead of master:
> https://gitlab.freedesktop.org/mobile-broadband/ModemManager/tree/aleksander/voice-fixes

Noted, thanks.


>> I also want to set a signal on something that will give me an MMCall
>> object when a new call is created.  There is the "call-added" signal on
>> the MmGdbusModemVoice interface, which MMModemVoice implements.
>> However, this signal only provides a D-Bus object path as an argument
>> and I can't find a way to create an MMCall object from a D-Bus object path.

> Once you have the path to the call object, you can list existing calls
> with mm_modem_voice_list_calls() and get a MMCall when the path
> matches.

Right, I saw that was a possible way to do it but I wanted to avoid it
if possible.


> or even better a more specific
> signal that returns a MMCall instead of the path. Totally open to
> suggestions here.

Yes, I would have expected some signal like that on MMModemVoice.  I'm
not especially bothered about an mm_call_new() as long as the API offers
the objects in appropriate ways.

Not sure I can justify spending time making this change myself at the
moment (got to make a phone call! :-) but perhaps I can help later.


Thanks for your response,

Bob

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/modemmanager-devel/attachments/20180718/de85354d/attachment.sig>


More information about the ModemManager-devel mailing list