[Kamailio-Users] Having Problem routing an ACK

Iñaki Baz Castillo ibc at in.ilimit.es
Mon Aug 25 15:45:50 CEST 2008


El Monday 25 August 2008 15:30:47 Stagg Shelton escribió:
>  if (has_totag()) {
>                 # sequential request withing a dialog should
>                 # take the path determined by record-routing
>                 if (loose_route()) {
>                         if (is_method("BYE")) {
>                                 setflag(1); # do accouting ...
>                                 setflag(3); # ... even if the transaction
> fails }
>                         route(1);
>                 } else {

Let's test if the ACK for a 200 OK runs correctly in that section of the 
script. Add a xlog:


   if (has_totag()) {
                # sequential request withing a dialog should
                # take the path determined by record-routing
                if (loose_route()) {
			##################
			if method=="ACK" {
				xlog("L_INFO", "-------- I'm an ACK for a 200 OK -------\n");
			}
			##################
                        if (is_method("BYE")) {
                                setflag(1); # do accouting ...
                                setflag(3);
                        }
                        route(1);
                } else {

And test if that xlog appears in the screen output.


-- 
Iñaki Baz Castillo
ibc at in.ilimit.es


More information about the sr-users mailing list