| < Previous by Date | Date Index | Next by Date > |
| Thread Index |
|
I am been successful in using the API with the help of this
group. Have to two quick questions if you have time to help. I am
using VC 2005 using API version 2.91. 1) Using Wireshark I see that on the response to a REGISTER
there is a field called Portabilling that has my balance. How do I access
this field using sipXtapi? 2) When
making a call in debug mode, my sequence is (there is error checking, etc in
the code – removed here): sipxLineAddCredential(g_hLine, szUsername, szPassword,
szRealm); sipxLineRegister(g_hLine, true); (wait for line register
success event here) sipxCallCreate(g_hInst, g_hLine, &g_hCall); sipxCallConnect(g_hCall, szSipUrl, gContactId); (wait for call connected or
disconnected failure event here) (if connected then wait for
disconnected event here) [Call has disconnected at
this point] sipxCallDestroy(g_hCall); (wait for call destroy event
here) sipxLineRegister(g_hLine, false); (wait for unregister success
here) sipxLineRemove(g_hLine) ; A program exception happens on sipxLineRegister(g_hLine,
false) everytime.
The error is heap corruption detected. Is the above sequence correct? There is no exception on release
build, but if there is heap corruption, it may not show up in release. Any help is appreciated. Thank you, Archie |