Forum Discussion
Parsing SIP OPTIONS response
What we have now: A group of SIP proxies are configured for the GTM. GTM monitors these SIP proxies regularly using SIP OPTIONS. A SIP Proxy is considered UP and working (100%) if it responds to SIP OPTIONS with 200 OK. If there is no response, it is considered down.
Following modification is needed: The SIP Proxy will return the "availability factor" (100% available or 75% available or 50% available etc) in the SIP OPTIONS response. Based on the availability factor GTM needs to load balance the SIP traffic to the SIP proxies.
Is it possible for the GTM parse the SIP OPTIONS response and get the availability factor? Is yes, how can this be implemented? I see that iRules has only the following operations - SIP::response code, SIP::response phrase and SIP::response rewrite code
1 Reply
- Nazir_52641
Cirrus
We can get a specific header in iRule but how the iRule will be applied to Monitor I am not aware. To get a specific SIP header say Availablity set avail [SIP::header "Availability]
We can have mapping of server IP to availability using a tcl array
set ::AvailMap("[IP::remote_addr]:[UDP::remote_port] $avail
Based on the AvailMap factor you can decide to load balance.
Thanks Nasir
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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