sig_analog: Allow immediate fake ring to be suppressed.

When immediate=yes on an FXS channel, sig_analog will
start fake audible ringback that continues until the
channel is answered. Even if it answers immediately,
the ringback is still audible for a brief moment.
This can be disruptive and unwanted behavior.

This adds an option to disable this behavior, though
the default behavior remains unchanged.

ASTERISK-30003 #close
Resolves: #118

UserNote: The immediatering option can now be set to no to suppress
the fake audible ringback provided when immediate=yes on FXS channels.

(cherry picked from commit d87abb2ec9)
This commit is contained in:
Naveen Albert
2023-06-08 22:04:31 +00:00
committed by Asterisk Development Team
parent 9e2b9424f5
commit 967e8f6beb
5 changed files with 23 additions and 1 deletions

View File

@@ -299,6 +299,12 @@ struct dahdi_pvt {
* \note Set from the "immediate" value read in from chan_dahdi.conf
*/
unsigned int immediate:1;
/*!
* \brief TRUE if audible ringback should be provided
* when immediate = yes.
* \note Set from the "immediatering" value read in from chan_dahdi.conf
*/
unsigned int immediatering:1;
/*! \brief TRUE if in an alarm condition. */
unsigned int inalarm:1;
/*! \brief TRUE if TDD in MATE mode */