Forum Discussion

Sreedevi_Gattu_'s avatar
Sreedevi_Gattu_
Icon for Nimbostratus rankNimbostratus
Aug 12, 2013

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

  • 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