Skip to content

send presence mechanism through PUBLICATION message#52

Merged
dpocock merged 1 commit intoresiprocate:masterfrom
MateusBellomo:mateus-publish
Aug 17, 2016
Merged

send presence mechanism through PUBLICATION message#52
dpocock merged 1 commit intoresiprocate:masterfrom
MateusBellomo:mateus-publish

Conversation

@MateusBellomo
Copy link
Contributor

changes at resip/dum, resip/recon and resip/stack APIs to enable sending a PUBLICATION message.


if(method == SUBSCRIBE)
{
mLastRequest->header(h_Accepts).push_back( Mime( "application","pidf+xml") );
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you move this line into resip/dum/SubscriptionCreator.cxx please

@MateusBellomo MateusBellomo force-pushed the mateus-publish branch 6 times, most recently from 91e9d34 to 3e560b1 Compare August 9, 2016 14:53

mLastRequest->header(h_Event).value() = event;
mLastRequest->header(h_Expires).value() = subscriptionTime;
mLastRequest->header(h_Accepts).push_back( Mime( "application","pidf+xml") );
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is not appropriate - you can't add that Accept header to all subscriptions created by DUM.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So is there a specific condition that must be satisfied to add the Accept header?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MateusBellomo remove the change from SubscriptionCreator and try using addSupportedMimeType(NOTIFY, Pidf::getStaticType()) on the MasterProfile in your apps/telepathy code in pull request #53. Does that sound correct @sgodin ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup :)

On Thu, Aug 11, 2016 at 3:33 AM, Daniel Pocock notifications@github.com
wrote:

In resip/dum/SubscriptionCreator.cxx
#52 (comment):

@@ -15,6 +15,7 @@ SubscriptionCreator::SubscriptionCreator(DialogUsageManager& dum,

mLastRequest->header(h_Event).value() = event;
mLastRequest->header(h_Expires).value() = subscriptionTime;
  • mLastRequest->header(h_Accepts).push_back( Mime( "application","pidf+xml") );

@MateusBellomo https://github.com/MateusBellomo remove the change from
SubscriptionCreator and try using addSupportedMimeType(NOTIFY,
Pidf::getStaticType()) on the MasterProfile in your apps/telepathy code
in pull request #53 #53.
Does that sound correct @sgodin https://github.com/sgodin ?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/resiprocate/resiprocate/pull/52/files/3e560b1c7f1fd67ba053d282961fd40561059262#r74378435,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACtNUV1kSOkmVGpqZawOGsouTDfJ2WZ0ks5qetBdgaJpZM4JYfsi
.

/* ====================================================================

Copyright (c) 2007-2008, Plantronics, Inc.
Mateus Bellomo (mateusbellomo AT gmail DOT com) https://mateusbellomo.wordpress.com/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MateusBellomo please start this line with "Copyright (C) 2016, " before your name, same for the hxx file

@dpocock dpocock merged commit 0b03878 into resiprocate:master Aug 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants