Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PJSUA --null-audio for python bindings

Tags:

python

pjsip

How does one specify --null-audio option working with python API (http://trac.pjsip.org/repos/wiki/Python_SIP_Tutorial)?

Thanks.

like image 668
rocknrollnerd Avatar asked Feb 20 '26 13:02

rocknrollnerd


1 Answers

Somehow you're wasting hours of time searching and then, desperate, you post a question to Stackoverflow, and the exact moment after it you find an answer by yourself. This place is the most useful problem solver ever.

After you've created your lib, call lib.set_null_snd_dev(). That must be done after making lib.init (here's my example:)

lib = pj.Lib()
lib.init(log_cfg=pj.LogConfig(level=3, callback=log_cb))
lib.set_null_snd_dev()
like image 150
rocknrollnerd Avatar answered Feb 23 '26 01:02

rocknrollnerd