Fixed H.239 presentation token release command.
Merged revision(s) 29621-29631 from opal/branches/v3_12:
---------------------
r29631
Fixed opening H.239 presentation channel with correctly formatted OLC.
---------------------
r29629
Fixed opening outgoing secondary (presentation/slides) video channel on SIP.
---------------------
r29623
Fixed minor issue with balloon text in OpenPhone not going away when call goes away.
Merged revision(s) 29633-29635 from opal/branches/v3_12:
Remove H.264-0 for use in H.323 as H.264-1 can back down to packetisation mode zero, unlike SIP which needs two separate media formats.
........
More tweaks for H.239 presentation video stream.
........
Fixed Unix compatibility
Merged revision(s) 29636-29642 from opal/branches/v3_12:
---------------------
r29642
Fixed using Q.931 call deflection if do transfer before H.323 call is established. After ward it is H.450.
---------------------
r29641
Added SIP option "OPAL-Forward-Refer" which uses REFER to do call forwarding rather than a "302 Moved" response.
---------------------
r29640
Added more tracing on error conditions.
---------------------
r29639
Fixed G.722.1 audio codec plug in, account for endian-ness.
Merged revision(s) 29643-29645 from opal/branches/v3_12:
---------------------
r29645
Fixed race condition where on outgoing INVITE, transport interface not yet set correctly, thanks Zdenek Broz
---------------------
r29644
Added missing mutex in local RTP detection, thanks Zdenek Broz
Merged revision(s) 29646-29647 from opal/branches/v3_12:
Fixed dependency between SRTP and SSL.
Merged revision(s) 29648-29664 from opal/branches/v3_12:
---------------------
r29663
Added presence and IM to the "C" API.
---------------------
r29662
Fixed using correct proxy/remote address on all OpalPresentity related SUBSCRIBE messages.
---------------------
r29660
Changed default SIP presence type from "OMA", which is rare, to "Agent", which is most common.
---------------------
r29659
Fixed compile of simpleOPAL after default endpoint port change.
---------------------
r29658
Fixed IAX2 listener start up. Also cleaned up default signalling port function to be consistent across endpoints.
---------------------
r29657
Fixed presence test program after API change 
---------------------
r29656
Fixed empty OpenPhone speed dial entry being added when doing copy and paste.
---------------------
r29654
Changed OpalPresentity PresenceChangeNotifier parameter to to be std::auto_ptr rather than a OpalPresenceInfo value. The latter loses the polymorphism of the calling protocol info.
---------------------
r29652
Backbported tweak for later versions if FFMPEG 
---------------------
r29651
Added bullet proofing to OPAL server shell script
Merged revision(s) 29665-29666 from opal/branches/v3_12:
Added missing functions to "C" API wrapper.
Fixed breakages on Android build
Merged revision(s) 29667-29682 from opal/branches/v3_12:
---------------------
r29681
Fixed backward FFmpeg support, again. 
---------------------
r29680
Fixed building non-late bound FFmpeg/libAV libraries on Linux 
---------------------
r29679
Fixed race/deadlock when setting OpenPhone tray icon from background threads.
---------------------
r29678
Fixed backward compatibility with older FFmpeg. 
---------------------
r29677
Fix returning error on empty NOTIFY that has no Content-Type. Check for if empty body first.
---------------------
r29676
Fixed Contact field when using SIP over TCP. Has to be listener address/port not the local end of the TCP connection.
---------------------
r29674
Removed now unused local copy of inttypes.h
---------------------
r29673
Changed the FFmpeg codec plug ins to use brand new libav 9.5.
---------------------
r29668
Improved presence test in "C" API test application. Added command line arguments to set OpalPresentity attributes.
Fixed link of FFmpeg/libAV codecs on some platforms.
Merged revision(s) 29683-29687 from opal/branches/v3_12:
Removed use of deprecated libAV function.
Fixed URL for libAV DLL zip file in ReadMe.txt.
Fixed detection if internal/eternal Speex DSP in cross compile
Monor fixes to VS2012 build files.
Merged revision(s) 29688-29697 from opal/branches/v3_12:
Changed OpalListenerIP::GetLocalAddress() so never returns INADDR_ANY, as it's return value may be used for SIP Contact addresses.

Fixed OpalListenerUDP::GetLocalAddress so calls OpalListenerIP::GetLocalAddress() if cannot get valid address from socket bundle.
Merged revision(s) 29698-29703 from opal/branches/v3_12:
---------------------
r29703
Fixed support for older FFmpeg version 
---------------------
r29699
Use portable function to get routed IP interface address, not Windows specific one.
Fixed plaug in compile flag (-dynamic) that is not for all platforms.
Merged revision(s) 29704-29707 from opal/branches/v3_12:
Fixed setting of outgoing "Refer-Sub" header in REFER from OPAL_OPT_REFER_SUB string parameter.
Fixed various issues with hard coded default plugin directory, how it was generated and how it was propagated to the C++ code.