<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    <tt>Hi Dani,<br>
      <br>
      If you do parallel forking to all 5 registrations of the client
      and all fails, the failure route is triggered only once (as all
      branches belong to the same transaction and failure route is
      triggered when the transaction fails).<br>
      <br>
      So the final answer -&gt; one time.<br>
      <br>
      Regards<br>
    </tt>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
    <br>
    On 02/15/2013 12:22 PM, Dani Popa wrote:
    <blockquote
cite="mid:CAEOhXaY=+E1=cvytSRpKWarsJ7rk8rHYk79y9uoLEa_yEu8rzg@mail.gmail.com"
      type="cite">
      <div dir="ltr">Five SIP clients with the same username.
        <div><br>
        </div>
        <div>Dani<br>
          <div class="gmail_extra"><br>
            <br>
            <div class="gmail_quote">On Fri, Feb 15, 2013 at 12:19 PM,
              Dani Popa <span dir="ltr">&lt;<a moz-do-not-send="true"
                  href="mailto:dani.popa@gmail.com" target="_blank">dani.popa@gmail.com</a>&gt;</span>
              wrote:<br>
              <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
                0.8ex; border-left: 1px solid rgb(204, 204, 204);
                padding-left: 1ex;">
                <div dir="ltr">Hi,
                  <div><br>
                  </div>
                  <div>Regarding msilo module and example from the
                    documentation, one simple question:</div>
                  <div><br>
                  </div>
                  <div>if i have 5 clients already registered and non of
                    them know IM(message sip method), on next
                    failure_route(it was taken from modules
                    documentation). haw many times the message is stored
                    in database ? In fact the question is, because of
                    sip forking, how many times the IM message is stored
                    in db with m_store on failure_route.</div>
                  <div><br>
                  </div>
                  <div>Thanks,</div>
                  <div>Dani</div>
                  <div><br>
                  </div>
                  <div>
                    <pre style="padding-left: 15pt; background-color: rgb(254, 254, 238); border: 1px solid rgb(153, 204, 204);">failure_route[1] {
    # forwarding failed -- check if the request was a MESSAGE 
    if (!method=="MESSAGE")
    {
        exit;
    };
    
    log(1,"MSILO:the downstream UA doesn't support MESSAGEs\n");
    # we have changed the R-URI with the contact address, ignore it now
    if (m_store("$ou"))
    {
        log("MSILO: offline message stored\n");
        t_reply("202", "Accepted"); 
    }else{
        log("MSILO: offline message NOT stored\n");
        t_reply("503", "Service Unavailable");
    };
}</pre>
                  </div>
                  <span class="HOEnZb"><font color="#888888">
                      <div>
                        <div><br>
                        </div>
                        -- <br>
                        Dani Popa
                      </div>
                    </font></span></div>
              </blockquote>
            </div>
            <br>
            <br clear="all">
            <div><br>
            </div>
            -- <br>
            Dani Popa
          </div>
        </div>
      </div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
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>
  </body>
</html>