summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuigi Rizzo <rizzo@icir.org>2006-09-22 14:56:21 +0000
committerLuigi Rizzo <rizzo@icir.org>2006-09-22 14:56:21 +0000
commit4d188126d92f1f46f250fd386484675edb9d28c1 (patch)
tree72702e1c7f369661387953a603b41a2fe7475253
parentdeb78618b4ba066bd210830ed699f1ce7ca281ed (diff)
style fix:
move variable declaration at the beginning of the block. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43479 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r--channels/chan_sip.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index f765cf1b4..e3c7f3b68 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -4531,6 +4531,9 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req)
int numberofmediastreams = 0;
int debug = sip_debug_test_pvt(p);
+ int found_rtpmap_codecs[32];
+ int last_rtpmap_codec=0;
+
if (!p->rtp) {
ast_log(LOG_ERROR, "Got SDP but have no RTP session allocated.\n");
return -1;
@@ -4702,8 +4705,6 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req)
*/
/* XXX This needs to be done per media stream, since it's media stream specific */
iterator = req->sdp_start;
- int found_rtpmap_codecs[32];
- int last_rtpmap_codec=0;
while ((a = get_sdp_iterate(&iterator, req, "a"))[0] != '\0') {
char* mimeSubtype = ast_strdupa(a); /* ensures we have enough space */
if (option_debug > 1) {