Playing sounds dynamically

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

 



I'm a terrible python programmer, and I don't know how to send an event
from CallCallback on_call_state() or on_media_state() functions to
synchronize with the rest of the program, hence the polling loop with 60
second timeout.  It's a python programming problem and I'll figure this out
later.

I'm trying to play the wave file to the destination.  If I execute  wav_player
= lib.create_player(wav_file_name);  before  acc.make_call(), the wav file
is played and I can hear it on the other end of the call.  If I try to
create a player after the call is placed, nothing is played.

On Wed, Aug 29, 2012 at 5:57 AM, JOHAN LANTZ <johan at tid.es> wrote:

>  Hi
>
>  As a general comment I think you are better off using the on_call_state
> callback then sleeping when doing this. Also from what you write it is not
> 100% clear if you want to play the sound in your speaker or send it to the
> B party. You say that if you do this before making the call it works then I
> assume that you want to reproduce the sound in your speaker? If this is the
> case you must connect the wav player to the speaker (i.e. 0) not the conf
> slot of the call.
>
>  /Johan
>
> ------------------------------
> Este mensaje se dirige exclusivamente a su destinatario. Puede consultar
> nuestra pol?tica de env?o y recepci?n de correo electr?nico en el enlace
> situado m?s abajo.
> This message is intended exclusively for its addressee. We only send and
> receive email on the basis of the terms set out at:
> http://www.tid.es/ES/PAGINAS/disclaimer.aspx
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20120829/c47f0915/attachment-0001.html>


[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