[pjsip] a few questions
maiaboy at hotmail.com
Fri Aug 14 08:13:02 EDT 2009
I tried it and got the following exception
Unhandled exception in thread started by <function _worker_thread_main at
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/pjsua.py", line 2807, in
File "/usr/local/lib/python2.6/dist-packages/pjsua.py", line 2754, in
File "/usr/local/lib/python2.6/dist-packages/pjsua.py", line 2652, in
File "/usr/local/lib/python2.6/dist-packages/pjsua.py", line 2760, in
File "/usr/local/lib/python2.6/dist-packages/pjsua.py", line 2665, in
File "firstTry.py", line 41, in on_media_state
if self.call.info().media_state == pj.MediaState.ACTIVE:
NameError: global name 'pj' is not defined
De: pjsip-bounces at lists.pjsip.org [mailto:pjsip-bounces at lists.pjsip.org] Em
nome de Saúl Ibarra
Enviada: sexta-feira, 14 de Agosto de 2009 10:37
Para: pjsip list
Assunto: Re: [pjsip] a few questions
On Fri, Aug 14, 2009 at 11:28 AM, Tiago Ferreira<maiaboy at hotmail.com> wrote:
> I just started using pjsip in python and I was wondering if you could
> me a few questions.
> 1: I tried sending audio with a wave file but I had no success thus far.
> anyone show me a simple audio tutorial or code sample for python?
player = self.core.lib.create_player("/tmp/ring.wav", True)
> 2: I am starting to implement a small script that registers to a server,
> answers calls and receives DTMF signals and acts according to what he
> received. Bui I just saw the FAQ and from what I understood, using pjsip I
> cant interpret the received DTMF signals, is this true?
I don't think you are able to interpret DTMF tones from the Python API...
http://www.saghul.net | http://www.sipdoc.net
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip at lists.pjsip.org
More information about the pjsip