Ring timeout with paging

Can someone tell how make ring timeout with “Page” command?
Usually i use Dial command. It’s easy to change dial timeout to 30 seconds here
For example

    exten => _XXX,2,Dial(SIP/${EXTEN},30)

But now i want to limit ringing time in Page command to 30 seconds for example.

    exten => *,2,Page(SIP/334&SIP/335,d)

How can i do this?
Now ringing time is infinite

My extensions.conf

exten => s,1,Answer
exten => s,2,Playback(beep)
exten => s,3,Set(TIMEOUT(digit)=5)
exten => s,4,WaitExten(10)

exten => *,1,SIPAddHeader
exten => *,2,Page(SIP/334&SIP/335,d) 

exten => _XXX,1,SIPAddHeader
exten => _XXX,2,Dial(SIP/${EXTEN},30)


The third option to Page is a timeout so something like the following should work:

exten => *,2,Page(SIP/334&SIP/335,d,30)