Esempio n. 1
0
def index(request):
    t = Tropo()
    t.answer(headers={"P-Header":"value goes here","Remote-Party-ID":"\"John Doe\"<sip:[email protected]>;party=calling;id-type=subscriber;privacy=full;screen=yes"})
    t.say('This is your mother. Did you brush your teeth today?')
    json = t.RenderJson() 
    print json
    return json
def index(request):
    t = Tropo()
    t.answer(
        headers={
            "P-Header":
            "value goes here",
            "Remote-Party-ID":
            "\"John Doe\"<sip:[email protected]>;party=calling;id-type=subscriber;privacy=full;screen=yes"
        })
    t.say('This is your mother. Did you brush your teeth today?')
    json = t.RenderJson()
    print json
    return json