Microsoft Real Time communications Client API SDK
-
I'm successfully making SIP phone calls from PC to PC using the Microsoft RTC Client API SDK. Next I need to register with the Asterisk PBX (www.asterisk.org). To do this I need to write an XML Profile. I have done this, however when I call the CreateProfile command it always fails. Can anyone help please? The MFC and XML I'm using is listed below. TIA Jerry hr = CoInitialize(NULL); hr = CoCreateInstance(__uuidof(RTCClient), NULL, CLSCTX_INPROC_SERVER, __uuidof(IRTCClient2), (LPVOID *)&g_pClient); IRTCClientProvisioning *pIRTCClientProvisioning = NULL; IRTCProfile *pIRTCProfile = NULL; BSTR bstrXMLProfile = gXMLProfile.AllocSysString(); // Perform QI for the Provisioning interface. hr = g_pClient->QueryInterface(IID_IRTCClientProvisioning, reinterpret_cast(&pIRTCClientProvisioning)); hr = pIRTCClientProvisioning->CreateProfile(bstrXMLProfile, &pIRTCProfile); with the following profile gXMLProfile....