<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix"><tt>Hello!<br>
<br>
If you only need the SDP body, you can use only the "$rb"
pseudo-variable. Only if you need the "a=" line from the SDP you
should use the sdp transformations, but I don't think your
OpenSIPS version supports them. What version are you using?<br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Razvan Crainea
OpenSIPS Core Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a>
</pre>
On 06/26/2012 04:49 AM, GTS2010 wrote:<br>
</div>
<blockquote
cite="mid:331ad523.15a9.138267af3d8.Coremail.GTS2010@126.com"
type="cite">
<style type="text/css"> <!--@import url(scrollbar.css); --></style>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<style>                        body{FONT-SIZE:12pt; FONT-FAMILY:宋体,serif;}                </style>
<meta name="GENERATOR" content="MSHTML 8.00.6001.19258">
<base target="_blank">
<style type="text/css"> <!--@import url(scrollbar.css); --></style>
<style>                        BLOCKQUOTE{margin-Top: 0px; margin-Bottom: 0px; margin-Left: 2em}                        body{FONT-SIZE:12.1pt; COLOR:#001; FONT-FAMILY:宋体,serif;}                </style>
<meta name="GENERATOR" content="MSHTML 8.00.6001.19258">
<base target="_blank">
<div> </div>
<div> </div>
<div align="left"><font color="#c0c0c0" face="Verdana" size="2">2012-06-26</font></div>
<div align="left"><font face="Verdana" size="2">
<hr style="WIDTH: 122px; HEIGHT: 2px" id="SignNameHR"
align="left" size="2">
</font></div>
<div align="left"><font color="#c0c0c0" face="Verdana" size="2"><span
id="_FlashSignName">GTS2010</span></font></div>
<div><font face="Verdana" size="2">
<hr>
</font></div>
<div> </div>
<div><font face="Verdana" size="2"><stationery>
<div><font color="#000000" face="宋体" size="3">Hi:</font></div>
<div> </div>
<div><font color="#000000" face="宋体" size="3">I want to get
the sdp body in my script,and I add the code into my
script:<br>
if (is_method("INVITE"))<br>
{<br>
$var(aline) = $(rb{sdp.line,a,1});<br>
xlog("The second a line in the SDP body is
$var(aline)\n");<br>
}<br>
the same as the code I see from the opensips
cookbook.<br>
But I get the error:<br>
Jun 21 15:26:50 [2308]
ERROR:core:parse_transformation: unknown transformation:
[sdp] in [{sdp.line,a,1}]Jun 21 15:26:50 [2308]
ERROR:core:parse_transformation: error parsing
[{sdp.line,a,1}]Jun 21 15:26:50 [2308]
ERROR:core:pv_parse_spec: ERROR:bad tr in pvar name
"rb"Jun 21 15:26:50 [2308] ERROR:core:pv_parse_spec:
invalid parsing in [$(rb{sdp.line,a,1})] at (4)Jun 21
15:26:50 [2308] CRITICAL:core:yyerror: parse error in
config file, line 417, column 37-56: unknown script
variableJun 21 15:26:50 [2308] ERROR:core:main: bad
config file (1 errors)<br>
I want to know how to get the sdp body.<br>
Hoping for your help!<br>
Thanks & Regards!<br>
Lipeng Beijing China </font></div>
<div> </div>
</stationery></font></div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Devel@lists.opensips.org">Devel@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/devel">http://lists.opensips.org/cgi-bin/mailman/listinfo/devel</a>
</pre>
</blockquote>
<br>
<br>
</body>
</html>