[context]
exten => _X.,1,ExecIF($["${DB_EXISTS(dial/count)}" = "0"]?Set(DB(dial/count)=0))
same => n,Set(DB(dial/count)=${IF($[${DB(dial/count)} > 24]?1:$[${DB(dial/count)} +1])})
same => n,Dial(SIP/${EXTEN}@sip${DB(dial/count)},,tT))
same => n,Hangup