mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-11 04:18:21 +00:00
Merge "res_pjsip_pubsub.c: Add useful information to some messages." into 13
This commit is contained in:
@@ -3179,13 +3179,14 @@ int ast_sip_pubsub_generate_body_content(const char *type, const char *subtype,
|
||||
}
|
||||
|
||||
if (strcmp(data->body_type, generator->body_type)) {
|
||||
ast_log(LOG_WARNING, "Body generator does not accept the type of data provided\n");
|
||||
ast_log(LOG_WARNING, "%s/%s body generator does not accept the type of data provided\n",
|
||||
type, subtype);
|
||||
return -1;
|
||||
}
|
||||
|
||||
body = generator->allocate_body(data->body_data);
|
||||
if (!body) {
|
||||
ast_log(LOG_WARNING, "Unable to allocate a NOTIFY body of type %s/%s\n",
|
||||
ast_log(LOG_WARNING, "%s/%s body generator could not to allocate a body\n",
|
||||
type, subtype);
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user