[OpenSIPS-Devel] question about sdp

GTS2010 GTS2010 at 126.com
Tue Jun 26 03:49:54 CEST 2012



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 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20120626/b187645f/attachment.htm>


More information about the Devel mailing list