[Serusers] 487 hop to hop????

Juha Heinanen jh at tutpro.com
Thu Aug 25 18:17:46 CEST 2005

Greg Fausak writes:

 > It seems to me that the ser proxy is responding to the cancel with
 > a 487.  If I had to make it come from the far end can that be  
 > accomplished with ser?

ser is not responding to cancel with 487.  response to cancel is 200
canceling.  487 is sent by uas when it receives a cancel to an invite to
which it has not yet sent a final response.

now the question is what is the proper thing for statefull ser to do,
when uac cancels an invite which is forked by ser to multiple
destinations and some of the branches have already responded with final
non 2xx reply.

currently in failure route ser.cfg sees the lowest numbered reply
whereas ser itself responds to uac with 200 canceling and then with 487.
in my opinion this makes no sense, because it makes failure route think
that a uas was, for example, busy and acts accordingly.  a better
behavior would be if also failure route would see 487 as the final

i'm currently experimenting with the following change to t_reply.c
t_pick_branch to solve this problem:

	for ( b=t->first_branch; b<t->nr_of_outgoings ; b++ ) {
		/* "fake" for the currently processed branch */
		if (b==inc_branch) {
		    if (inc_code == 487) {
		    if (inc_code<lowest_s) {

-- juha

More information about the sr-users mailing list