First, use [-code]Your code here[/-code] (remember to delete the '-' there) to wrap your code, that way we can see the code blocks and detect the problem(s) easier
Second, I guess you want to find a way to hang up the ongoing phone call and do some functions after that, right? If you use the quit() function, it will just automatically quit the application, not only the phone call
Hope it helps
if status == telephone.EStatusConnected: #check the status of the call, here is 'connected'
e32.ao_sleep(100, lambda:telephone.hang_up) #hang up after 100s
#if you want to run another function after a specific time, call it after the lambda
number = u'0123456789'
#some functions after that