Passing in parameters does not seem to work with "var session = Session(json);" #4

Open
JustinDupree opened this Issue May 3, 2011 · 0 comments

Comments

Projects
None yet
2 participants
Owner

JustinDupree commented May 3, 2011

Only way we could get it to work:

request.addListener('end', function() {

    var session = JSON.parse(json);
    var tropo = new TropoWebAPI();

    var to = session.session.parameters.numbertodial;
    var name = session.session.parameters.customername;
    var msg = session.session.parameters.msg;

    tropo.call(to);
    tropo.say("OMG " + name + ", " + msg + "!");

    response.end(TropoJSON(tropo));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment