Re: How to end outgoing voice call in python

Sylvain <[email protected]> Thu, 30 Mar 2017 11:24:05 +0200
Newsgroups gmane.linux.drivers.gammu
Message-ID <[email protected]>
Le 30/03/2017 à 10:35, Michal Čihař a écrit :
> Hi
>
> Sylvain píše v St 29. 03. 2017 v 18:29 +0200:
>> I'm trying to make a program in python using gammu 1.37.4 installed
>> on
>> ubuntu 16.04. The device I use is a Huawei E180 modem.
>>
>> I'm able to start a voice call with dialVoice, but I can't figure
>> out
>> how to stop or hang-up the call. I tried with Abort and Terminate but
>> it
>> doesn't work, my program continues but the voice call is still
>> active.
>> Almost all call related functions are for incoming calls.
>>
>> Is it doable in python? Any pointers?
> CancelCall should do that:
>
> https://wammu.eu/docs/manual/python/gammu.html#gammu.StateMachine.Cance
> lCall
>
I tried but it requires the ID of the call as parameter but DialVoice 
only returns None. I see a lot of functions that use the ID of the call 
as parameter but none that returns it. How can I get the call ID?

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gammu-users mailing list - https://lists.sourceforge.net/lists/listinfo/gammu-users