<!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">
    Hi, <br>
    <br>
    On 02/08/2013 12:17 AM, Pink Cupcake wrote:
    <blockquote
cite="mid:CAOVzaQG5bjGJHhXJfPsSi-TyitLd3Zh1pVYkwW5KoGTy577_FQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi Bogdan-Andrei,
        <div><br>
        </div>
        <div style="">Your response really doesn't help me or deal with
          the questions I laid out in my original post. Perhaps I was
          not being clear. Let me start over.</div>
        <div style="">
          <br>
        </div>
      </div>
    </blockquote>
    Well, my answer was related to the error logs you posted :).<br>
    <br>
    <blockquote
cite="mid:CAOVzaQG5bjGJHhXJfPsSi-TyitLd3Zh1pVYkwW5KoGTy577_FQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div style=""><br>
        </div>
        <div style=""><br>
        </div>
        <div style="">I need to implement an automated testing scenario
          on an OS X build machine.</div>
        <div style=""><br>
        </div>
        <div style="">The test requires two different SIP UAs -- which
          are both running locally on the same machine -- to
          successfully engage in a SIP call.&nbsp;In order for two UAs to
          talk to one another, they need to be registered with a SIP
          server.</div>
        <div style=""><br>
        </div>
        <div style="">I am trying to determine if OpenSIPS can be used
          as the server component in my testing scenario.</div>
        <div style=""><br>
        </div>
        <div style="">Since this is an integration test and doesn't
          require any state being retained, the test steps look like
          this: (1) bring up an OpenSIPS server in userspace, (2) have
          the two SIP UA clients register with that server, as simply as
          possible, (3) have the two SIP UA clients engage in and then
          end a SIP call, (4) stop the SIP UA clients, (5) shut down the
          server.</div>
        <div style=""><br>
        </div>
        <div style="">If anything is unclear from the above, please
          reply back.</div>
      </div>
    </blockquote>
    Clear and no issues here,<br>
    <br>
    <blockquote
cite="mid:CAOVzaQG5bjGJHhXJfPsSi-TyitLd3Zh1pVYkwW5KoGTy577_FQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div style=""><br>
        </div>
        <div style=""><br>
        </div>
        <div style=""><br>
        </div>
        <div style="">Please can someone answer the following:</div>
        <div style="">
          <br>
        </div>
        <div>If I can run OpenSIPS in userspace, I would also not like
          to have it "installed" on the build machine. I used the
          "prefix" parameter to `make install` into a separate directory
          and I am attempting to run OpenSIPS from that directory.</div>
        <div style="">&nbsp;It looks like I can run OpenSIPS in userspace. Is
          that correct?</div>
      </div>
    </blockquote>
    true<br>
    <blockquote
cite="mid:CAOVzaQG5bjGJHhXJfPsSi-TyitLd3Zh1pVYkwW5KoGTy577_FQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div style=""><br>
        </div>
        <div style="">From the documentation is looks like OpenSIPS does
          not use a database by default, and keeps everything in memory.
          Is that correct?</div>
      </div>
    </blockquote>
    true<br>
    <blockquote
cite="mid:CAOVzaQG5bjGJHhXJfPsSi-TyitLd3Zh1pVYkwW5KoGTy577_FQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div style=""><br>
        </div>
        <div style="">Can any SIP UA client "REGISTER" with OpenSIPS
          when it is launched in the "default" mode? If so, is there any
          special way the clients should send the request?</div>
      </div>
    </blockquote>
    if using the opensips default script, no authentication will be
    required - but you need to use in the REGISTER RURI the IP of the
    server (so that opensips will consider them be handled locally).<br>
    <blockquote
cite="mid:CAOVzaQG5bjGJHhXJfPsSi-TyitLd3Zh1pVYkwW5KoGTy577_FQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div style="">
          <br>
        </div>
        <div style="">If it is necessary for OpenSIPS to be run with a
          database in order to allow clients to register? If so, will
          the db_text module suffice? If so, how do I perform this
          configuration (given my testing scenario)?</div>
      </div>
    </blockquote>
    no, no need for DB - by default, in cfg, the usrloc module comes
    with no DB support.<br>
    <br>
    Regards,<br>
    Bogdan<br>
    <blockquote
cite="mid:CAOVzaQG5bjGJHhXJfPsSi-TyitLd3Zh1pVYkwW5KoGTy577_FQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div style=""><br>
        </div>
        <div style=""><br>
        </div>
        <div style="">PKCK</div>
        <div style=""><br>
        </div>
        <div class="gmail_extra"><br>
          <br>
          <div class="gmail_quote">On Thu, Feb 7, 2013 at 5:13 AM,
            Bogdan-Andrei Iancu <span dir="ltr">&lt;<a
                moz-do-not-send="true" href="mailto:bogdan@opensips.org"
                target="_blank">bogdan@opensips.org</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 bgcolor="#ffffff" text="#000000"> <tt>Hi,<br>
                  <br>
                  Without a trace I cannot tell for sure, but I suspect
                  your clients send several REGISTER requests without
                  increasing the CSEQ no (which is mandatory) - this is
                  the meaning of the error you get.<br>
                  <br>
                  So, to be sure, make a network capture with the sip
                  traffic (ngrep) and see what are the replies from
                  opensips.<br>
                  <br>
                  Regards,<br>
                </tt>
                <pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
                <div>
                  <div class="h5"> <br>
                    On 02/07/2013 12:01 AM, Pink Cupcake wrote: </div>
                </div>
                <blockquote type="cite">
                  <div>
                    <div class="h5">
                      <div dir="ltr">
                        <div>Hello,</div>
                        <div><br>
                        </div>
                        <div>I'm investigating the suitability of
                          OpenSIPS for use in a new system we are
                          designing. Not only for use in a production
                          environment, but also how it can be used to
                          facilitate automated integration tests.</div>
                        <div><br>
                        </div>
                        <div>I have a automated testing scenario where I
                          need to have two SIP UAs that need to have a
                          SIP session. What I would like to do is bring
                          up a SIP server (in userspace) before the
                          integration test starts, and bring it down
                          after the integration test ends
                          (fails/succeeds). The automated test will run
                          on OS X.</div>
                        <div><br>
                        </div>
                        <div>I downloaded OpenSIPS and built it on my
                          iMac without any major problems. I am able to
                          run it in userspace simply by calling it from
                          the command line like `/sbin/opensips -D -f
                          /path/to/opensips.cfg`.</div>
                        <div><br>
                        </div>
                        <div>In section D of the INSTALL file, "opensips
                          with Persistent Data Storage", it says:</div>
                        <div><br>
                        </div>
                        <div>"The default configuration is very simple
                          and features many simplifications.&nbsp;</div>
                        <div>In particular, it does not authenticate
                          users and loses User Location database&nbsp;</div>
                        <div>on reboot. To provide persistence, keep
                          user credentials and remember users'&nbsp;</div>
                        <div>locations across reboots, opensips can be
                          configured to use MySQL. Before you</div>
                        <div>proceed, you need to make sure MySQL is
                          installed on your box."</div>
                        <div><br>
                        </div>
                        <div>This sounds ideal to me; I don't need any
                          real kind of account management or
                          authentication. I would like OpenSIPS to
                          start, accept whatever REGISTER/INVITE from my
                          two UAs, and then stop after I'm done. I would
                          prefer not to require any database and keep it
                          all in-memory, so there's nothing to clean up
                          before or after the test (and no other
                          dependencies to clean up before and after,
                          e.g. MySQL databases).</div>
                        <div><br>
                        </div>
                        <div>However, I can't seem to connect a SIP UA
                          client to OpenSIPS when it's started up like
                          this. I am trying to connect with Jitsi, a Mac
                          client, as well as the ipjsua test app that
                          ships with the pjsip C library. (I am able to
                          connect both of those to the <a
                            moz-do-not-send="true"
                            href="http://sip2sip.info" target="_blank">sip2sip.info</a>
                          service, so I know they are both functional.)</div>
                        <div><br>
                        </div>
                        <div>With Jitsi, I set up a SIP account with
                          Advanced settings (username: test1, password:
                          test1, display name: test1, registrar:
                          127.0.0.1, port: 5060, manual proxy
                          configuration, proxy: 127.0.0.1, port: 5060).&nbsp;</div>
                        <div><br>
                        </div>
                        <div>Log output from opensips in Console.app
                          looks like this:</div>
                        <div><br>
                        </div>
                        <div>13-02-06 1:48:21.934 PM opensips:
                          WARNING:core:warn: warning in config file
                          /path/to/opensips-with-local-changes.cfg, line
                          50, column 13-16: tls support not compiled in</div>
                        <div>13-02-06 1:48:22.010 PM opensips:
                          WARNING:core:main: no fork mode&nbsp;</div>
                        <div>13-02-06 1:48:22.011 PM opensips:
                          NOTICE:core:main: version: opensips
                          1.8.2-notls (x86_64/darwin)</div>
                        <div>13-02-06 1:48:22.013 PM opensips:
                          NOTICE:signaling:mod_init: initializing module
                          ...</div>
                        <div>13-02-06 1:50:58.328 PM opensips:
                          ERROR:registrar:update_contacts: invalid cseq
                          for aor &lt;test1&gt;</div>
                        <div>13-02-06 1:51:02.335 PM opensips:
                          ERROR:registrar:update_contacts: invalid cseq
                          for aor &lt;test1&gt;</div>
                        <div>13-02-06 1:51:06.342 PM opensips:
                          ERROR:registrar:update_contacts: invalid cseq
                          for aor &lt;test1&gt;</div>
                        <div>...</div>
                        <div><br>
                        </div>
                        <div>With ipjsua/pjsip, I use the following
                          configuration switches:&nbsp;</div>
                        <div><br>
                        </div>
                        <div>--id <a moz-do-not-send="true"
                            href="mailto:sip%3Atest1@127.0.0.1"
                            target="_blank">sip:test1@127.0.0.1</a></div>
                        <div>--registrar <a moz-do-not-send="true">sip:127.0.0.1</a></div>
                        <div>--realm *</div>
                        <div>--username test1</div>
                        <div>--password test1</div>
                        <div>--nameserver 127.0.0.1</div>
                        <div>--outbound <a moz-do-not-send="true">sip:127.0.0.1</a></div>
                        <div><br>
                        </div>
                        <div>Log output in Console.app looks the same as
                          with Jitsi except for the "invalid cseq"
                          lines:</div>
                        <div><br>
                        </div>
                        <div>13-02-06 1:56:39.004 PM opensips:
                          ERROR:registrar:update_contacts: invalid cseq
                          for aor &lt;&gt;</div>
                        <div><br>
                        </div>
                        <div><br>
                        </div>
                        <div>What do I need to do to run OpenSIPS in
                          userspace, have it accept connections from my
                          two SIP UAs, allow them to call each other,
                          and do it all without requiring a database
                          running?</div>
                        <div><br>
                        </div>
                        <div>Do I absolutely require a database? If so,
                          can someone explain how to configure the
                          db_text module to work for my testing
                          scenario?</div>
                        <div><br>
                        </div>
                        <div>Thanks!</div>
                        <div><br>
                        </div>
                      </div>
                    </div>
                  </div>
                  <pre><fieldset></fieldset>
_______________________________________________
Users mailing list
<a moz-do-not-send="true" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
                </blockquote>
              </div>
            </blockquote>
          </div>
          <br>
        </div>
      </div>
    </blockquote>
  </body>
</html>