I was trying to figure out if there is a way to re-route failed calls instead of just hanging up them
I know that there is a specific variable: DIALSTATUS that takes part of the DIAL command, but i dont know how to use it correctly . (Maybe i am wrong…)
exten => s,1,dial(gateway1/${ARG1)
same => n,Gotoif($[${DIALSTATUS} : "CONGESTION|CHANUNAVAIL"])?GATEWAY2
same => n,playtones(busy)
same => n,busy(16)
same => n,Hangup()
same => n(GATEWAY2),Dial(gateway2/${ARG1})