From ae8ea4283827bf6a0bf8b23a68a21994c86a39ad Mon Sep 17 00:00:00 2001 From: momoterraw Date: Fri, 1 Jun 2018 14:41:47 -0700 Subject: [PATCH] Fix docs Signature is a bit different than http://davehorton.github.io/drachtio-srf/api/Srf.html#proxyRequest ? --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 885e80e..eae21be 100644 --- a/README.md +++ b/README.md @@ -378,16 +378,16 @@ srf.invite((req, res) => { srf.proxyRequest(req, res); // proxy to a specified destination - srf.proxyRequest( req, res, 'sip:next.hop.com'); + srf.proxyRequest( req, 'sip:next.hop.com'); // lots of options available, // plus a callback to indicate success if needed - srf.proxyRequest( req, res, ['sip:try.this.com', 'sip:try.that.com'], { + srf.proxyRequest( req, ['sip:try.this.com', 'sip:try.that.com'], { recordRoute: true, forking: 'sequential', followRedirects: true, provisionalTimeout: '2s', - finalTimeout: '20s' + finalTimeout: '20s', headers: { Subject: 'my subject header' } @@ -470,4 +470,4 @@ srf.use(function (err, req, res, next) { // an error occurred! }); srf.invite((req, res) => {...}); -``` \ No newline at end of file +```