Allow app_dial to play ‘indication tone while ringing’ back ported to 1.6.2.X

Home » Asterisk Users » Allow app_dial to play ‘indication tone while ringing’ back ported to 1.6.2.X
Asterisk Users No Comments

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: href=”mailto:msharp@bignetworks.com”>msharp@bignetworks.com
web: www.bignetworks.com
https://www.bignetworks.com/exchweb/bin/redir.asp?URL=http://www.bignet
works.com/>