Commit 51915327 authored by Benjamin REIS's avatar Benjamin REIS

add error logs when receiving a subscribe for conference event package

parent 2a16139e
...@@ -365,15 +365,20 @@ void LocalConferenceEventHandler::subscribeReceived (LinphoneEvent *lev) { ...@@ -365,15 +365,20 @@ void LocalConferenceEventHandler::subscribeReceived (LinphoneEvent *lev) {
char *addrStr = linphone_address_as_string(lAddr); char *addrStr = linphone_address_as_string(lAddr);
shared_ptr<Participant> participant = d->conf->findParticipant(Address(addrStr)); shared_ptr<Participant> participant = d->conf->findParticipant(Address(addrStr));
bctbx_free(addrStr); bctbx_free(addrStr);
if (!participant) if (!participant) {
lError() << "received SUBSCRIBE corresponds to no participant of the conference; " << d->conf->getConferenceAddress().asString() << ", no NOTIFY sent.";
return; return;
}
const LinphoneAddress *lContactAddr = linphone_event_get_remote_contact(lev); const LinphoneAddress *lContactAddr = linphone_event_get_remote_contact(lev);
char *contactAddrStr = linphone_address_as_string(lContactAddr); char *contactAddrStr = linphone_address_as_string(lContactAddr);
Address contactAddr(contactAddrStr); Address contactAddr(contactAddrStr);
bctbx_free(contactAddrStr); bctbx_free(contactAddrStr);
if (contactAddr.getUriParamValue("gr").empty()) if (contactAddr.getUriParamValue("gr").empty()) {
lError() << "received SUBSCRIBE for conference: " << d->conf->getConferenceAddress().asString()
<< "has no GRUU in it's contact address:" << contactAddr.asString() << ", no NOTIFY sent.";
return; return;
}
IdentityAddress gruu(contactAddr); IdentityAddress gruu(contactAddr);
shared_ptr<ParticipantDevice> device = participant->getPrivate()->addDevice(gruu); shared_ptr<ParticipantDevice> device = participant->getPrivate()->addDevice(gruu);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment