Closed jvb187 closed 3 years ago
can you please share your mapping for SIP call ?
look at this: https://github.com/sipcapture/homer-app/blob/master/migration/jsonschema/jsonschema.go#L319-L323
and activate _from_api, to retrieve the list automaticaly:
"form_api": "/database/node/list",
I updated my mapping to the following:
{
"id": "node",
"name": "Node",
"type": "string",
"index": "none",
"form_type": "multiselect",
"form_default": [
{
"value": "localnode",
"name": "Local node"
}
],
"form_api": "/database/node/list",
"system_param": true,
"mapping": "param.location.node",
"position": 23,
"skip": false,
"hide": false
},
I am still only seeing LocalNode in the Node selection drop down though. Is there something else I have to do to enable the node list api? When I try /api/database/node/list, I get {"message":"Not Found"}.
Thanks, Jeremy
rename form_default to -> "_form_default"
That did it.. thank you!
you are welcome
please star the main homer project as well :-)
I have followed the instructions for multi node setup, and I see the remote connection is successful in the docker logs, however the only node I am ever able to select is the LocalNode in the GUI.
Here is the relevant section of my config:
Here are the logs showing that the RemoteNode was successfully connected:
I then added Nodes to my search proto, but I am only ever able to see and choose LocalNode. Is there some other step that I am missing to have the remote nodes appear in the GUI? I am using the latest docker build (just set this up today for testing).
Thanks, Jeremy