- esl_connect(&handle, "172.16.235.98", 8021, "ClueCon");
+ /* Set some default configuration variables */
+ if (freeswitch_host == NULL)
+ freeswitch_host = FREESWITCH_DEF_HOST;
+
+ if (freeswitch_port == NULL)
+ freeswitch_port = "8021";
+
+ if (freeswitch_password == NULL)
+ freeswitch_password = FREESWITCH_DEF_PASSWORD;
+
+ /* Connect to FreeSWITCH over ESL */
+ DEBUG ("Making ESL connection to %s %s %s\n", freeswitch_host, freeswitch_port, freeswitch_password);
+ esl_connect(&handle, freeswitch_host, atoi(freeswitch_port), freeswitch_password);
+
+ /* Start a seperate thread for incoming events */