from freeswitch import * def handler(uuid): session = PySession(uuid) session.answer() console_log("INFO", "Hello, world\n") session.hangup("1")