sipsess: do not send SIP INFO if dialog not established

This commit is contained in:
Alfred E. Heggestad 2013-11-20 19:59:08 +00:00
parent 138394ed86
commit b2b33d7e01

View file

@ -107,6 +107,9 @@ int sipsess_info(struct sipsess *sess, const char *ctype, struct mbuf *body,
if (!sess || sess->terminated || !ctype || !body)
return EINVAL;
if (!sip_dialog_established(sess->dlg))
return ENOTCONN;
err = sipsess_request_alloc(&req, sess, ctype, body, resph, arg);
if (err)
return err;