Using a recorder with the python API

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

 



Hello, please disregard as I have resolved the issue.

It had to do with something unrelated to pjsua itself.

On 12/12/2012 3:39 PM, Nick wrote:
>
> Hi, I am trying to use create a recorder object with python API.
>
> I must admit I am stumped. I took the call.py in the example python 
> tutorials:
> http://trac.pjsip.org/repos/browser/pjproject/trunk/pjsip-apps/src/python/samples/call.py 
>
>
> I tried to add this to the main try body after lib.start() ,
>
> ?rec = lib.create_recorder(self, "/home/user1/Desktop/a.wav" )
> rec1 = lib.recorder_get_slot(self, rec)
>
> but Eclipse is complaining about "Lexcial error at line 81, column 13. 
> Encountered:"\u200b" (8203) after : ""
>
> I then added
>
> pj.Lib.instance().conf_connect(call_slot, ?lib.recorder_get_slot(self, 
> rec))
>
> inside the on_media_state method inside the MyCallCallback class
>
> What am I doing wrong? Are there any working examples I can inspire 
> myself from?




[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