rohc team mailing list archive
-
rohc team
-
Mailing list archive
-
Message #02041
Re: RTP compare port python binding
Hi Didier,
Thank you for your answer,
Yes I follow it but when I try to include/modify the code in function "rohc_comp_rtp_cb" at file rohc_helpers.h to include additional ports it seems it doesn't works since rohc give me a bad profile error at run time.
My setup works for the list of 6 ports you have there, that is,
default_rtp_ports[] = { 1234, 36780, 33238, 5020, 5002, 5006 }
but if I tried add or even try to modify the array and it doesn't work afetr build/install of python binding. (I already modify the index value). I also try to recompile rohc before the python binding.
The modification I did for this is
default_rtp_ports[] = { 10050, 36780, 33238, 5020, 5002, 5006 } with same index
or
default_rtp_ports[] = { 1234, 36780, 33238, 5020, 5002, 5006, 10050} with index=7
I endup trying this because what I try initially didn't work, I actually wanted to add a function that modify the array of udp ports, a function that I could call from python, I saw a similar function in older version of rohc but it's now deprecated and actually it was a c function. If my function prototype is
bool rohc_comp_add_rtp_port(const unsigned int port);
I understand I need to add a line like the following to rohc.i file
%constant bool rohc_comp_add_rtp_port(const unsigned int);
but again basic stuff haven't work for me. Perhaps I am missing something else when trying to modify the udp port?
I am using rohc 2, not sure which version but I am working with git sources.
I will appreciate your comments,
Best,
Manuel Iglesias
________________________________________
From: Rohc [rohc-bounces+manuel.iglesias=plcpower.com@xxxxxxxxxxxxxxxxxxx] on behalf of Didier Barvaux [didier@xxxxxxxxxxx]
Sent: Saturday, May 07, 2016 12:01 PM
To: ROHC Library
Subject: Re: [Rohc] RTP compare port python binding
Hello Manuel,
> I would appreciate if someone can let me know how to modify the port
> list for RTP profile comparison that uses the python binding, the
> file rohc_helpers.h under contrib/python shows a list and index, I
> modified and compile both rohc library and python binding without
> success.
Did you followed the instructions available on the wiki?
https://rohc-lib.org/wiki/doku.php?id=python-install
If no, please try to follow them.
If yes, what step fail? What is the error? What Git version do you use?
> Also if there is a more dynamic way to add or specify the port for
> RTP profile it would be better but not sure if that's possible.
Not yet. I didn't search yet how to let the user write this part of the
code in his/her Python program.
Regards,
Didier
Follow ups
References