Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- c++
- extern "C" {
- include "mtai.h"
- }
- int main(int argc, char *argv[]){
- int e = SXInit(SX_LOG_DIR, "./") //this function call works
- //e = 0 for success
- e = SXOpenPBX(PBX_IP_ADDRESS, "192.168.1.5") //this function call works
- //e = 0 for success
- }
- node binding:
- v8::Handle<v8::Value> Test(v8::Arguments &args) {
- int e = SXInit(SX_LOG_DIR, "./") //this function call works
- //e = 0 for success
- e = SXOpenPBX(PBX_IP_ADDRESS, "192.168.1.5") //this function fails
- //e != 0 for failure
- }
Add Comment
Please, Sign In to add comment