Ris: individual codec parameters for every call

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

 



You have to implement your own media transport adapter.
I have used it to mangle rtp packet in one of my projects. You can use it to completely rewrote rtp packet.

https://trac.pjsip.org/repos/wiki/Media_Transport_Adapter

Inviato dal mio dispositivo Huawei


-------- Messaggio originale --------
Oggetto: [pjsip] individual codec parameters for every call
Da: Stefan Fendt
A: pjsip@xxxxxxxxxxxxxxx
CC:


Hi,

I would like to experiment with some audio-codecs (one of them sitting on an external device --> AMBE-chip). So I wrote a simple pjsua2-based frontend (works) and after that I now try to implement my own variant of a passthrough-codec which should use a callback-function whenever audio-frames need to be encoded into codec-frames and another callback-function for the reverse way.

Obviously this will require me to set these callback-functions (very much preferably on a by call basis) and this is the point where I somewhat got stuck. It seems to me, that there is no way of doing so without patching pjsua2?

If so, could someone please give me a hint for a good starting-point for doing this starting from pj::Call? Can I -- for instance in onCallMediaState (or another callback from within pj::Call) -- just call pjsua_codec_set_param? And if so, how would this be directed/mapped to the codec-instance used for the current call?

Many thanks in advance,
Stefan
--
Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.
_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

[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