Exemple #1
0
def updatePhone():
    global ringBell, hookStatus, calling
    if sim800.isringing():
        ringBell = True
        if hookStatus:
            sim800.answer()
    else:
        ringBell = False
        # status == 4 means call in progress
        if ((not hookStatus) and (sim800.getstatus() == 4)):
            sim800.hangup()
            calling = False
Exemple #2
0
def speakervolume():
    sim800.hangup()
Exemple #3
0
def handupcall():
    sim800.hangup()