DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Make A Phone Call

06.19.2005
| 5295 views |
  • submit to reddit
        py_s60 1.1.3 provide a module to make call
import telephone
telephone.dial('017337330') # so easy
You can hang up by... guess it...
telephone.hang_up()
You can combine this with the contacts module to search and dial
import contacts, telephone
name = 'korakot'
cont = contacts.open().find(name)[0]
number = cont.find('mobile_number')[0].value
telephone.dial(number)