]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add locate method
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 8 May 2017 21:15:13 +0000 (16:15 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 8 May 2017 21:15:13 +0000 (16:15 -0500)
libs/libblade/flows/flow1.json

index cc84a21746c2b0a178ac487929a6e9c9c379308d..dec17eb4cdbfcef9292918c83b9739f3d84ea3d7 100644 (file)
@@ -124,6 +124,35 @@ Sec-WebSocket-Protocol: blade-1.0
     }
 }
 
+---> Locate identities holding an api
+// MAYBE ADD SCHEMA and method to fetch it.
+{
+    "jsonrpc": "2.0",
+    "method": "BLADE.locate",
+    "params": {
+       "protocol": "LSAPI",
+       "realm": "ls1.mydomain.com",
+       "session-id": "5b696e8d-9875-45a5-b347-3b9fc288bad3",
+       "master-id": "5164f7f8-a6ca-4dd4-8f36-33db1dc9c35d",
+    },
+    "id": 4.1
+}
+
+
+<--- SUCCESS (TBD FAIL CASE) 
+{
+    "jsonrpc": "2.0",
+    "id": 4.1,
+    "result": {
+       "protocol": "LSAPI",
+       "realm": "ls1.mydomain.com",
+       "sub-realm": null,
+       "targets": ["b9acdce6-3ce6-42db-82fc-39bf37c7a2b1", "5b696e8d-9875-45a5-b347-3b9fc288bad3"],
+       "session-id": "5b696e8d-9875-45a5-b347-3b9fc288bad3",
+       "master-id": "5164f7f8-a6ca-4dd4-8f36-33db1dc9c35d",
+    }
+}
+
 
 
 ---> EXECUTE API