mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
Update API use for linphone_content
This commit is contained in:
parent
170d15b083
commit
311b878a24
1 changed files with 2 additions and 2 deletions
|
|
@ -162,10 +162,10 @@ int messagesUnreadCount;
|
|||
if ((content == 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)) {
|
||||
|| (linphone_content_get_buffer(content) == NULL)) {
|
||||
return;
|
||||
}
|
||||
const char* body = linphone_content_get_data(content);
|
||||
const char* body = linphone_content_get_buffer(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