Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. Launch the node TCP server for FastAGI:
  2.  
  3. ```
  4. ~$ node path/to/fastagi.js
  5. ```
  6.  
  7. Add a context for FastAGI testing:
  8.  
  9. ```
  10. [fastagi-test]
  11. exten => _5XXX,1,Answer()
  12. exten => _5XXX,n,AGI(agi://127.0.0.1/hello)
  13. exten => _5XXX,n,Hangup()
  14. ```
  15.  
  16. Include this in your default context:
  17.  
  18. ```
  19. include => fastagi-test
  20. ```
  21.  
  22. When you dial a 4-digit extension beginning with 5 the test will execute.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement