PJMEDIA conference bridge - direct port?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Alex,

On 19-Dec-11 15:20, Alex Balashov wrote:
> On 12/19/2011 09:13 AM, Alain Totouom wrote:
> 
>> PTIME = 20?
> 
> Yep.
> 
>> After pjmedia_splitcomb_create_rev_channel what does
>> conf_port->info.bytes_per_frame says? 320?
> 
> Indeed.
> 
>> pjmedia_frame to be written to the rev port pjmedia_frame::size ==
>> 320? PCM 16bit ;o)
> 
> No, sorry, it's 160.
> 

That is the troublemaker.
Your problem might already has been solved by now.
The decoded PCM your are passing to the bridge is 16 bit and your
RTP 8 bit therefor adjust your frame size before passing it to the
reverse port
..
pcm_frame.size = rtp_payload_size * sizeof(unsigned short); /* 320 */
pjmedia_port_put_frame(conf_port, &pcm_frame);

Cheers,
Alain


-- 
                            ""
                          (o)(o)
                _____o00o__(__)__o00o_____
3072D/146D10DE 2011-09-29    Alain Totouom  <totouom at gmx.de>
PGP Fingerprint 39A4F092 FFA7C746 CC305CB0 69091911 146D10DE



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux