sip: Actually return after having rejected the new call
This commit is contained in:
parent
392313ff73
commit
5f29be5acf
|
@ -78,6 +78,7 @@ static void new_call(struct sip_agent *agent, nua_handle_t *nh,
|
||||||
LOGP(DSIP, LOGL_ERROR, "No supported codec.\n");
|
LOGP(DSIP, LOGL_ERROR, "No supported codec.\n");
|
||||||
nua_respond(nh, SIP_406_NOT_ACCEPTABLE, TAG_END());
|
nua_respond(nh, SIP_406_NOT_ACCEPTABLE, TAG_END());
|
||||||
nua_handle_destroy(nh);
|
nua_handle_destroy(nh);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
nua_respond(nh, SIP_501_NOT_IMPLEMENTED, TAG_END());
|
nua_respond(nh, SIP_501_NOT_IMPLEMENTED, TAG_END());
|
||||||
|
|
Loading…
Reference in New Issue