[asterisk-dev] Bug in ast_rtp_read ???

Constantine Filin cfilin at intermedia.net
Thu Jul 13 09:33:53 MST 2006


Greetings -
 
I checked out asterisk 1.2.9 and am now looking at line #443 in rtp.c. Here it is:
 
    442         unsigned int *rtpheader;
    443         static struct ast_frame *f, null_frame = { AST_FRAME_NULL, };
    444         struct rtpPayloadType rtpPT;
    445

Does anybody understand why "struct ast_frame* f" is made static ?
I understand why "null_frame" is static but why "f"should be?
 
Is it not making ast_rtp_read a little less reentrant?
 
Thanks
 
-c
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20060713/d2d22461/attachment.htm


More information about the asterisk-dev mailing list