summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlfred E. Heggestad <aeh@db.org>2014-11-22 19:46:46 +0100
committerAlfred E. Heggestad <aeh@db.org>2014-11-22 19:46:46 +0100
commit5690e4a0637009cc166dc88e3edf13957d736c4b (patch)
tree62db876f8e0a57a52325cd1bac3810198d9c4b26 /src
parent16570e0babe5ee7345105bd58a686159b42d8e6d (diff)
ua: use fixed strings in sip error replies
Diffstat (limited to 'src')
-rw-r--r--src/ua.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/ua.c b/src/ua.c
index b4f5f9c..7968688 100644
--- a/src/ua.c
+++ b/src/ua.c
@@ -345,7 +345,7 @@ static void call_event_handler(struct call *call, enum call_event ev,
}
if (err) {
- (void)call_notify_sipfrag(call, 500, "%m", err);
+ (void)call_notify_sipfrag(call, 500, "Call Error");
mem_deref(call2);
}
break;
@@ -1049,7 +1049,7 @@ static void sipsess_conn_handler(const struct sip_msg *msg, void *arg)
const struct sip_hdr *hdr;
struct ua *ua;
struct call *call = NULL;
- char str[256], to_uri[256];
+ char to_uri[256];
int err;
(void)arg;
@@ -1102,8 +1102,7 @@ static void sipsess_conn_handler(const struct sip_msg *msg, void *arg)
error:
mem_deref(call);
- (void)re_snprintf(str, sizeof(str), "Error (%m)", err);
- (void)sip_treply(NULL, uag.sip, msg, 500, str);
+ (void)sip_treply(NULL, uag.sip, msg, 500, "Call Error");
}