sip: Actually return after having rejected the new call

This commit is contained in:
Holger Hans Peter Freyther 2016-03-26 20:30:14 +01:00
parent 392313ff73
commit 5f29be5acf
1 changed files with 1 additions and 0 deletions

View File

@ -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());