<p>Sure, here is an example of an aor replicated to registrars_1:</p>
<pre><code>{
  "jsonrpc":  "2.0",
  "result": {
    "AoR":  "example_user@example.com",
    "Contacts": [{
        "Contact":  {
          "Address":  "sip:example_user@212.2.172.228:43356;rinstance=4dc262b9af47682f;transport=UDP",
          "Expires":  98,
          "Q":  -1,
          "Call-ID":  "4HEiFls2hkky2XR6hL8Nrg..",
          "CSeq": 30,
          "User-Agent": "Z 3.15.40006 rv2.8.20",
          "Received": "sip:212.2.172.228:43356",
          "Path": "<sip:10.7.0.186:5062;lr;received=sip:212.2.172.228:43356>",
          "State":  "CS_NEW",
          "Flags":  2,
          "CFlags": 64,
          "Socket": "[not set]",
          "Methods":  -1,
          "Ruid": "uloc-2-5a04296d-4ed0-e1",
          "Instance": "[not set]",
          "Reg-Id": 0,
          "Last-Keepalive": 1510227057,
          "Last-Modified":  1510227057
        }
      }]
  },
  "id": 20184
}
</code></pre>
<p>This aor is being serviced by registrar_2 and I can see the server_id being sent in the kdmq message to registrar_1, server_id is clearly set to 2:</p>
<pre><code>KDMQ sip:usrloc@10.6.0.189:5060 SIP/2.0.
Via: SIP/2.0/UDP 10.6.0.190;branch=z9hG4bK5568.b7ee8e11000000000000000000000000.0.
To: <sip:usrloc@10.6.0.189:5060>.
From: <sip:usrloc@10.6.0.190:5060>;tag=21afb82da9b0dd18e43e09ed8956ffc8-9f49.
CSeq: 10 KDMQ.
Call-ID: 1a806e9948d055d0-20402@10.6.0.190.
Content-Length: 514.
User-Agent: kamailio (Registrar 2).
Max-Forwards: 1.
Content-Type: application/json.
.
{"action":1,"aor":"example_user@example.com","ruid":"uloc-2-5a04296d-4ed0-e1","c":"sip:example_user@212.2.172.228:43356;rinstance=4dc262b9af47682f;transport=UDP","received":"sip:212.2.172.228:43356","path":"<sip:10.7.0.186:5062;lr;received=sip:212.2.172.228:43356>","callid":"4HEiFls2hkky2XR6hL8Nrg..","user_agent":"Z 3.15.40006 rv2.8.20","instance":"","expires":1510227474,"cseq":34,"flags":0,"cflags":64,"q":-1,"last_modified":1510227361,"methods":4294967295,"reg_id":0,"server_id":2}
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/1299#issuecomment-343129653">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZQXk8BM2tEpU3W7GRDKBNGMhkVHpks5s0uSegaJpZM4QPgdU">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZfqVfHMw3Bb7IKx4g9e0mbXyI9zsks5s0uSegaJpZM4QPgdU.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/kamailio/kamailio/issues/1299#issuecomment-343129653"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@00Asgaroth00 in #1299: Sure, here is an example of an aor replicated to registrars_1:\r\n```\r\n{\r\n  \"jsonrpc\":  \"2.0\",\r\n  \"result\": {\r\n    \"AoR\":  \"example_user@example.com\",\r\n    \"Contacts\": [{\r\n        \"Contact\":  {\r\n          \"Address\":  \"sip:example_user@212.2.172.228:43356;rinstance=4dc262b9af47682f;transport=UDP\",\r\n          \"Expires\":  98,\r\n          \"Q\":  -1,\r\n          \"Call-ID\":  \"4HEiFls2hkky2XR6hL8Nrg..\",\r\n          \"CSeq\": 30,\r\n          \"User-Agent\": \"Z 3.15.40006 rv2.8.20\",\r\n          \"Received\": \"sip:212.2.172.228:43356\",\r\n          \"Path\": \"\u003csip:10.7.0.186:5062;lr;received=sip:212.2.172.228:43356\u003e\",\r\n          \"State\":  \"CS_NEW\",\r\n          \"Flags\":  2,\r\n          \"CFlags\": 64,\r\n          \"Socket\": \"[not set]\",\r\n          \"Methods\":  -1,\r\n          \"Ruid\": \"uloc-2-5a04296d-4ed0-e1\",\r\n          \"Instance\": \"[not set]\",\r\n          \"Reg-Id\": 0,\r\n          \"Last-Keepalive\": 1510227057,\r\n          \"Last-Modified\":  1510227057\r\n        }\r\n      }]\r\n  },\r\n  \"id\": 20184\r\n}\r\n```\r\nThis aor is being serviced by registrar_2 and I can see the server_id being sent in the kdmq message to registrar_1, server_id is clearly set to 2:\r\n```\r\nKDMQ sip:usrloc@10.6.0.189:5060 SIP/2.0.\r\nVia: SIP/2.0/UDP 10.6.0.190;branch=z9hG4bK5568.b7ee8e11000000000000000000000000.0.\r\nTo: \u003csip:usrloc@10.6.0.189:5060\u003e.\r\nFrom: \u003csip:usrloc@10.6.0.190:5060\u003e;tag=21afb82da9b0dd18e43e09ed8956ffc8-9f49.\r\nCSeq: 10 KDMQ.\r\nCall-ID: 1a806e9948d055d0-20402@10.6.0.190.\r\nContent-Length: 514.\r\nUser-Agent: kamailio (Registrar 2).\r\nMax-Forwards: 1.\r\nContent-Type: application/json.\r\n.\r\n{\"action\":1,\"aor\":\"example_user@example.com\",\"ruid\":\"uloc-2-5a04296d-4ed0-e1\",\"c\":\"sip:example_user@212.2.172.228:43356;rinstance=4dc262b9af47682f;transport=UDP\",\"received\":\"sip:212.2.172.228:43356\",\"path\":\"\u003csip:10.7.0.186:5062;lr;received=sip:212.2.172.228:43356\u003e\",\"callid\":\"4HEiFls2hkky2XR6hL8Nrg..\",\"user_agent\":\"Z 3.15.40006 rv2.8.20\",\"instance\":\"\",\"expires\":1510227474,\"cseq\":34,\"flags\":0,\"cflags\":64,\"q\":-1,\"last_modified\":1510227361,\"methods\":4294967295,\"reg_id\":0,\"server_id\":2}\r\n```"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1299#issuecomment-343129653"}}}</script>