<div dir="ltr">I'm using Asterisk-13.21.<div>I'll check out the code in <font face="monospace">ast_rtp_interpret</font><font face="arial, sans-serif"> but the problem is that I do not have the access to the production environment to recreate this issue.</font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">can anybody suggest any tool to create dummy RTP payloads or some SIP client that can generate real-time text over RTP?</font></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 31 Jan 2020 at 16:51, Joshua C. Colp <<a href="mailto:jcolp@sangoma.com">jcolp@sangoma.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">On Fri, Jan 31, 2020 at 3:06 AM Mohit Dhiman <<a href="mailto:mohitdhiman736@gmail.com" target="_blank">mohitdhiman736@gmail.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div>I'm trying to debug a segfault in <font face="monospace">ast_frdup</font> which happened because of the negative <font face="monospace">datalen</font> of the <font face="monospace">ast_frame </font><font face="arial, sans-serif">for frame type</font><font face="monospace"> AST_FRAME_TEXT</font>.</div><div><br><div>My question is that how an RTP frame in categorized as of type TEXT because I can only see two types of RTP payload in network capture (not of the time of segfault)</div></div><div>one is <font face="monospace">G-711 ulaw</font> and the other is <font face="monospace">Payload Type 106</font> (not defined in SDP).</div><div>This Payload 106 is received at the start of the RTP stream and is received only once in an RTP stream.</div><div><br></div><div>My other question is how the <font face="monospace">datalen</font> gets calculated for an RTP frame and what could be the possible reason for this to come out negative for it should never be negative as confirmed by Joshua on Asterisk Community Forum.</div><div><br></div><div>It would be a great help if anybody could help me figure this out.</div></div></blockquote><div><br></div><div>What version of Asterisk is in use?</div><div><br></div><div>Otherwise the code itself that interprets RTP packets is ast_rtp_interpret[1] in res_rtp_asterisk.c. Adding log messages or reading that would probably yield information. </div><div><br></div><div>[1] <a href="https://github.com/asterisk/asterisk/blob/master/res/res_rtp_asterisk.c#L6932" target="_blank">https://github.com/asterisk/asterisk/blob/master/res/res_rtp_asterisk.c#L6932</a> </div></div><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-family:tahoma,sans-serif"><font color="#073763">Joshua C. Colp</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Asterisk Technical Lead</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Sangoma Technologies</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Check us out at <a href="http://www.sangoma.com" target="_blank">www.sangoma.com</a> and <a href="http://www.asterisk.org" target="_blank">www.asterisk.org</a></font><br></div></div></div></div></div></div></div></div></div></div></div>
-- <br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a></blockquote></div>