I put newer version r76 on the wxCommunicator website. It contains all patches 
from SIP foundry sipxtapi branch r9799.

changes:
- sipxezphone, checkvmail, placecall, receivecall examples compile and run
- sipxtapi unittests compile and run, tested with stress 30, all tests pass

wxCommunicator has been updated to work with this version. 

There are a few differences between standard sipxtapi and experimental:
- passing by pointer instead of reference (so that it can be used in C programs 
in the future)
- int type instead of bool
- sipxConferenceRemove behaves like sipxCallDestroy, that is, if it succeeds 
call handle is zeroed, check whether your code will work with this!
- sipxAudioGetGain and sipxAudioGetVolume return current system gain/volume, 
not value of internal variable (if possible). Thus if user changes volume 
outside your application, these functions will work properly
- sipxLogEntryAdd can be used by application to write into sipxtapi log file
- sipxKeepaliveCauseToString, sipxKeepaliveEventToString, 
sipxMediaCauseToString, sipxMediaEventToString, sipxSecurityCauseToString, 
sipxSecurityEventToString, sipxSubStatusCauseToString, 
sipxSubStatusStateToString, sipxConfigEventToString don't need a buffer, they 
return a const char*.
- sipxtapi event listeners are automatically removed during uninitialization
- since lot of code was changed, some error return values (SIPX_RESULT) might 
be different

Please run sipxtapi unittests and report any problems. All unittests should 
pass. If you encounter a deadlock (sometimes missing event can be caused by 
deadlock), send me stacktrace of all threads.

To use this version, include sipXtapi.h and sipXtapiEvents.h like before.

I will only maintain this version, as the original one is a mess. Hopefully it 
will be merged into sipxtapi branch soon. Experimental version fixes only bugs 
in current sipxtapi, not in sipxmedialib, sipxtacklib etc, so some bugs you 
encounter will also exist in this version.

Jaro

> I have finished refactoring sipxtapi, now it's time to fix bugs. It's
> available from
> http://sourceforge.net/project/showfiles.php?group_id=194794 as
> sipxtapi-9753-experimental-r66.tar.bz2 . There is also a prebuilt version.
> 
> There were some minor API changes (mostly to make it useful for C programs):
> - parameter passing by & has been removed, instead values are passed by
> pointer *
> - bool type was replaced with int
> - converting event and event cause is now slightly different, functions
> return just const char*, no buffer needs to be supplied
> (sipxSubStatusStateToString, sipxMediaCauseToString etc).
> sipxCallEventToString, sipxEventToString, sipxLineEventToString remained
> the same.
> 
> To name a few internal changes:
> - refactored event system, TapiMgr singleton from sipxtacklib is gone
> - safer locking
> - CpPeerCall and SipConnection use different callIds, which fixes
> problems with conferences
> - conferencing including join/split finally works
> - code was split into separate cpp and h files
> - many bugs fixed
> - many other changes
> 
> Currently, only wxCommunicator works with this version. I haven't tried
> to compile sipxezphone. Unittests were not maintained in this
> experimental version. At weekend, I will try to fix all sipxtapi
> unittests and check that all functions really work and compile a list of
> what doesn't work. This experimental version corresponds to revision
> 9753 from sipxtapi branch.
> 
> Please note that I have only refactored sipxtapi. There were only minor
> changes in other libraries - mostly connected to the event system. So
> bugs that are in sipxtacklib, medialib, calllib are still there.
> 
> There were so many changes in sipxtapi, that your custom patches will
> probably break, and will need to be applied manually.
> 
> Jaro

_______________________________________________
sipxtapi-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/

Reply via email to