As in:
if (<requesting node's IP address> == 192.168.6.19)then
SendToModality(instanceId, '9-MIM-CD')
end
...where I need to know how to assign <requesting node's IP address> to a variable.
...I read the documentation regarding origin but don't have enough Lua knowledge to grasp it and I cant find anything pertinent on the forum.
Thanks for any help!
Jason McDonald
My problem is much simpler than that. I have a lua auto-routing script that sets orthanc to forward all incoming studies to 2 other DICOM nodes. I need to add code to have it also send to a 3rd node ONLY if the incoming studies are coming from a particular DICOM node, and hoped to use the transmitting DICOM node's IP address to filter the incoming studies for that purpose.
Thanks again,
Jason McDonald
Thanks for your reply! I actually had origin['RemoteIp] at one point, but my problem was I had forgotten to add the origin parameter to the function. Dumb mistake on my part.
Thanks again!
Jason McDonald