< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index Next in Thread >

Re: [reSIProcate] SUBSCRIBE callback?


Did you call addSupportedMimeType on your Master profile?

Scott

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