[Asterisk-Users] BUSY-tone on incoming calls?

Tobias Jönsson asterisk at tobiasjonsson.se
Tue Jan 25 06:20:40 MST 2005


On Tue, 25 Jan 2005, Eric Wieling wrote:

>> You can set a PRI_CAUSE variable. See 
>> http://www.voip-info.org/tiki-index.php?page=Asterisk%20variable%20PRI_CAUSE
>
> This only works in CVS-HEAD.  For production use just run Busy() in the 
> dialplan.

No, PRI_CAUSE works great at least in 1.0.2, probably in the earlier 1.0 
releases too. Busy() may play a busy tone to the caller instead of 
signalling busy so using PRI_CAUSE is much better in PRI or BRI 
environment.

exten => 123437,1,Dial(Zap/g2/37,26,tg)
exten => 123437,2,GotoIf($[${DIALSTATUS} = BUSY]?110:3)
exten => 123437,3,Answer
exten => 123437,4,Wait(1)
exten => 123437,5,Voicemail(su21)
exten => 123437,6,Hangup
exten => 123437,110,SetVar(PRI_CAUSE=17)
exten => 123437,111,Hangup

-- 
Regards,
Tobias Jönsson, Lund SE


More information about the asterisk-users mailing list