Explorar o código

topos: BYE sent by caller before call was connected was badly managed
regression introduced by patch 091dc9a76bcec5c8a4bc73e863ed10b1b9d76c92
topos: fix early-dialog b-side UPDATE requests routing (GH #3437)

frederic hai 1 ano
pai
achega
9898c58609
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/modules/topos/tps_msg.c

+ 1 - 1
src/modules/topos/tps_msg.c

@@ -962,7 +962,7 @@ int tps_request_received(sip_msg_t *msg, int dialog)
 		LM_DBG("use branch for routing information, request from direction "
 			   "%d\n",
 				direction);
-		if(tps_reappend_route(msg, &stsd, &stsd.s_rr, 1) < 0) {
+		if(tps_reappend_route(msg, &stsd, &stsd.s_rr, (direction == TPS_DIR_UPSTREAM) ? 0 : 1) < 0) {
 			LM_ERR("failed to reappend s-route\n");
 			return -1;
 		}