Using Memory/Buffer-based Capture Port

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

 



Hello,

I need to record data received on a pjmedia port and analyze it.
To do this, I'm sending a single frequency (3000 Hz) generated using
pjmedia_tonegen_create. I am able to hear this tone at the other end.
To capture this data, I'm using a Memory/Buffer-based Capture Port.

The callback set using pjmedia_mem_capture_set_eof_cb, is called but doing
pjmedia_port_get_frame in it gives me
frame->size=0 and frame->type=PJMEDIA_FRAME_TYPE_NONE.

I'm using PJSIP 2.0-alpha. Looking at
pjproject-2/pjmedia/src/pjmedia/mem_capture.c, line 200, in the function
rec_get_frame, it seems that this will always be the case since it does
frame->size = 0;
frame->type = PJMEDIA_FRAME_TYPE_NONE;

Am I missing something?

-Mandar Joshi



[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