aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2006-10-01 15:01:28 +0000
committerrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2006-10-01 15:01:28 +0000
commit413f60fd27f9989fcfac8f384bb764e3ce5c82ff (patch)
tree6f4651d448dcb66c819ba933ec434b2c795ec842 /channels
parent44711a738d0deb0f078e01e05295edb0af588c47 (diff)
sync with trunk - move variable declarations to the beginning of a block.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@44109 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-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 6278b1139..fc07c6083 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -4541,6 +4541,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;
@@ -4712,8 +4715,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) {