I have created playFile_precoded function in DSMCall.cpp (As it looked just like playFile()) In this file i do not see sc_sess passed from core (Thought i can see DSMCall inherits DSMSession). However in some modules I can see use of transferOwnership().
Is it possible to get sc_sess in DSMCall.cpp?..Or it will be a good idea to create one new DSM module? Regarding creating modules I could not find any tutorial also. On Thu, Oct 2, 2014 at 5:55 PM, Stefan Sayer <[email protected]> wrote: > John, > > John Nash wrote on 09/30/2014 07:06 AM: > > I think i would need your help in this. I am facing issues while > > trying to play .g729 file (I pasted function definition below). Looks > > like line "file_def->getFileInstance(RTPStream()->getPayloadType());" > > returns null value. I made sure g729 file is there in the path (For > > test I am using a asterisk demo file). It also crashes after showing > > error.. This is what my debug output is.. > > if you allocate the precoded_file instance on the stack, it's > destroyed after the function call to DSMCall::playFile_precoded > returns. you need to create a new object with > 'new' and hand it over with sc_sess->transferOwnership(...) to the > session. > > > what does RTPStream()->getPayloadType() return? is that codec registered? > > Stefan > >
_______________________________________________ Sems mailing list [email protected] http://lists.iptel.org/mailman/listinfo/sems
