Laurent_P_
Feb 08, 2006Employee
iRule for RTSP
Hi all,
I'm working on iRule which should do the following .
I have two Virtual Servers :
* One for RTSP traffic on which I setup persistence per source_addr.
* One for HTTP traffic which should connect the user to the same node that handling the RTSP connection.
In order to do so, I wrote the following iRule, expecting that I can query the persistence table and get the IP address of the node processing the RTSP connection. To get the IP of the client, it's only reading an HTTP header containing this value.
Am I right on my expectations ?
when HTTP_REQUEST {
client
set realip [HTTP::header "x-nokia-ip-address"]
set realnode [persist lookup uie $realip]
node $realnode
persist uie $realip
log "Node $realnode for client $realip"
}
Shall either lookup the session table ?
Thanks a lot for your answer.
Regards.