Asterisk send keep alives to SIP Provider

My asterisk box register in sip provider some accounts.
For outgoing calls all work fine, but if i stay some minutes with out use of sip provider, i stop to receive incoming calls because my gateway don?t have a connectuin on nat table. So, how i setup asterisk to send keep alives for registered numbers on other provider ??