Browse code

We need to parse all headers here. Otherwise, the Record-Route-Headers may be incomplete.

Carsten Bock authored on 06/01/2010 15:38:56
Showing 1 changed files
... ...
@@ -226,7 +226,7 @@ int populate_leg_info( struct dlg_cell *dlg, struct sip_msg *msg,
226 226
 	contact = ((contact_body_t *)msg->contact->parsed)->contacts->uri;
227 227
 
228 228
 	/* extract the RR parts */
229
-	if(!msg->record_route && (parse_headers(msg,HDR_RECORDROUTE_F,0)<0)  ){
229
+	if(!msg->record_route && (parse_headers(msg,HDR_EOH_F,0)<0)  ){
230 230
 		LM_ERR("failed to parse record route header\n");
231 231
 		goto error0;
232 232
 	}