mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
chan_dahdi: Allow specifying waitfordialtone per call.
The existing "waitfordialtone" setting in chan_dahdi.conf
applies permanently to a specific channel, regardless of
how it is being used. This rather restrictively prevents
a system from simultaneously being able to pick free lines
for outgoing calls while also allowing barge-in to a trunk
by some other arrangement.
This allows specifying "waitfordialtone" using the CHANNEL
function for only the next call that will be placed, allowing
significantly more flexibility in the use of trunk interfaces.
Resolves: #472
UserNote: "waitfordialtone" may now be specified for DAHDI
trunk channels on a per-call basis using the CHANNEL function.
(cherry picked from commit 7f51313725
)
This commit is contained in:
committed by
Asterisk Development Team
parent
96a9883722
commit
dad0a33e97
@@ -654,6 +654,14 @@ struct dahdi_pvt {
|
||||
* \note Set from the "waitfordialtone" value read in from chan_dahdi.conf
|
||||
*/
|
||||
int waitfordialtone;
|
||||
/*!
|
||||
* \brief Transient variable. Same as waitfordialtone, but temporarily set for a specific call, rather than permanently for the channel.
|
||||
*/
|
||||
int waitfordialtonetemp;
|
||||
/*!
|
||||
* \brief Transient variable. Stored off waitfordialtone duration at runtime.
|
||||
*/
|
||||
int waitfordialtoneduration;
|
||||
/*!
|
||||
* \brief Number of frames to watch for dialtone in incoming calls
|
||||
* \note Set from the "dialtone_detect" value read in from chan_dahdi.conf
|
||||
|
Reference in New Issue
Block a user