[reSIProcate] SUBSCRIBE callback?

Scott Godin slgodin at icescape.com
Thu Mar 15 19:57:10 CDT 2007


Did you call addSupportedMimeType on your Master profile?

Scott

-----Original Message-----
From: resiprocate-devel-bounces at list.resiprocate.org
[mailto:resiprocate-devel-bounces at list.resiprocate.org] On Behalf Of Dien Ba
Quang
Sent: March-15-07 6:10 PM
To: resiprocate-devel at list.resiprocate.org
Subject: [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.
_______________________________________________
resiprocate-devel mailing list
resiprocate-devel at list.resiprocate.org
https://list.resiprocate.org/mailman/listinfo/resiprocate-devel




More information about the resiprocate-devel mailing list