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

Reply via email to