Преглед изворни кода

sdpops: fixes in some debug messages

Daniel-Constantin Mierla пре 14 година
родитељ
комит
c8d99c6586
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      modules/sdpops/sdpops_mod.c

+ 3 - 1
modules/sdpops/sdpops_mod.c

@@ -142,6 +142,7 @@ int sdp_remove_str_codec_id_attrs(sip_msg_t* msg,
 			if(payload->rtp_enc.s!=NULL) {
 			if(payload->rtp_enc.s!=NULL) {
 				if(sdp_locate_line(msg, payload->rtp_enc.s, &aline)==0)
 				if(sdp_locate_line(msg, payload->rtp_enc.s, &aline)==0)
 				{
 				{
+					LM_DBG("removing line: %.*s", aline.len, aline.s);
 					anchor = del_lump(msg, aline.s - msg->buf,
 					anchor = del_lump(msg, aline.s - msg->buf,
 							aline.len, 0);
 							aline.len, 0);
 					if (anchor == NULL) {
 					if (anchor == NULL) {
@@ -155,6 +156,7 @@ int sdp_remove_str_codec_id_attrs(sip_msg_t* msg,
 			if(payload->fmtp_string.s!=NULL) {
 			if(payload->fmtp_string.s!=NULL) {
 				if(sdp_locate_line(msg, payload->fmtp_string.s, &aline)==0)
 				if(sdp_locate_line(msg, payload->fmtp_string.s, &aline)==0)
 				{
 				{
+					LM_DBG("removing line: %.*s\n", aline.len, aline.s);
 					anchor = del_lump(msg, aline.s - msg->buf,
 					anchor = del_lump(msg, aline.s - msg->buf,
 							aline.len, 0);
 							aline.len, 0);
 					if (anchor == NULL) {
 					if (anchor == NULL) {
@@ -407,7 +409,7 @@ int sdp_keep_codecs_by_id(sip_msg_t* msg, str* codecs)
 		return -1;
 		return -1;
 	}
 	}
 
 
-	LM_ERR("attempting to remove codecs from sdp: [%.*s]\n",
+	LM_ERR("attempting to keep codecs in sdp: [%.*s]\n",
 			codecs->len, codecs->s);
 			codecs->len, codecs->s);
 
 
 	sdp = (sdp_info_t*)msg->body;
 	sdp = (sdp_info_t*)msg->body;