From 5690e4a0637009cc166dc88e3edf13957d736c4b Mon Sep 17 00:00:00 2001 From: "Alfred E. Heggestad" Date: Sat, 22 Nov 2014 19:46:46 +0100 Subject: ua: use fixed strings in sip error replies --- src/ua.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src') 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"); } -- cgit v1.2.3