Debugging sipXtapi with .NET

From SIPfoundry sipx, The Open Source SIP PBX for Linux - Calivia

Jump to: navigation, search

[edit] How to debug sipXtapi through a .NET application

Here I have 2 VS2005 solutions open

  • One for SIPXTAPI
  • One for my .NET project (using SIPXTAPI).


  1. Make sure you are compiling SIPXTAPI with DEBUG turned on.
  2. Copy SIPXTAPID.DLL and SIPXTAPID.MAP to your .NET project BIN directory.
  3. Run your .NET project. Make sure it loads the Debug DLL (sipxtapiD.dll)
  4. Go to the open Visual Studio instance for the SIPXTAPI solution
  5. Set your sipxtapi breakpoints wherever you need
  6. Select DEBUG / ATTACH TO PROCESS
  7. Make sure it's attaching to NATIVE-CODE (not MANAGED-CODE)
  8. Select your .NET program (that should be running) and click the ATTACH button.


That's all folks ;)

(Taken from user stipus on the sipXtapi-dev mailing list)
Personal tools