web stats
Get source IP of message in script - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 08-30-2012, 06:35 AM
ors ors is offline
What's HL7?
 
Join Date: Aug 2012
Posts: 2
ors is on a distinguished road
Default Get source IP of message in script

Hello,

I'm trying to use Mirth in order to receive DICOM messages and then redirect them based on their source IP.

I've managed to get Mirth on computer B to receive DICOM messages from computer A and then send them to computer C. What I am missing is an option to redirect the messages based on the source IP. I want some of the messages to go to computer C and the rest to go back to some other port on computer B (where Mirth is).

I figured it can be done somehow through a script that runs during preprocess.

I have a few questions regarding this:
1) How can I get the source IP of a the processed message?
2) How can I change its destination based on that IP?


Many thanks.
Reply With Quote
Reply

Tags
port forwarding, preprocessor, script, source ip

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 11:54 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation