Difference between revisions of "Freeswitch"

From WTFwiki
Jump to navigation Jump to search
m (5 revisions)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Build Instructions ==
+
* Please see the official [http://wiki.freeswitch.org/ FreeSwitch wiki]
  
* [[Freeswitch Build on FreeBSD]]
 
  
== Interesting Hacks ==
+
== Building FreeSWITCH on OpenBSD 4.5/i386 ==
 +
Build not yet completed, but this is the current process:
  
== Contributed Code ==
+
* You '''MUST''' use autoconf 2.59 (untested: 2.60, 2.61; confirmed not working: 2.62)
 +
* You '''MUST''' patch the tree like this:
  
== Doc Links ==
+
  Index: libs/esl/ivrd.c
 
+
  ===================================================================
* [http://www.freeswitch.org/gettingstarted.html Freeswitch: Getting Started Guide]
+
  --- libs/esl/ivrd.c    (revision 14389)
* [http://www.voip-info.org/wiki/view/FreeSwitch+documentation voip-info.org: Documentation]
+
  +++ libs/esl/ivrd.c    (working copy)
* [http://www.voip-info.org/wiki/view/FreeSwitch+FAQ voip-info.org: FreeSwitch FAQ]
+
  @@ -66,7 +66,7 @@
* [http://www.voip-info.org/wiki/view/FreeSwitch+Dialplan voip-info.org: Dialplan]
+
          handle.sock = -1;
* [http://www.voip-info.org/wiki/view/FreeSwitch+XML+Dialplan+Guide voip-info.org: XML Dialplan Guide]
+
          esl_disconnect(&handle);
 
+
       
== Dev Links ==
+
  -      execl(path_buffer, path_buffer, NULL);
 
+
  +      execl(path_buffer, path_buffer, (char *)NULL);
* [http://trac.freeswitch.org/ Freeswitch: Trac]
+
          //system(path_buffer);
 +
          close(client_sock);
 +
          exit(0);
 +
  Index: libs/esl/src/include/esl.h
 +
  ===================================================================
 +
  --- libs/esl/src/include/esl.h  (revision 14389)
 +
  +++ libs/esl/src/include/esl.h  (working copy)
 +
  @@ -34,6 +34,7 @@
 +
  #ifndef _ESL_H_
 +
  #define _ESL_H_
 +
 +
  +#include <sys/types.h>
 +
  #include <stdarg.h>
 +
 +
  #ifdef __cplusplus
 +
  @@ -176,7 +177,6 @@
 +
  #ifndef WIN32
 +
  #include <sys/types.h>
 +
  #include <sys/select.h>
 +
  -#include <netinet/tcp.h>
 +
  #include <sys/signal.h>
 +
  #include <unistd.h>
 +
  #include <ctype.h>
 +
  Index: libs/esl/src/esl.c
 +
  ===================================================================
 +
  --- libs/esl/src/esl.c  (revision 14389)
 +
  +++ libs/esl/src/esl.c  (working copy)
 +
  @@ -32,6 +32,7 @@
 +
    */
 +
 +
  #include <esl.h>
 +
  +#include <netinet/tcp.h>
 +
  #ifndef WIN32
 +
  #define closesocket(x) close(x)
 +
  #endif
 +
 +
  Index: libs/sqlite/src/sqliteInt.h
 +
  ===================================================================
 +
  --- libs/sqlite/src/sqliteInt.h (revision 14389)
 +
  +++ libs/sqlite/src/sqliteInt.h (working copy)
 +
  @@ -61,6 +61,7 @@
 +
  #include "hash.h"
 +
  #include "parse.h"
 +
  #include <stdio.h>
 +
  +#include <stdint.h>
 +
  #include <stdlib.h>
 +
  #include <string.h>
 +
  #include <assert.h>

Latest revision as of 22:45, 4 January 2013


Building FreeSWITCH on OpenBSD 4.5/i386

Build not yet completed, but this is the current process:

  • You MUST use autoconf 2.59 (untested: 2.60, 2.61; confirmed not working: 2.62)
  • You MUST patch the tree like this:
 Index: libs/esl/ivrd.c
 ===================================================================
 --- libs/esl/ivrd.c     (revision 14389)
 +++ libs/esl/ivrd.c     (working copy)
 @@ -66,7 +66,7 @@
         handle.sock = -1;
         esl_disconnect(&handle);
       
 -       execl(path_buffer, path_buffer, NULL);
 +       execl(path_buffer, path_buffer, (char *)NULL);
         //system(path_buffer);
         close(client_sock);
         exit(0);
 Index: libs/esl/src/include/esl.h
 ===================================================================
 --- libs/esl/src/include/esl.h  (revision 14389)
 +++ libs/esl/src/include/esl.h  (working copy)
 @@ -34,6 +34,7 @@
  #ifndef _ESL_H_
  #define _ESL_H_

 +#include <sys/types.h>
  #include <stdarg.h>

  #ifdef __cplusplus
 @@ -176,7 +177,6 @@
  #ifndef WIN32
  #include <sys/types.h>
  #include <sys/select.h>
 -#include <netinet/tcp.h>
  #include <sys/signal.h>
  #include <unistd.h>
  #include <ctype.h>
 Index: libs/esl/src/esl.c
 ===================================================================
 --- libs/esl/src/esl.c  (revision 14389)
 +++ libs/esl/src/esl.c  (working copy)
 @@ -32,6 +32,7 @@
   */

  #include <esl.h>
 +#include <netinet/tcp.h>
  #ifndef WIN32
  #define closesocket(x) close(x)
  #endif

 Index: libs/sqlite/src/sqliteInt.h
 ===================================================================
 --- libs/sqlite/src/sqliteInt.h (revision 14389)
 +++ libs/sqlite/src/sqliteInt.h (working copy)
 @@ -61,6 +61,7 @@
  #include "hash.h"
  #include "parse.h"
  #include <stdio.h>
 +#include <stdint.h>
  #include <stdlib.h>
  #include <string.h>
  #include <assert.h>