javascript - Twilio Hangup: charge for call Id -
i'm developing application using twilio , during development have been using following script grab caller id client. working treat until realised if answer call , hangup charged minute. there anyway grab callid without answering during development i'm not charged every time need test code? thoughts appreciated.
app.use(function(req, res) { var resp = new twilio.twimlresponse(); resp.hangup(); var callid = req.body.from res.type('text/xml'); res.send(resp.tostring()); res.end(//send callid); });
colin pickard got it...
resp.reject();
Comments
Post a Comment