Silence Detection at getframe

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

 



Hi,

I have developed a full fledged application using pjsip and now we are
adding more features into it. There is a need that we have to change the
status of a line if incoming audio is present aprt from silence. Our
application either use G726 ot PCMU codecs.

Now how can i detect the presence of silence in a frame and getframe in
stream.c.
both the sip applications are same so they use pjsip only. Even is i have
audio i still see the PJMEDIA_FRAME_TYPE_NONE and not
PJMEDIA_FRAME_TYPE_AUDIO at getframe which could actually tell me the frame
type.

I tried using the silence detector in ipp codecs but once if i talk from
other side and mute the mike there, the sd state changes from STATE_SILENCE
to STATE_VOICED and doesnt come back to silence when i mute the call.

I desperately need help on this, please help me udnerstand and implement
this better.

Thanks & Regards,
Ravi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20100921/9b420d41/attachment.html>


[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