Forum Discussion
MichaelJordan_1
Nimbostratus
Jun 18, 2015Trim Mobile Number
Hi
The SMS Company does not accept more than 10 caracters in http request as of MobileNumber. And also they don't accept these "+" sign or "+90". So it should look like "5431231020". This is the...
MichaelJordan_1
Nimbostratus
Jun 18, 2015These are the other iRules I have implemented.
when ACCESS_POLICY_AGENT_EVENT {
set mobile [ACCESS::session data get "session.ad.last.attr.mobile"] log local0. "$mobile"
set mobile [string map {" " ""} $mobile]
set mobile [substr $mobile [expr [string length $mobile] -10 ] ]
ACCESS::session data set "session.logon.last.username" $mobile
unset mobile
}
Even this belov one doesn't work!
when ACCESS_POLICY_AGENT_EVENT { log local0. "Start" }
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