Module: sip-router
Branch: master
Commit: d168239a5f8efea45f349296effb439fab2d980a
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=d168239…
Author: Juha Heinanen <jh(a)tutpro.com>
Committer: Juha Heinanen <jh(a)tutpro.com>
Date: Wed Sep 21 21:33:58 2011 +0300
modules_k/presence: fix typo and improved error message
- Fixed typo and improved error message on missing/unsupported event
header field.
---
modules_k/presence/subscribe.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/modules_k/presence/subscribe.c b/modules_k/presence/subscribe.c
index 933a5b4..9db947e 100644
--- a/modules_k/presence/subscribe.c
+++ b/modules_k/presence/subscribe.c
@@ -874,10 +874,11 @@ int handle_subscribe(struct sip_msg* msg, char* str1, char* str2)
bad_event:
- LM_ERR("Missing or unsupported event header field value\n");
-
- if(parsed_event && parsed_event->name.s)
- LM_ERR("\tevent= %.*s\n",parsed_event->name.len,parsed_event->name.s);
+ if (parsed_event && parsed_event->name.s)
+ LM_ERR("Unsupported event header field value %.*s\n",
+ parsed_event->name.len,parsed_event->name.s);
+ else
+ LM_ERR("Missing event header field value\n");
reply_code= BAD_EVENT_CODE;
reply_str= pu_489_rpl;