mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-02 03:09:23 +00:00
Use linphone_content_* API
This commit is contained in:
parent
dce305f973
commit
a0d26764c0
1 changed files with 5 additions and 6 deletions
|
|
@ -160,14 +160,13 @@ int messagesUnreadCount;
|
|||
const LinphoneContent * content = [[notif.userInfo objectForKey: @"content"] pointerValue];
|
||||
|
||||
if ((content == NULL)
|
||||
|| (strcmp("application", content->type) != 0)
|
||||
|| (strcmp("simple-message-summary", content->subtype) != 0)
|
||||
|| (content->data == NULL)) {
|
||||
|| (strcmp("application", linphone_content_get_type(content)) != 0)
|
||||
|| (strcmp("simple-message-summary", linphone_content_get_subtype(content)) != 0)
|
||||
|| (linphone_content_get_data(content) == NULL)) {
|
||||
return;
|
||||
}
|
||||
|
||||
const char * body = (const char*) content->data;
|
||||
if ((body = strstr(body, "voice-message: ")) == NULL) {
|
||||
const char* body = linphone_content_get_data(content);
|
||||
if ((body = strstr(body, "voice-message: ")) == NULL) {
|
||||
[LinphoneLogger log:LinphoneLoggerWarning format:@"Received new NOTIFY from voice mail but could not find 'voice-message' in BODY. Ignoring it."];
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue