From 5f29be5acfa130f704a81da01b6ac5f2b9871458 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sat, 26 Mar 2016 20:30:14 +0100 Subject: [PATCH] sip: Actually return after having rejected the new call --- src/sip.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sip.c b/src/sip.c index 32a9264..37162bd 100644 --- a/src/sip.c +++ b/src/sip.c @@ -78,6 +78,7 @@ static void new_call(struct sip_agent *agent, nua_handle_t *nh, LOGP(DSIP, LOGL_ERROR, "No supported codec.\n"); nua_respond(nh, SIP_406_NOT_ACCEPTABLE, TAG_END()); nua_handle_destroy(nh); + return; } nua_respond(nh, SIP_501_NOT_IMPLEMENTED, TAG_END());