Skip to content

Commit

Permalink
Fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewvmail authored Jun 1, 2018
1 parent 620c72f commit ae8ea42
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
Expand Down Expand Up @@ -470,4 +470,4 @@ srf.use(function (err, req, res, next) {
// an error occurred!
});
srf.invite((req, res) => {...});
```
```

0 comments on commit ae8ea42

Please sign in to comment.