mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
add error logs when receiving a subscribe for conference event package
This commit is contained in:
parent
2a16139e3d
commit
519153278d
1 changed files with 7 additions and 2 deletions
|
|
@ -365,15 +365,20 @@ void LocalConferenceEventHandler::subscribeReceived (LinphoneEvent *lev) {
|
|||
char *addrStr = linphone_address_as_string(lAddr);
|
||||
shared_ptr<Participant> participant = d->conf->findParticipant(Address(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;
|
||||
}
|
||||
|
||||
const LinphoneAddress *lContactAddr = linphone_event_get_remote_contact(lev);
|
||||
char *contactAddrStr = linphone_address_as_string(lContactAddr);
|
||||
Address contactAddr(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;
|
||||
}
|
||||
IdentityAddress gruu(contactAddr);
|
||||
shared_ptr<ParticipantDevice> device = participant->getPrivate()->addDevice(gruu);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue