Commit f127e7f4 authored by poglitsch's avatar poglitsch
Browse files

bandwidth adopted

parent b5115b6b
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -2333,7 +2333,7 @@ group SDP_Templates {
				media_field := p_mf, 
				information := omit,
				connections := omit,
				bandwidth := p_bw,
				bandwidth := {p_bw},
				key := omit,						
				attributes := p_attributes
		};
@@ -2810,8 +2810,10 @@ group TemplatePreparationFunctions {
		    }; //*  end for
		  };
		  if (ispresent(p_mb.media_list[i].bandwidth)) {  //*  "b= "
		  	v_result := v_result + 2+c_CRlen + lengthof(p_mb.media_list[i].bandwidth.modifier)
						+ 1 + lengthof(int2str(p_mb.media_list[i].bandwidth.bandwidth));
				for (var integer j := 0; j<lengthof(p_mb.media_list[i].bandwidth); j:=j+1) {  //*  "b= "
					v_result := v_result + 2+c_CRlen + lengthof(p_mb.media_list[i].bandwidth[j].modifier)
						+ 1 + lengthof(int2str(p_mb.media_list[i].bandwidth[j].bandwidth));
				};
		  };
		  if (ispresent(p_mb.media_list[i].key)) {   //*  "k= "
			v_result := v_result + 1 + lengthof(p_mb.media_list[i].key.method);