res_pjsip_notify: Add option support for AMI.

The PJSIP notify CLI commands allow for using
"options" configured in pjsip_notify.conf.

This allows these same options to be used in
AMI actions as well.

Additionally, as part of this improvement,
some repetitive common code is refactored.

ASTERISK-30263 #close

Change-Id: Ie4496b322b63b61eaf9672183a959ab99a04b6b5
This commit is contained in:
Naveen Albert
2022-10-14 22:24:00 +00:00
committed by George Joseph
parent c32b39d123
commit 40b52322e5
2 changed files with 102 additions and 67 deletions

View File

@@ -0,0 +1,4 @@
Subject: res_pjsip_notify
Allows using the config options in pjsip_notify.conf
from AMI actions as with the existing CLI commands.