[OpenSIPS-Users] Function add_isup_part() parsing error in opensips 3.0

Vlad Patrascu vladp at opensips.org
Thu Jul 18 04:40:02 EDT 2019


It's on 3.1 and 3.0.

Vlad Patrascu
OpenSIPS Developer
http://www.opensips-solutions.com

On 07/18/2019 09:52 AM, sagar malam wrote:
> Hi Vlad,
>
> Thanks for fix.Is it pushed to 3.0 ? or it will be released with 3.1 ?
>
> On Wed, Jul 17, 2019 at 8:41 PM Vlad Patrascu <vladp at opensips.org 
> <mailto:vladp at opensips.org>> wrote:
>
>     Hi Sagar,
>
>     This is a bug introduced when porting the script functions
>     interface to 3.0. I've just pushed a fix, thanks for reporting!
>
>     Regards,
>
>     Vlad Patrascu
>     OpenSIPS Developer
>     http://www.opensips-solutions.com
>
>     On 07/17/2019 05:05 PM, sagar malam wrote:
>>     Hello,
>>
>>     Can anyone please help me on this ?
>>
>>     On Tue, Jul 16, 2019 at 3:22 PM sagar malam <sagarmalam at gmail.com
>>     <mailto:sagarmalam at gmail.com>> wrote:
>>
>>         Hello,
>>         I am using *add_isup_part([isup_msg_type][,extra_headers])*
>>         function from request and failure route to local route  in
>>         *Opensips 3.0* version script but I am getting parsing error
>>         as below . I AM NOT GETTING THIS ERROR IN OPENSIPS 2.x.
>>         Please help me on this issue.
>>         ------------------------------------------------------------------------
>>         Usage :
>>
>>                 if(!isflagset(11) && $avp(tsi_types)=="SIP-I" ) {
>>                         $ru  = $ru + ";user=phone";
>>                        xlog("L_INFO","Adding isup part ");
>>
>>         if(add_isup_part("Initial address")) {
>>                                 setflag(11);
>>                         }
>>
>>                 } else {
>>                         xlog("L_INFO","Removing isup part ");
>>         remove_body_part("application/sdp","revert");
>>                 }
>>         ------------------------------------------------------------------------------
>>         Error :
>>         Jul 15 10:46:35 sbcsbc opensips: CRITICAL:core:yyerror: parse
>>         error in /usr/local//etc/opensips/opensips.cfg:1282:28-29:
>>         *Command <add_isup_part> cannot be used in the block#012*
>>         Jul 15 10:46:35 sbcsbc opensips:        xlog("L_INFO","Adding
>>         isup part ");
>>         Jul 15 10:46:35 sbcsbc opensips:
>>         Jul 15 10:46:35 sbcsbc opensips:
>>         #011#011if(add_isup_part("Initial address")) {
>>         Jul 15 10:46:35 sbcsbc opensips: #011#011^~
>>         Jul 15 10:46:35 sbcsbc opensips: #011      #011setflag(11);
>>         Jul 15 10:46:35 sbcsbc opensips: #011#011}
>>         Jul 15 10:46:35 sbcsbc opensips:
>>         ERROR:core:parse_opensips_cfg: bad config file (1 errors)
>>         Jul 15 10:46:35 sbcsbc opensips: ERROR:core:main: failed to
>>         parse config file (null)
>>         Jul 15 10:46:35 sbcsbc opensips: NOTICE:core:main: Exiting....
>>         ----------------------------------------------------------------------------------
>>
>>
>>         -- 
>>         Thanks,
>>
>>         Sagar
>>
>>
>>
>>     -- 
>>     Thanks,
>>
>>     Sagar
>>
>>
>>     _______________________________________________
>>     Users mailing list
>>     Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>>     http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>     _______________________________________________
>     Users mailing list
>     Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>     http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> -- 
> Thanks,
>
> Sagar
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20190718/6210f287/attachment-0001.html>


More information about the Users mailing list