sipsess: do not send SIP INFO if dialog not established
This commit is contained in:
parent
138394ed86
commit
b2b33d7e01
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue