Forum Discussion

Andrés_85197's avatar
Andrés_85197
Icon for Nimbostratus rankNimbostratus
Mar 16, 2007

v9 irule to v4 conversion

Hi,

 

 

We did de irule below in v9, but we have to deploy it also in v4 boxes.

 

I this that universal persistance is not supported in v.4. Can you advice to re-create it in v.4?

 

 

 

when CLIENT_ACCEPTED {

 

TCP::collect

 

}

 

when CLIENT_DATA {

 

set str "[TCP::payload ]"

 

if { $str contains "AAA" } {

 

set num [ findstr "$str" "AAA:" 7 \n ]

 

}

 

persist uie $num 300

 

TCP::release

 

}

 

 

I think than it could work on this way:

 

 

accumulate

 

if { tcp_content contains "MSISDN"}

 

set num [findstr[tcp_content] "MSISDN:" 7\n]

 

persist simple $num 300

 

discard

 

 

but "findstr" and "set" commands not works in V4

 

 

Thanks

 

 

Andres
No RepliesBe the first to reply