Skip to content

send/receive text message mechanism through MESSAGE message#53

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

send/receive text message mechanism through MESSAGE message#53
dpocock merged 1 commit intoresiprocate:masterfrom
MateusBellomo:mateus-message

Conversation

@MateusBellomo
Copy link
Contributor

changes at resip/recon API to enable send and receive MESSAGE messages.

}
if(!mUserAgent->mDum.getMasterProfile()->isMimeTypeSupported(MESSAGE, mimeType))
{
mUserAgent->mDum.getMasterProfile()->addSupportedMimeType(MESSAGE, mimeType);
Copy link
Member

Choose a reason for hiding this comment

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

we shouldn't do this here in recon, the application developer needs to decide which MIME types they want to support so please remove this

UserAgent::sendMessage(const NameAddr& destination, const Data& msg, const Mime& mimeType)
{
if(!mDum.getMasterProfile()->isMethodSupported(MESSAGE))
{
Copy link
Member

Choose a reason for hiding this comment

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

if MESSAGE wasn't already in the MasterProfile, we wouldn't be able to receive MESSAGE requests. Please log a warning message here when this scenario is detected.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

but this function is for sending messages, it would get here when a MESSAGE is received?

@dpocock dpocock merged commit 28c66d5 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