Changes between Version 32 and Version 33 of FAQ


Ignore:
Timestamp:
Feb 15, 2008 9:21:21 AM (12 years ago)
Author:
bennylp
Comment:

Added TLS on MinGW

Legend:

Unmodified
Added
Removed
Modified
  • FAQ

    v32 v33  
    457457With the above snippet, we just need to call '''call_play_digit()''' every time we need to send inband DTMF digit.  
    458458 
    459 === How Can I Detect Inband Tone == #tone-detect 
     459=== How Can I Detect Inband Tone === #tone-detect 
    460460 
    461461Currently PJMEDIA lacks built-in tone detection routine. But if you you have the routine, it shouldn't be straightforward to integrate it to the framework: 
     
    924924---- 
    925925 
     926== MinGW Specific Questions == 
     927 
     928=== How can I enable SIP TLS Transport on MinGW? === #mingw-tls 
     929 
     930There may be other ways to enable SIP TLS support in MinGW, but I found that these steps are probably the easiest: 
     931 1. Download [http://www.slproweb.com/products/Win32OpenSSL.html OpenSSL Win32 Installer]. Mine is version 0.9.8d. 
     932 1. Install to {{{C:\OpenSSL}}} (you may install to other directory, but this tutorial will refer to {{{C:\OpenSSL}}}) 
     933 1. Make soft link to the OpenSSL MinGW libraries since '''{{{aconfigure}}}''' script expects to find {{{libssl.a}}} and {{{libcrypto.a}}}. With MinGW Bash shell: 
     934    {{{ 
     935      $ cd /c/OpenSSL/lib/MinGW 
     936      $ ln -s libeay32.a libcrypto.a 
     937      $ ln -s ssleay32.a libssl.a 
     938    }}} 
     939 1. Run '''{{{aconfigure}}}''' script with specifying OpenSSL include and lib paths: 
     940    {{{ 
     941      $ cd /your/pjsip/directory 
     942      $ ./aconfigure CFLAGS='-I/c/OpenSSL/include' LDFLAGS='-L/c/OpenSSL/lib/MinGW' 
     943    }}} 
     944 1. In the {{{aconfigure}}} output you may see some warnings about {{{openssl/ssl.h}}}, but I think that can be safely ignored as long as it concludes that OpenSSL installation is available. You should probably see something like these: 
     945    {{{ 
     946      ... 
     947      checking for OpenSSL installations.. 
     948      checking openssl/ssl.h usability... yes 
     949      checking openssl/ssl.h presence... no 
     950      aconfigure: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor! 
     951      aconfigure: WARNING: openssl/ssl.h: proceeding with the compiler's result 
     952      checking for openssl/ssl.h... yes 
     953      checking for SSL_library_init in -lssl... yes 
     954      checking for ERR_load_BIO_strings in -lcrypto... yes 
     955      OpenSSL library found, SSL support enabled 
     956     .. 
     957    }}} 
     958 1. Enable TLS transport in your '''{{{pjlib/include/pj/config_site.h}}}''': 
     959    {{{ 
     960      #define PJSIP_HAS_TLS_TRANSPORT   1 
     961    }}} 
     962 1. Now we can build the project: 
     963    {{{ 
     964     $ make dep 
     965     $ make 
     966    }}} 
     967    
     968 
     969---- 
     970 
    926971== Windows Mobile Specific Questions == 
    927972