Forum Discussion
Pavel_70776
Mar 02, 2012Nimbostratus
Balancing SMPP traffic based on recipient address
Hello,
we have an application sending SMS via SMPP and we need to balance the SMS messages based on recipient address to 2 different SMS Centres. SMS with recipient address starting 420 should go...
Nat_Thirasuttakorn
Nov 24, 2015Employee
Hi Hamdi Fersi,
This iRules should replicate the bind... this part of code should do that
when SERVER_CONNECTED {
if { $first_bind_resp } {
TCP::collect
} else {
TCP::collect -all
TCP::respond $bind_message
}
}
one thing to note, the very first iRules expect bind_transmitter (hex 0x00000002) in your case, it could be bind_transceiver (hex 0x00000009)?
anyway, this part of code record the bind message. you could change it from
switch -glob $oper {
00000002 {
set bind_message [TCP::payload $len]
}
to
switch -glob $oper {
00000002 -
00000009 {
set bind_message [TCP::payload $len]
}
so it will record the message for both type of bind
Nat
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