<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hello,<br>
      <br>
      1) Yes, the main route block is always executed for SIP requests.<br>
      2) The t_on_branch gets executed only once for each outgoing
      branch - thus you can do different processing per each individual
      branch.<br>
      3) Correct<br>
      5) If a transaction was initiated by an INVITE request then the
      same transaction also includes ACK, only if the final response was
      negative.<br>
      6) You should take a look at the OpenSIPS webinars -
      <a class="moz-txt-link-freetext" href="http://www.opensips.org/Documentation/Webinars#toc7">http://www.opensips.org/Documentation/Webinars#toc7</a> - they contain
      both introduction to SIP and basic OpenSIPS scripting.<br>
      <br>
      Best Regards,<br>
      <pre class="moz-signature" cols="72">Vlad Paiu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a>
</pre>
      On 31.08.2013 13:14, Bogdan Chifor wrote:<br>
    </div>
    <blockquote
cite="mid:CAGP9oUWQpPdmsRr=yVZiwt4KwkDpMZ-saRwsSOVhEtgQJFQ8dg@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>
                <div>
                  <div>
                    <div>
                      <div>
                        <div>
                          <div>
                            <div>Hello,<br>
                              <br>
                            </div>
                            I would like to know better the opensips
                            script routes, but i cannot find any
                            resources that answer my questions
                            completely.<br>
                            <br>
                          </div>
                          Here are my questions:<br>
                          <br>
                        </div>
                        1.)When a request arrives the commands from the
                        route main block are always executed?<br>
                        <br>
                      </div>
                      2.) What is the purpose of the t_on_branch? Why
                      can't I simply call for instance route(1) (which
                      is like a function)? Aren't they similar?<br>
                      <br>
                    </div>
                    3.) I understood that a transaction contains a SIP
                    request and all the replies to that request and a
                    transaction is uniquely idenbtified by the branch ID
                    tag? Am i right?<br>
                    <br>
                  </div>
                  4.) When a reply arrives the commands from the
                  onreply_route main block are always executed, and only
                  after these commands are executed the onreply_route[1]
                  is called (if it was set previously with t_on_branch)?<br>
                  <br>
                </div>
                5.) A SIP transaction can contain multiple requests? Can
                you give me an example?<br>
                <br>
              </div>
              6.) Where can I find a more detailed documentation on the
              opensips script (with examples which are explained)?<br>
              <br>
            </div>
            Any help would be very appreciated.<br>
            <br>
          </div>
          Thank you,<br>
          <br>
        </div>
        Chifor Bogdan<br>
      </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>