[asterisk-users] [backport] Allow app_dial to play 'indication tone while ringing' back ported to 1.6.2.X
Mitch Sharp
MSharp at BIGNetworks.com
Thu Nov 4 18:24:06 CDT 2010
I have back ported the 'r' feature for app Dial from 1.8.0 to 1.6.2.X.
The link to the diff is below.
http://files.bluecrow.net/asterisk/backports/1.6.2/asterisk-1.6.2.4-app_
dial-play-indications.diff
I made the diff against 1.6.2.4 and later patched a 1.6.2.13 system.
All hunks passed.
I have this running on two production 1.6.2.X systems with no problems
yet.
The original code from the review board is here:
https://reviewboard.asterisk.org/r/448/
We use it to let the caller know if the extension being called is INUSE
using the following excerpts:
indications.conf:
[us]
ringinuse = 440+480/400,0/200,440+480/400,0/2000
extensions.conf:
[macro-stdexten-v3]
.
.
same => n,ExecIf($["${DIALTIME}" = ""]?Set(DIALTIME=${DEFAULTDIALTIME}))
.
same => n,ExecIf($["${DIALARGS}" = ""]?Set(DIALARGS=${DEFAULTDIALARGS}))
.
same => n,Set(DEVICES=${ARG4}
.
same =>
n(checkdevicestate),ExecIf($["${DEVICE_STATE(${CUT(DEVICES,&,1)})}" =
"INUSE"]?Set(DIALARGS=${DIALARGS}r(ringinuse)))
same => n(dialext),Dial(${DEVICES},${DIALTIME},${DIALARGS})
.
.
Hope this helps someone.
Mitch Sharp
BIG Networks
5647 Galeria Drive, Suite D
Baton Rouge, LA 70816
tel: 225.214.1444 x101
fax: 225.214.1443
email: msharp at bignetworks.com <mailto:msharp at bignetworks.com>
web: www.bignetworks.com
<https://www.bignetworks.com/exchweb/bin/redir.asp?URL=http://www.bignet
works.com/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20101104/b247b54c/attachment.htm
More information about the asterisk-users
mailing list