Sip register

Is there a parameter to set in sip.conf in order to say to asterisk ‘don’t ty to register anymore after x unsecessful attempts’? or ?after x seconds’?

defaultexpirey=1800 ;Default length of incoming/outgoing registration
maxexpirey=3600 ;Max length of incoming registration we allow

I’m using asterisk with another sip proxy; when the proxy is up all works fine, but when the proxy is down (because I’m working on it) * continues to send registration messages infinitly.