[OpenSIPS-Devel] question about sdp
Răzvan Crainea
razvan at opensips.org
Tue Jun 26 09:56:14 CEST 2012
Hello!
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?
Regards,
Razvan Crainea
OpenSIPS Core Developer
http://www.opensips-solutions.com
On 06/26/2012 04:49 AM, GTS2010 wrote:
> 2012-06-26
> ------------------------------------------------------------------------
> GTS2010
> ------------------------------------------------------------------------
> Hi:
> I want to get the sdp body in my script,and I add the code into my script:
> if (is_method("INVITE"))
> {
> $var(aline) = $(rb{sdp.line,a,1});
> xlog("The second a line in the SDP body is $var(aline)\n");
> }
> the same as the code I see from the opensips cookbook.
> But I get the error:
> 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)
> I want to know how to get the sdp body.
> Hoping for your help!
> Thanks & Regards!
> Lipeng Beijing China
>
>
> _______________________________________________
> Devel mailing list
> Devel at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20120626/f038e302/attachment.htm>
More information about the Devel
mailing list