← Back to team overview

rohc team mailing list archive

Re: [Question #246200]: c_get_profile_from_id

 

Question #246200 on rohc changed:
https://answers.launchpad.net/rohc/+question/246200

    Status: Answered => Open

Friedrich is still having a problem:
Hi Didier,

I would like to use the second method since I have too many UDP ports.
In your example,

if(!rohc_comp_set_rtp_detection_cb(comp, callback_detect, NULL))
		{
			fprintf(stderr, "failed to set RTP detection callback\n");
			goto destroy_comp;
		}

                expected_profile = ROHC_PROFILE_RTP;

Suppose that I have a good callback_detect(). The program will execute
"expected_profile = ROHC_PROFILE_RTP; "

My question is how I can use "expected_profile". I saw no use of it in your compressing example:
ret = rohc_compress2(comp, ip_packet, ip_size,
	                     rohc_packet, MAX_ROHC_SIZE, &rohc_size);

How can the compressor know it is the RTP packet and compress it
accordingly?

Thanks!

-- 
You received this question notification because you are a member of ROHC
Team, which is an answer contact for rohc.