Guest User

Untitled

a guest
Jan 23rd, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. c++
  2.  
  3. extern "C" {
  4. include "mtai.h"
  5. }
  6.  
  7. int main(int argc, char *argv[]){
  8. int e = SXInit(SX_LOG_DIR, "./") //this function call works
  9. //e = 0 for success
  10. e = SXOpenPBX(PBX_IP_ADDRESS, "192.168.1.5") //this function call works
  11. //e = 0 for success
  12. }
  13.  
  14. node binding:
  15.  
  16. v8::Handle<v8::Value> Test(v8::Arguments &args) {
  17. int e = SXInit(SX_LOG_DIR, "./") //this function call works
  18. //e = 0 for success
  19. e = SXOpenPBX(PBX_IP_ADDRESS, "192.168.1.5") //this function fails
  20. //e != 0 for failure
  21. }
Add Comment
Please, Sign In to add comment