<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hi Sagar,</p>
    <p>This is a bug introduced when porting the script functions
      interface to 3.0. I've just pushed a fix, thanks for reporting!</p>
    <p>Regards,<br>
    </p>
    <pre class="moz-signature" cols="72">Vlad Patrascu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
    <div class="moz-cite-prefix">On 07/17/2019 05:05 PM, sagar malam
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAEZuF3ukiX1ePQjaFtgri23VVX8dM2tMpifczW3j0EfX4-gf6A@mail.gmail.com">
      <div dir="ltr">Hello,
        <div><br>
        </div>
        <div>
          <div>Can anyone please help me on this ? </div>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Tue, Jul 16, 2019 at 3:22
          PM sagar malam <<a href="mailto:sagarmalam@gmail.com"
            moz-do-not-send="true">sagarmalam@gmail.com</a>> wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div dir="ltr">
            <div class="gmail-m_-1329212427574809177gmail-gE
              gmail-m_-1329212427574809177gmail-iv
              gmail-m_-1329212427574809177gmail-gt" style="padding:20px
              0px 0px;font-size:0.875rem">
              <table class="gmail-m_-1329212427574809177gmail-cf
                gmail-m_-1329212427574809177gmail-gJ"
style="border-collapse:collapse;margin-top:0px;width:auto;font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;font-size:0.875rem;letter-spacing:0.2px;display:block"
                cellpadding="0">
                <tbody style="display:block">
                </tbody>
              </table>
              <span style="font-size:small">Hello, </span></div>
            <div class="gmail-m_-1329212427574809177gmail-">
              <div id="gmail-m_-1329212427574809177gmail-:9ot"
                class="gmail-m_-1329212427574809177gmail-ii
                gmail-m_-1329212427574809177gmail-gt"
                style="font-size:0.875rem;direction:ltr;margin:8px 0px
                0px;padding:0px">
                <div id="gmail-m_-1329212427574809177gmail-:3l"
                  class="gmail-m_-1329212427574809177gmail-a3s
                  gmail-m_-1329212427574809177gmail-aXjCH"
style="overflow:hidden;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:small;line-height:1.5">
                  <div dir="ltr">
                    <div>I am using  <span
                        style="color:rgb(0,0,0);font-family:Helvetica,Arial"><b>add_isup_part([isup_msg_type][,extra_headers])</b></span></div>
                    <div>function from request and failure route to
                      local route  in <b>Opensips 3.0</b> 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.</div>
                    <div>------------------------------------------------------------------------</div>
                    <div><font color="#0000ff">Usage</font> : </div>
                    <div><br>
                    </div>
                    <div>
                      <div>        if(!isflagset(11) &&
                        $avp(tsi_types)=="SIP-I" ) {<br>
                                        $ru  = $ru + ";user=phone";<br>
                                       xlog("L_INFO","Adding isup part
                        ");<br>
                        <br>
                                        if(add_isup_part("Initial
                        address")) { <br>
                                                setflag(11);<br>
                                        }<br>
                        <br>
                                } else {<br>
                                        xlog("L_INFO","Removing isup
                        part "); <br>
                                       
                        remove_body_part("application/sdp","revert");<br>
                                }</div>
                      <div>------------------------------------------------------------------------------</div>
                      <div><span style="color:rgb(255,0,0)">Error </span><span
                          style="color:rgb(255,0,0)">:</span><br>
                      </div>
                      <div>Jul 15 10:46:35 sbcsbc opensips:
                        CRITICAL:core:yyerror: parse error in
                        /usr/local//etc/opensips/opensips.cfg:1282:28-29: <b>Command
                          <add_isup_part> cannot be used in the
                          block#012</b><br>
                        Jul 15 10:46:35 sbcsbc opensips:              
                         xlog("L_INFO","Adding isup part ");<br>
                        Jul 15 10:46:35 sbcsbc opensips: <br>
                        Jul 15 10:46:35 sbcsbc opensips:      
                        #011#011if(add_isup_part("Initial address")) { <br>
                        Jul 15 10:46:35 sbcsbc opensips:      
                        #011#011^~<br>
                        Jul 15 10:46:35 sbcsbc opensips: #011      
                         #011setflag(11);<br>
                        Jul 15 10:46:35 sbcsbc opensips: #011#011}<br>
                        Jul 15 10:46:35 sbcsbc opensips:
                        ERROR:core:parse_opensips_cfg: bad config file
                        (1 errors)<br>
                        Jul 15 10:46:35 sbcsbc opensips:
                        ERROR:core:main: failed to parse config file
                        (null)<br>
                        Jul 15 10:46:35 sbcsbc opensips:
                        NOTICE:core:main: Exiting....<br>
                      </div>
                      <div>----------------------------------------------------------------------------------</div>
                      <br
                        class="gmail-m_-1329212427574809177gmail-Apple-interchange-newline">
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <div><br>
            </div>
            -- <br>
            <div dir="ltr"
              class="gmail-m_-1329212427574809177gmail_signature">
              <div dir="ltr">Thanks,
                <div><br>
                </div>
                <div>Sagar</div>
              </div>
            </div>
          </div>
        </blockquote>
      </div>
      <br clear="all">
      <div><br>
      </div>
      -- <br>
      <div dir="ltr" class="gmail_signature">
        <div dir="ltr">Thanks,
          <div><br>
          </div>
          <div>Sagar</div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>