Asterisk Realtime systemname

Hi All,

Using Asterisk Realtime with sip peers in mysql database, I need to know on which server has actually registered some extension, so from the documentation I found for that I should set rtsavesysname=yes in sip.conf and systemname variable in asterisk.conf. Setting those variables - solved my problem and I have filled regserver column in the database with corresponding server. But, the problem is that by setting those variables is changing and UNIQUEID variable - containing systemname+uniqueid, is there any way to get UNIQUEID variable without systemname?
Thank You

Without the system name prefix, there is a small chance that uniqueid will not actually be unique!