RTPStream()->getPayloadType() returns null. I tried passing hard coded pay load type 18 just for test and Sems was able to generate 183 session progress with one issue (RTP Map is G729/51 instead of expected G729/8000). v=0 o=sems 1089724547 1817990712 IN IP4 31.193.168.250 s=sems c=IN IP4 31.193.168.250 t=0 0 m=audio 40000 RTP/AVP 18 a=rtpmap:18 G729/51 a=sendrecv a=direction:both
After generating 183 Progress when it tries to play file i get below error --++-- [#7ff2ca422700/16069] [update_uas_reply, trans_layer.cpp:1586] DEBUG: update_uas_reply(t=0x7ff2b0001ac0) [#7ff2ca422700/16069] [onSdpCompleted, AmSession.cpp:1029] DEBUG: AmSession::onSdpCompleted(...) ... [#7ff2ca422700/16069] [init, AmRtpAudio.cpp:321] DEBUG: AmRtpAudio::init(...) [#7ff2ca422700/16069] [init, AmRtpStream.cpp:567] ERROR: No internal payload corresponding to type G729/51 (ignoring) [#7ff2ca422700/16069] [setPassiveMode, AmRtpStream.cpp:498] DEBUG: The other UA is NATed: switched to passive mode. [#7ff2ca422700/16069] [setRAddr, AmRtpStream.cpp:426] DEBUG: RTP remote address set to 31.193.168.250:30596 [#7ff2ca2fe700/16070] [_start, AmThread.cpp:65] DEBUG: Thread 140680750950144 is starting. [#7ff2ca422700/16069] [init, AmRtpStream.cpp:640] ERROR: could not set a default payload [#7ff2ca422700/16069] [onSdpCompleted, AmSession.cpp:1071] ERROR: while initializing RTP stream [#7ff2ca422700/16069] [setState, AmOfferAnswer.cpp:69] DEBUG: setting SIP dialog O/A status: Completed->None [#7ff2ca422700/16069] [execute, ModDlg.cpp:180] ERROR: 500 could not send response [#7ff2ca422700/16069] [reply, AmSipDialog.cpp:749] DEBUG: reply: transaction found! [#7ff2ca422700/16069] [send_reply, trans_layer.cpp:260] DEBUG: reply_len = 632 [#7ff2ca422700/16069] [is_opt_set, transport.cpp:60] DEBUG: trsp_socket::socket_options = 0x0 [#7ff2ca422700/16069] [send_reply, trans_layer.cpp:438] DEBUG: Sending to 192.168.112.5:9090 <SIP/2.0 500 could not send response 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
