[Home]

Summary:ASTERISK-02460: rtp.c warning - rtp structure is null
Reporter:duanecox (duanecox)Labels:
Date Opened:2004-09-24 13:37:12Date Closed:2008-01-15 15:10:46.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:I'm not sure why I am getting this.
Running asterisk-1.0.0.  Previous older CVS (8/x/2004) did not report this error.

Verbosity was 0 and is now 10
   -- Endpoint 'aaln/2@63.252.240.2-0' observed 'hd'
Sep 24 13:50:29 WARNING[98310]: rtp.c:711 ast_rtp_offered_from_local: rtp structure is null
   -- MGCP mgcp_new(MGCP/aaln/2@63.252.240.2-0) created in state: Down

****** ADDITIONAL INFORMATION ******

void ast_rtp_offered_from_local(struct ast_rtp* rtp, int local) {
 if (rtp)
   rtp->rtp_offered_from_local = local;
 else
   ast_log(LOG_WARNING, "rtp structure is null\n");
}
Comments:By: duanecox (duanecox) 2004-09-24 13:38:27

* seems to function correctly even with the error..
Could someone enlighten me as to what could cause this error?

By: Olle Johansson (oej) 2004-10-06 07:09:48

Housekeeping asks: Is the problem still there in recent CVS?

By: Mark Spencer (markster) 2004-10-06 11:16:16

I've been trying to get a hold of Duane and he did call me back, but then I left for LA before I could call back.  I don't think any recent changes will have affected this issue, and I will have to call him back when I get back to HSV.

By: Andrey S Pankov (casper) 2004-10-11 03:16:07

This warning appeared when ast_rtp_offered_from_local was introduced into the code (rtp.c 1.84 -> 1.85).

I hope debug output below will help you to identify the problem:

MGCP read: >
NTFY 2780 aaln/3@office MGCP 1.0 NCS 1.0
N:[asterisk_ip_addr]:2427
X:35af3a80
O: hd

from office_ip_addr:2427
Verb: 'NTFY', Identifier: '2780', Endpoint: 'aaln/3@office', Version: 'MGCP 1.0'
4 headers, 0 lines
Handling request 'NTFY' on aaln/3@office
Transmitting:
200 2780 OK

to office_ip_addr:2427
   -- Endpoint 'aaln/3@office-1' observed 'hd'
   -- Creating connection for aaln/3@office-1 in cxmode: sendrecv callid: 6908c3e935f48a88
Oct 11 11:03:54 WARNING[163850]: rtp.c:711 ast_rtp_offered_from_local: rtp structure is null
We're at asterisk_ip_addr port 14046
Answering with capability 4
Posting Request:
CRCX 1590 aaln/3@office MGCP 1.0
C: 6908c3e935f48a88
L: p:20, a:PCMU
M: sendrecv
X: 35f48a88

v=0
o=root 15945 15945 IN IP4 asterisk_ip_addr
s=session
c=IN IP4 asterisk_ip_addr
t=0 0
m=audio 14046 RTP/AVP 0
a=rtpmap:0 PCMU/8000
to office_ip_addr:2427
   -- MGCP Asked to indicate tone: L/dl on  aaln/3@office-1 in cxmode: sendrecv
Posting Request:
RQNT 1591 aaln/3@office MGCP 1.0
X: 35af3a80
R: L/hu(N),L/hf(N),D/[0-9#*](N)
S: L/dl
to office_ip_addr:2427
   -- MGCP mgcp_new(MGCP/aaln/3@office-1) created in state: Down
MGCP read: >
200 1590 OK
I:43

v=0
c=IN IP4 office_ip_addr
m=audio 30012 RTP/AVP 0

from office_ip_addr:2427
Verb: '200', Identifier: '1590', Endpoint: 'OK', Version: '(null)'
2 headers, 3 lines
Capabilities: us - 4, them - 4, combined - 4
Non-codec capabilities: us - 1, them - 0, combined - 0
MGCP read: >
200 1591 OK

from office_ip_addr:2427
Verb: '200', Identifier: '1591', Endpoint: 'OK', Version: '(null)'
1 headers, 0 lines

By: Mark Spencer (markster) 2004-10-12 21:51:55

Fixed in CVS

By: Russell Bryant (russell) 2004-10-17 00:57:20

fixed in 1.0

By: Digium Subversion (svnbot) 2008-01-15 15:10:46.000-0600

Repository: asterisk
Revision: 4027

U   branches/v1-0/channels/chan_mgcp.c

------------------------------------------------------------------------
r4027 | russell | 2008-01-15 15:10:46 -0600 (Tue, 15 Jan 2008) | 2 lines

fix for MGCP (bug ASTERISK-2460)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=4027