diff options
author | Alfred E. Heggestad <alfred.heggestad@gmail.com> | 2017-09-10 21:46:43 +0200 |
---|---|---|
committer | Alfred E. Heggestad <alfred.heggestad@gmail.com> | 2017-09-10 21:47:23 +0200 |
commit | bd07501cded99bd4c6d7a763b94d695fc628806d (patch) | |
tree | 6af496dfaf343893753a85275abcba22f42a3022 /test/sip | |
parent | 8fa77415960bc6811715e6182bfc2fe4ef434f67 (diff) |
use warning() instead of error()
Diffstat (limited to 'test/sip')
-rw-r--r-- | test/sip/sipsrv.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/sip/sipsrv.c b/test/sip/sipsrv.c index ce1d562..374ea3b 100644 --- a/test/sip/sipsrv.c +++ b/test/sip/sipsrv.c @@ -61,7 +61,7 @@ static bool handle_register(struct sip_server *srv, const struct sip_msg *msg) } sip_reply(sip, msg, 500, strerror(err)); - error("domain find error: %s\n", strerror(err)); + warning("domain find error: %s\n", strerror(err)); return true; } @@ -98,7 +98,7 @@ static bool handle_register(struct sip_server *srv, const struct sip_msg *msg) default: sip_reply(sip, msg, 500, strerror(err)); - error("domain error: %s\n", strerror(err)); + warning("domain error: %s\n", strerror(err)); return true; } @@ -107,14 +107,14 @@ static bool handle_register(struct sip_server *srv, const struct sip_msg *msg) if (err) { if (err != ENOENT) { sip_reply(sip, msg, 500, strerror(err)); - error("aor find error: %s\n", strerror(err)); + warning("aor find error: %s\n", strerror(err)); return true; } err = aor_create(srv, &aor, &msg->to.uri); if (err) { sip_reply(sip, msg, 500, strerror(err)); - error("aor create error: %s\n", strerror(err)); + warning("aor create error: %s\n", strerror(err)); return true; } } @@ -159,7 +159,7 @@ static bool handle_register(struct sip_server *srv, const struct sip_msg *msg) if (err) { sip_reply(sip, msg, 500, strerror(err)); if (err != EPROTO) - error("location update error: %s\n", + warning("location update error: %s\n", strerror(err)); goto fail; } |