Commit dc1f649a authored by antirek's avatar antirek

fix

parent 25415466
...@@ -61,12 +61,15 @@ context.exec('RecieveFax', '/tmp/myfax.tif') ...@@ -61,12 +61,15 @@ context.exec('RecieveFax', '/tmp/myfax.tif')
}); });
``` ```
### context.hangup([callback]) ### context.hangup()
Dispatches the 'HANGUP' AGI command to asterisk. Does __not__ close the sockets automatically. _callback_ is called with the result of the dispatch. Dispatches the 'HANGUP' AGI command to asterisk. Does __not__ close the sockets automatically. _callback_ is called with the result of the dispatch.
```js ```js
context.hangup(); context.hangup()
.then(function(){
//do something
});
``` ```
...@@ -77,7 +80,7 @@ Use ding-dong ...@@ -77,7 +80,7 @@ Use ding-dong
[agi-number-archer](http://github.com/antirek/agi-number-archer) - AGI server for find region code of phone number (Russia) [agi-number-archer](http://github.com/antirek/agi-number-archer) - AGI server for find region code of phone number (Russia)
[lcr-finder](http://github.com/antirek/voicer) - least cost router for Asterisk [lcr-finder](http://github.com/antirek/lcr-finder) - least cost router for Asterisk
## Links ## Links
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment