diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2022-07-18 13:44:42 +0200 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2023-09-13 22:49:07 +0200 |
commit | da2c2207b2964be213f960aa32f7fd314f3ceeb8 (patch) | |
tree | c961dc4a76c003d7700f2a677a5635f80bb8bcac | |
parent | a6fedff8a67dc8be5b0a56519bf8dc9df8b66426 (diff) |
drop misleading error message
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.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -137,12 +137,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) { |