[reSIProcate] SUBSCRIBE callback?
Hi,
I'm a new member of reSiprocate, I'm now developing a SIP softphone
using resiprocate as a SIP stack. I have problems with SUBSCRIBE call
back:
I can't get callback for SUBCRIBE (client) , below is my code:
clientDum->addClientSubscriptionHandler("presence",&subListener);
Data mevent("presence");
int exp_time = 400;
testAppDialogSet *uac = new testAppDialogSet(*(clientDum),
"UAC(SUBSCRIBE)");
SharedPtr<SipMessage> SubscribeMessage =
clientDum->makeSubscription(uasAor, mevent, exp_time, uac);
//SubscribeMessage.header(h_Accepts).push_back( Mime( "application",
"simple-message-summary") );
//SubscribeMessage.header(h_Event).value() = "presence";
clientDum->send(SubscribeMessage);
Did I do something wrong? I used Ethereal to capture the packets:
My Softphone SIPX
X-lite soft phone
F1: -----SUBSCRIBE ----------------> | ----------------------------->
F2: <-------------------------------------- |
<------------------------- 202 Accepted
F3:
<------------------------------------------------------------------------
NOTIFY
F4: 405 Method not allowed -------------------------------------->
Any help appreciated,
DBQ.