is it possible to send raw data over pjsip via passthrough codec?

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

 



PCMU is not lossless, because it is converting 16-bit to 8-bit and back 
to 16-bit. Try the L16 codec instead. - Bill

On 5/19/2014 11:20 AM, Brandon Wong wrote:
> Hi everyone, I need some help.
>
> I want to encode my own data not within pjsip then send it over to 
> another client
> and decode it not within pjsip.
>
> For an attempt to do this:
>
> 1) i filled up a "mem player" buffer with static data (eg. filled with 
> the char 'A')
>
> 2) i set the codec to PCMU/8000/1 (which should be a lossless passthrough)
> and also tried this with a custom codec that just copies the input to 
> the output for an effective passthrough...
>
> 3) i make a call
> connect the mem player to that call
>
> 4) on the other end
> i connect the call to a file writer
>
> the data that gets written is not the same as the buffer that i created.
>
> when i connect the "mem player" directly to the "file writer" within 
> the same app, i do get the results i am looking for.
>
>
> If anyone can offer some insights on why this is not working properly, 
> or an alternate route i should take... I would be very grateful!
>
> Thanks,
> Brandon
>
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20140519/c568254c/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