Re: How to end outgoing voice call in python

Michal Čihař <[email protected]> Thu, 30 Mar 2017 10:35:23 +0200
Newsgroups gmane.linux.drivers.gammu
Message-ID <[email protected]>
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

-- 
	Michal Čihař | https://cihar.com/ | https://weblate.org/

------------------------------------------------------------------------------
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
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEh+Zzr4P2w6DDRMjD9KoinU1YwkUFAljcw0sACgkQ9KoinU1Y
wkVi4w/8CV3yoCaW4qRS9nnpWLoEv27Z6uzapx9LcwspskAJwMSBNgXXWF+Eii6F
Kema9nlFaqyjN5/cfuXJzRQsoupr3Fa6OAU3nUnI7OI6coMaFzs/bIMP/1SRTIiU
7nV8tlRws43TvfDpZhi7BdpXMS8gqNkHNcpQMx0S0o8fp5sHS3QZoVxB6CZo6NMF
nIfsRq5DcDPS8xf4LvUYmLp4yslLbZfImtMt8lV1GrjvwtUutwuKUl8hzfAJnshc
l4Szpmv0B9D+sRTnd/cNpIsL0NBCHRqbRWMgEqAntvGv0j1ZMa7yq9ekCiw14AQr
45p8902ZCr5Hc+DDsM7jfelct4C4Nunh41jv8XhZlKP86CCXqSi7koHVShmfDDVQ
5TjmDloTR+ub5Tvj5VcZNCJa0FWCy3MzJLR9oKuHiSGUkhafLCD8n4Aqq5u6t8mL
TIFzLy9cHBQWVAwdIAZp3y5/dq+QcejczBXvkOl0CGrMGAkNkkxeUX9VbKwkRUPo
UtmB6ZvpUeqsPlpJXkYQHOGqS5+NEYm9pkUOeGCJEWtFu3geFCz0ODV3YRIPlQai
xkJn802JprACYzqhN9hbex9zSqld4yVIi3LwhSwnq611m7JEN3s1z33zS6sA8jej
nQnhlOeq+lrjR2nw7UQgMuG3tkgi9YM7rBqQoQMbDN/LL8h+yFU=
=IbgI
-----END PGP SIGNATURE-----