Dial didn't timeout ?!?


I had an outbound call today of 19 hours … For some reason the Dial application didn’t timeout, the logs say I entered in this context:

[globals] ERROR_SIP_PROVIDER=@VoIPProviderOutbound ERROR_DIAL=012345678 [...] [dial-error] exten => s,1,NoOp() same => n(dial),Verbose(1, Dial default: SIP/${ERROR_DIAL}${ERROR_SIP_PROVIDER}) same => n,Set(transferred=SIP/${ERROR_DIAL}${ERROR_SIP_PROVIDER}) same => n,Dial(SIP/${ERROR_DIAL}${ERROR_SIP_PROVIDER},10) same => n,Hangup()

Notice I specified a timeout of 10 seconds followed by a Hangup().

Only when I restarted Asterisk server, the hangup handler was executed and the call was ended.