Cannot execute Dial three times

Hi,

Asterisk version 16.13.0

I am trying to call Dial application 3 times in dialplan. Dialplan pasted below…

[test-dial]
exten => s,n,Dial(IAX2/trunk1/0${number},30)
exten => s,n,Dial(IAX2/trunk1/0${number},30)
exten => s,n,Dial(IAX2/trunk1/0${number},30)   <==== Asterisk not executing this
exten => s,n,Hangup()

But asterisk in not executing third dial statement and hangup call. Is there hard limit set in Asterisk for Dial execution limit on single channel?

Please help me to understand this issue.

Thanks,
Jay

There is no hard limit. This sounds more likely to be an upstream timeout (of typically 20 seconds). What do the logs show? Please make sure that you take them from the log files not the console screen, as timing is likely to be important.