[asterisk-commits] kharwell: branch group/pimp_my_sip r384749 - /team/group/pimp_my_sip/res/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Apr 4 11:57:12 CDT 2013


Author: kharwell
Date: Thu Apr  4 11:57:09 2013
New Revision: 384749

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=384749
Log:
fixed mixed declarations in code

Modified:
    team/group/pimp_my_sip/res/res_sip_sdp_rtp.c

Modified: team/group/pimp_my_sip/res/res_sip_sdp_rtp.c
URL: http://svnview.digium.com/svn/asterisk/team/group/pimp_my_sip/res/res_sip_sdp_rtp.c?view=diff&rev=384749&r1=384748&r2=384749
==============================================================================
--- team/group/pimp_my_sip/res/res_sip_sdp_rtp.c (original)
+++ team/group/pimp_my_sip/res/res_sip_sdp_rtp.c Thu Apr  4 11:57:09 2013
@@ -429,15 +429,18 @@
 			 const struct pjmedia_sdp_media *remote_stream)
 {
 	pjmedia_sdp_attr *attr;
+	pj_str_t value;
+	unsigned long framing;
+	int codec;
+	struct ast_codec_pref *pref = &ast_rtp_instance_get_codecs(session_media->rtp)->pref;
+
 	/* Apply packetization if available and configured to do so */
 	if (!session->endpoint->use_ptime || !(attr = pjmedia_sdp_media_find_attr2(remote_stream, "ptime", NULL))) {
 		return;
 	}
 
-	pj_str_t value = attr->value;
-	unsigned long framing = pj_strtoul(pj_strltrim(&value));
-	int codec;
-	struct ast_codec_pref *pref = &ast_rtp_instance_get_codecs(session_media->rtp)->pref;
+	value = attr->value;
+	framing = pj_strtoul(pj_strltrim(&value));
 
 	for (codec = 0; codec < AST_RTP_MAX_PT; codec++) {
 		struct ast_rtp_payload_type format = ast_rtp_codecs_payload_lookup(ast_rtp_instance_get_codecs(




More information about the asterisk-commits mailing list