[OpenSIPS-Users] Load balancer and CANCEL requests

Peter P GMX Prometheus001 at gmx.net
Wed Sep 23 01:26:37 CEST 2009


Hello,

I am using the load balancer in front of a Freeswitch cluster.
Freeswitch is always in the SIP route.
It handles Registers and Invites quite well.

However CANCEL is not working according to the tutorial in
http://www.opensips.org/index.php?n=Resources.DocsTutLoadbalancing

CANCEL requests are aborted with 405 Method Not Allowed.
I understand that CANCELS should not be balanced as it cannot be forseen
which Freeswitch will receive this CANCEL request, right? Or does the
load balancer handle this correctly based on a call id?

So I tried to allow CANCEL in

 if (!is_method("INVITE") && !is_method("REGISTER")) &&
!is_method("CANCEL")) {
...

This leads to "500 Service full", means some error occured.

Question: How can I handle the CANCEL request correctly?

Best regards
Peter





More information about the Users mailing list