aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2022-07-18 13:44:42 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2023-03-22 18:45:03 +0100
commitd3820db06b74517d265274428926810c7125f598 (patch)
treeef5ff2c97f76f8cc7e6a7ed5a934127de7ac2ac6
parent74124a8172e6b29336b2506814c8b29855148124 (diff)
drop misleading error messageneels/codecs3
call_sip_create() returns NULL only when memory allocation failed. Do not log "No supported codec", just assert that a call was allocated, like we usually do in such cases. Related: SYS#5066 Change-Id: Id7fd16b92bbd10e886892d0c425cf1bc5d5429cf
-rw-r--r--src/sip.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/sip.c b/src/sip.c
index 97e11b7..b4eb9c8 100644
--- a/src/sip.c
+++ b/src/sip.c
@@ -143,12 +143,7 @@ static void new_call(struct sip_agent *agent, nua_handle_t *nh,
}
call = call_sip_create();
- if (!call) {
- LOGP(DSIP, LOGL_ERROR, "No supported codec.\n");
- nua_respond(nh, SIP_500_INTERNAL_SERVER_ERROR, TAG_END());
- nua_handle_destroy(nh);
- return;
- }
+ OSMO_ASSERT(call);
/* Decode Decode the Global Call Reference (if present) */
if (xgcr_hdr_present) {