a few questions

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

 



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



[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