Forum Discussion
Raymond_Feng_97
Apr 20, 2005Historic F5 Account
How to use irules to do SIP outbounding proxy?
Hi, everyone
I am trying to do SIP proxy server loadbalance. By now, we can do loadbalance for inbound SIP request, I mean , from the client to the proxy server , just using SIP persistant....
kapil_49150
Nimbostratus
Sep 11, 2009I am trying to achieve SIP session based load balancing using LTM while server is acting as B2BUA.
The call flow that I would like to load balance is as following:
a. client A sends SIP request to LTM. LTM picks up Server X to forward request to.
b. Server X forwards request back to LTM to deliver SIP request to client B.
c. Client B send SIP response to LTM. LTM need to forward thus received SIP response to Server X.
d. Server X forwards back SIP response to LTM to deliver SIP response to client A.
Similarly, when a new SIP request is initiated by Client B then LTM forwards it to Server Y (based on least connections being used) and rest of call flow is same as above.
I started of trying to achieve the above call flow by using the iRules provided by you. I added couple of iRules for SIP_RESPONSE event (very similar to your iRules for SIP_REQUEST event) for outgoing (to add to session) and in incoming (lookup for session).
But I am running into issues with handling of SIP_RESPONSE events:
a. I do not think SIP_RESPONSE event is invoked during outgoing. LTM seems to be dropping SIP response packet received from Server.
b. I see TCL error thrown by LTM while processing SIP_RESPONSE event invoked during incoming. But I do see the SIP response packet getting delivered to Server. Find below generated TCL error:
Prerequisite operation not in progress line 4 invoked from within session lookup uie [SIP::call_id] any virtual
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
