[Asterisk-Users] Haven't got a clue ...
Dan A
dan-asterisk at weirdo.org.uk
Thu Nov 25 02:12:41 MST 2004
On Wednesday 24 November 2004 23:45, Asterisk wrote:
> Thanks for the tips - however, all I want to do is to play the "sound" on
> the failed call back to the caller :
>
> If the called number is busy, I want them to hear the busy tone
> if the called number is out of order, I want them to hear the "3 tone"
> etc etc
>
> How do I do this without having to check for each error and play an
> appropriate file ?
Asterisk 1.0.2 seems to set ${HANGUPCAUSE} to whatever the ISDN hangup cause
was, so you can just do:
[dial-isdn-a]
exten => _0.,1,AgentMonitorOutgoing(n)
exten => _0.,2,CallingPres(0)
exten => _0.,3,SetCIDName(${CALLERIDNAME})
exten => _0.,4,SetCIDNum(555123) ; number changed to protect the guilty!
exten => _0.,5,Dial(Zap/g3/${EXTEN},40)
exten => _0.,6,SetVar(PRI_CAUSE = ${HANGUPCAUSE})
exten => _0.,7,Hangup()
exten => _118.,1,Dial(Zap/g3/${EXTEN},40)
exten => _118.,2,SetVar(PRI_CAUSE = ${HANGUPCAUSE})
exten => _118.,3,Hangup()
I'm fairly new to *, so there may be huge problems with that which I'm not
aware of.
Dan
More information about the asterisk-users
mailing list