summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorzuul <zuul@gerrit.asterisk.org>2017-01-23 14:07:49 -0600
committerGerrit Code Review <gerrit2@gerrit.digium.api>2017-01-23 14:07:49 -0600
commit697fde39ac1d1b35126819317d5bfbc5b58a6041 (patch)
tree35a78d9dbb2f1d1461f68218c44a70fabfe569b9 /res
parente2da0021b99ace55a36ad5d1a497159a2d077025 (diff)
parentab858295a27b7e7bb6ae028b25d6e16e8ae67076 (diff)
Merge "res_pjsip_pubsub.c: Fix incorrect message string wrapping."
Diffstat (limited to 'res')
-rw-r--r--res/res_pjsip_pubsub.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/res/res_pjsip_pubsub.c b/res/res_pjsip_pubsub.c
index 656539d43..5799379a6 100644
--- a/res/res_pjsip_pubsub.c
+++ b/res/res_pjsip_pubsub.c
@@ -889,8 +889,9 @@ static void build_node_children(struct ast_sip_endpoint *endpoint, const struct
if (PJSIP_IS_STATUS_IN_CLASS(resp, 200)) {
current = tree_node_alloc(resource, visited, 0);
if (!current) {
- ast_debug(1, "Subscription to leaf resource %s was successful, but encountered"
- "allocation error afterwards\n", resource);
+ ast_debug(1,
+ "Subscription to leaf resource %s was successful, but encountered allocation error afterwards\n",
+ resource);
continue;
}
ast_debug(2, "Subscription to leaf resource %s resulted in success. Adding to parent %s\n",
@@ -2574,8 +2575,9 @@ int ast_sip_register_subscription_handler(struct ast_sip_subscription_handler *h
existing = find_sub_handler_for_event_name(handler->event_name);
if (existing) {
- ast_log(LOG_ERROR, "Unable to register subscription handler for event %s."
- "A handler is already registered\n", handler->event_name);
+ ast_log(LOG_ERROR,
+ "Unable to register subscription handler for event %s. A handler is already registered\n",
+ handler->event_name);
return -1;
}
@@ -2775,7 +2777,6 @@ static pj_bool_t pubsub_on_rx_subscribe_request(pjsip_rx_data *rdata)
AST_SIP_USER_OPTIONS_TRUNCATE_CHECK(resource);
expires_header = pjsip_msg_find_hdr(rdata->msg_info.msg, PJSIP_H_EXPIRES, rdata->msg_info.msg->hdr.next);
-
if (expires_header) {
if (expires_header->ivalue == 0) {
ast_log(LOG_WARNING, "Subscription request from endpoint %s rejected. Expiration of 0 is invalid\n",