More complex, but instead of using goto, use Dial to:
local/${forwarder}@from-internal
The dial gives you timeout options. After the dial you can check the value of ${DIALSTATUS} and do something else if value is not ANSWER.
More complex, but instead of using goto, use Dial to:
local/${forwarder}@from-internal
The dial gives you timeout options. After the dial you can check the value of ${DIALSTATUS} and do something else if value is not ANSWER.