Forum Discussion

Songseajoon_222's avatar
Songseajoon_222
Icon for Nimbostratus rankNimbostratus
Mar 22, 2016

I have a question_Access policy-> AAA Servers-> HTTP

Hi, I'am SeaJoon

 

I Have a question about the APM

 

BIG-IP Version is 11.5.3

 

Access policy -> AAA servers -> HTTP

 

My AD server, the phone number is displayed as "xxx-xxxx-xxxx".

 

However, I have a cell phone number "xxxxxxxxxxx" to be entered in the parameters by SMS Gateway condition.

 

So I use iRule the phone number of the AD server would like to remove the two "-"

 

What should I do?

 

1 Reply

  • Hi SeaJoon,

    Have you attempted anything yet? If so please share how far you are.

    If you have not, then I would suggest after the AD Query then have a variable assign and configure it as follows

    Left Side: Custom Variable = session.custom.phone_text
    
    Right Side: Custom Expression = 
    
    set phone [mcget {session.custom.phone}];  
    set first_digits [string range $phone 0 2]; 
    set middle_digits [string range $phone 4 6]; 
    set last_digits [string range $phone 8 end]; 
    return "$first_digits$middle_digits$last_digits";
    

    You will need to change session.custom.phone to the name of the AD attribute. Then you can use the session.custom.phone_text in the HTTP AAA object.

    -Seth