Forum Discussion
Diego_19194
Nimbostratus
Jul 19, 2007SMTP modify a character in the packet
Hello people,
I have a problem that I need to send a MSISDM in a SMTP packet, but I must to modify the number, it meam remove one number.
Then only option we see is to create an iRule at Big...
Diego_19194
Nimbostratus
Jul 26, 2007Thank you very much.
Now, the parser is working, but I found that when I recieve the answer I need to add the 9, because of the communication with the other server is with 9, if not the answer will be "500 Command unrecognized".
I wrote:
set sdata [TCP::payload]
set digit_nine "9"
set find {(54)([0-9]*)(/TYPE)}
if { [regexp $find $sdata] > 0} {
regsub -all $find $sdata "\\1$digit_nine\\2\\3" sdata
TCP::payload replace 0 [string length $sdata] "$sdata"
}
And the error is "Jul 26 11:35:36 tmm tmm[730]: 01220001:3: TCL error: Rule remove_9_MSISDN - Out of bounds (line 1) invoked from within "TCP::payload replace 0 [string length $sdata] "$sdata"""
I know that this mean that I cannot add a new character in the payload, but then how can I do it?
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects