Asterisk Realtime Trunk

Hi all,

I have asterisk pbx that has 100 phones registered in it. I am trying to turn it to realtime that all sip configuration will be in mysql database. The problem is that i will register to the voip provider like below code.

register=>90850XXXXXXX:a342sdd@212.58.XX.XXX/90850XXXXXXX

How can i push this code to the sip realtime database? and can you give some example sip trunking over realtime asterisk?