On Thursday 04 June 2009 16:22:01 karhu wrote: > Hello, > > Well i bother you with that, i am pretty sure, but i have new problem with > sdp modification. > When i try to add a new payload in "m=video ..." line, the video port from > the proxy is inserted at the end of "m=video.." line as follow : > > m=video 21840 RTP/AVP 99 115 34 35186 > a=alt:1 2 : TsApLPhC /VstqkH6 10.193.15.206 21840 > a=alt:2 1 : 3p37pqju 6bkvXakZ 10.10.10.3 21840 > a=fmtp:115 QCIF=1 I=1 J=1 K=1 MAXBR=1960 > a=fmtp:34 QCIF=1 MAXBR=1960 > a=rtpmap:115 H263-1998/90000 > a=rtpmap:34 H263/90000 > a=sendrecv > a=nortpproxy:yes > > 21840 is the original port (from caller), the good proxy port uses for this > session should be 35186. > I called my function to modify the sdp body after force_rtp_proxy(). So > everything should be ok. > I have seen that textops functions are applied to the original request..is > that why i can't solve my problem?
Umm, what I guest is that you don't know that all modifications to a request take place AT THE SAME TIME just before you call t_relay, they are not executed one after the other during the script flow, all of them are called TOGETHER before t_relay, thats why if you modify the "m=video..." line by hand during the script flow and after that you call force_rtpproxy, what you get is not what you desire -- Raúl Alexis Betancor Santana Dimensión Virtual _______________________________________________ Kamailio (OpenSER) - Users mailing list [email protected] http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
