[pjsip] a few questions

Saúl Ibarra saghul at gmail.com
Fri Aug 14 05:36:55 EDT 2009


On Fri, Aug 14, 2009 at 11:28 AM, Tiago Ferreira<maiaboy at hotmail.com> wrote:
> Hello,
>
>
>
> I just started using pjsip in python and I was wondering if you could answer
> me a few questions.
>
>
>
> 1: I tried sending audio with a wave file but I had no success thus far. Can
> anyone show me a simple audio tutorial or code sample for python?
>

Try this:

player = self.core.lib.create_player("/tmp/ring.wav", True)
lib.conf_connect(lib.player_get_slot(player), 0)


>
>
> 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
> can’t interpret the received DTMF signals, is this true?
>

I don't think you are able to interpret DTMF tones from the Python API...



Regards,


-- 
/Saúl
http://www.saghul.net | http://www.sipdoc.net




More information about the pjsip mailing list