Chan.Answer(); Chan.AutoService("start"); Chan.AExec("Wait", "5"); Chan.AWait(); Chan.AutoService("stop"); Chan.Hangup();