diff options
author | Alfred E. Heggestad <aeh@db.org> | 2014-11-22 19:46:46 +0100 |
---|---|---|
committer | Alfred E. Heggestad <aeh@db.org> | 2014-11-22 19:46:46 +0100 |
commit | 5690e4a0637009cc166dc88e3edf13957d736c4b (patch) | |
tree | 62db876f8e0a57a52325cd1bac3810198d9c4b26 /src | |
parent | 16570e0babe5ee7345105bd58a686159b42d8e6d (diff) |
ua: use fixed strings in sip error replies
Diffstat (limited to 'src')
-rw-r--r-- | src/ua.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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"); } |