Explorar o código

RecordRouter header is also copied now from request into response

Bogdan-Andrei Iancu %!s(int64=23) %!d(string=hai) anos
pai
achega
a98c048707
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      msg_translator.c

+ 2 - 0
msg_translator.c

@@ -654,6 +654,7 @@ char * build_res_buf_from_sip_req( unsigned int code, char *text,
 			case HDR_FROM:
 			case HDR_CALLID:
 			case HDR_CSEQ:
+			case HDR_RECORDROUTE:
 				len += ((hdr->body.s+hdr->body.len )-hdr->name.s )+CRLF_LEN;
 		}
 	/*lumps length*/
@@ -730,6 +731,7 @@ char * build_res_buf_from_sip_req( unsigned int code, char *text,
 			case HDR_FROM:
 			case HDR_CALLID:
 			case HDR_CSEQ:
+			case HDR_RECORDROUTE:
 				append_str_trans( p, hdr->name.s ,
 					((hdr->body.s+hdr->body.len )-hdr->name.s ),msg);
 				append_str( p, CRLF,CRLF_LEN,msg);