Click here to Skip to main content
15,896,726 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Composite Control Pin
Liger_Zero_X7-Feb-05 5:55
Liger_Zero_X7-Feb-05 5:55 
GeneralActive X Pin
racing577-Feb-05 3:36
racing577-Feb-05 3:36 
GeneralNM_CUSTOMBAR returns void, how to use it correctly Pin
bilas7-Feb-05 2:30
bilas7-Feb-05 2:30 
GeneralRe: NM_CUSTOMBAR returns void, how to use it correctly Pin
Michael Dunn7-Feb-05 6:58
sitebuilderMichael Dunn7-Feb-05 6:58 
GeneralShared Folder Access Pin
ashtwin7-Feb-05 2:14
ashtwin7-Feb-05 2:14 
GeneralRe: Shared Folder Access Pin
Antony M Kancidrowski7-Feb-05 2:33
Antony M Kancidrowski7-Feb-05 2:33 
GeneralRe: Shared Folder Access Pin
Rick Crone9-Feb-05 10:58
Rick Crone9-Feb-05 10:58 
GeneralMicrosoft Real Time communications Client API SDK Pin
jerry0davis7-Feb-05 1:46
jerry0davis7-Feb-05 1:46 
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<void **>(&pIRTCClientProvisioning));

hr = pIRTCClientProvisioning->CreateProfile(bstrXMLProfile, &pIRTCProfile);

with the following profile gXMLProfile....

<provision key="5B29C449-29EE-4fd8-9E3F-04AED077690E"
name="Asterisk">
<user account="jmd" />
<sipsrv addr="1.0.1.7"
protocol="udp"
auth="basic"
role="registrar">
<session party="first" type="pc2pc" />
<session party="first" type="pc2ph" />
<session party="first" type="ph2ph" />
</sipsrv>
</provision>
GeneralLearn C++ in 21 Days? I wish! Pin
RicD337-Feb-05 1:15
RicD337-Feb-05 1:15 
GeneralRe: Learn C++ in 21 Days? I wish! Pin
Antony M Kancidrowski7-Feb-05 1:25
Antony M Kancidrowski7-Feb-05 1:25 
GeneralRe: Learn C++ in 21 Days? I wish! Pin
Maximilien7-Feb-05 1:34
Maximilien7-Feb-05 1:34 
GeneralRe: Learn C++ in 21 Days? I wish! Pin
RicD337-Feb-05 1:53
RicD337-Feb-05 1:53 
GeneralRe: Learn C++ in 21 Days? I wish! Pin
Maximilien7-Feb-05 2:28
Maximilien7-Feb-05 2:28 
GeneralRe: Learn C++ in 21 Days? I wish! Pin
RicD337-Feb-05 2:34
RicD337-Feb-05 2:34 
GeneralRe: Learn C++ in 21 Days? I wish! Pin
Maximilien7-Feb-05 2:43
Maximilien7-Feb-05 2:43 
GeneralRe: Learn C++ in 21 Days? I wish! Pin
Bob Ciora7-Feb-05 6:16
Bob Ciora7-Feb-05 6:16 
GeneralRe: Learn C++ in 21 Days? I wish! Pin
V.7-Feb-05 2:54
professionalV.7-Feb-05 2:54 
GeneralRe: Learn C++ in 21 Days? I wish! Pin
RicD337-Feb-05 13:32
RicD337-Feb-05 13:32 
GeneralRe: Learn C++ in 21 Days? I wish! Pin
Cedric Moonen7-Feb-05 3:35
Cedric Moonen7-Feb-05 3:35 
GeneralRe: Learn C++ in 21 Days? I wish! Pin
Wes Aday7-Feb-05 4:45
professionalWes Aday7-Feb-05 4:45 
GeneralRe: Learn C++ in 21 Days? I wish! Pin
RicD337-Feb-05 13:57
RicD337-Feb-05 13:57 
GeneralRe: Learn C++ in 21 Days? I wish! Pin
Wes Aday7-Feb-05 17:45
professionalWes Aday7-Feb-05 17:45 
GeneralRe: Learn C++ in 21 Days? I wish! Pin
RicD338-Feb-05 2:40
RicD338-Feb-05 2:40 
GeneralRe: Learn C++ in 21 Days? I wish! Pin
Anonymous9-Mar-05 13:09
Anonymous9-Mar-05 13:09 
GeneralPostMessage() Pin
includeh107-Feb-05 0:17
includeh107-Feb-05 0:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.