<p>Hmmm ... I think there were some changes made to the driver in the last few months that might have changed how the id/_id fields are handled.  Or maybe I was under the wrong impression when I wrote that statement :-|</p>

<p>Anyway, the point is that we want to have a unique field that identifies a record.<br>
As it is now, this field is "id" for sql databases and "_id" for mongo.<br>
If the admin/operator would add an "id" field to the mongo db, then the operator would be responsible for populating the field and ensuring the field uniqueness (and this is what I would like to skip).<br>
That's why I would like to see the the name of the id column to be parametrable.</p>

<p>Same thing would apply to the silo module, but there the table is populated by the module.<br>
If we add an id field - for mongo db, that field will not be populated by the silo module and this will break functionality.<br>
If we make the id column to be _id - via module param, then it should work automatically - assuming that we update the module to handle both int and strings (just like drouting).</p>

<p>We should aim to fix this only in the dev version and leave 1.11 as it is now. What do you think?</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href='https://github.com/OpenSIPS/opensips/issues/173#issuecomment-42198646'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/5479561__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcxNDkyMjE0MCwiZGF0YSI6eyJpZCI6MjY5MjExNTh9fQ==--f95876b003ed7a7354ef9d48e4dbd46efe52c7cc.gif' height='1' width='1'></p>