chan_pjsip: disallow PJSIP_SEND_SESSION_REFRESH pre-answer execution

This patch makes it so if the PJSIP_SEND_SESSION_REFRESH dialplan function
is called on a channel prior to answering a warning is issued and the
function returns unsuccessful.

ASTERISK-28878 #close

Change-Id: I053f767d10cf3b2b898fa9e3e7c35ff07e23c9bb
This commit is contained in:
Kevin Harwell
2020-08-24 16:26:23 -05:00
committed by Friendly Automation
parent 6d50d152d8
commit 31fbfc5e95
2 changed files with 9 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
Subject: chan_pjsip
The PJSIP_SEND_SESSION_REFRESH dialplan function now issues a warning, and
returns unsuccessful if it's used on a channel prior to answering.