<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">Hi,<br>
      <br>
      <br>
      If you are using cassandra-cli you can fill in the tables using
      something like this:<br>
      <br>
      version table:<br>
      <br>
      set version['location']['table_version']='1004';<br>
      set version['subscriber']['table_version']='6';<br>
      <br>
      and the subscriber table:<br>
      <br>
      set subscriber['userX']['domain']='domain.com';<br>
      set subscriber['userX']['password']='pass123';<br>
      <br>
      <br>
      Regards,<br>
      Anca<br>
      <br>
      <br>
      On 08/14/2012 04:26 PM, Boudewyn Ligthart wrote:<br>
    </div>
    <blockquote
cite="mid:D8261FE064C78B44B77EF7C4569D6CBF0D11AF60@DB3PRD0510MB380.eurprd05.prod.outlook.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Word 14 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        color:black;
        mso-fareast-language:EN-US;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span style="color:#1F497D">HI Anca,<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D">Thanks for
            pointing me to the latest GIT version, this compiles as per
            normal.<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D">Another
            question,<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D">Have you got
            pointers on how to install the tables / setup Cassandra.<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D">I have created
            the column families for location, subscriber, version but
            not yet filled these with data.<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D">Regards<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D">Bou<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
        <div>
          <div style="border:none;border-top:solid #B5C4DF
            1.0pt;padding:3.0pt 0cm 0cm 0cm">
            <p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext;mso-fareast-language:EN-GB"
                  lang="EN-US">From:</span></b><span
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext;mso-fareast-language:EN-GB"
                lang="EN-US"> <a class="moz-txt-link-abbreviated" href="mailto:sr-users-bounces@lists.sip-router.org">sr-users-bounces@lists.sip-router.org</a>
                [<a class="moz-txt-link-freetext" href="mailto:sr-users-bounces@lists.sip-router.org">mailto:sr-users-bounces@lists.sip-router.org</a>]
                <b>On Behalf Of </b>Anca Vamanu<br>
                <b>Sent:</b> 14 August 2012 13:39<br>
                <b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
                <b>Subject:</b> Re: [SR-Users] db_cassandra<o:p></o:p></span></p>
          </div>
        </div>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <div>
          <p class="MsoNormal">Hi,<br>
            <br>
            <br>
            I tried compiling the module with the latest 3.1 from git
            and indeed it did not compile initially.<br>
            This very simple patch that is attached was needed. There
            were some problems with implicit casts.<br>
            <br>
            I see that you are talking about 3.1.1 version, I have not
            tried with this exact version. You should maybe consider
            using the latest git for 3.1, it should also be more stable.<br>
            <br>
            <br>
            Regards,<br>
            Anca<br>
            <br>
            <br>
            <br>
            <br>
            <br>
            On 08/14/2012 01:05 PM, Boudewyn Ligthart wrote:<o:p></o:p></p>
        </div>
        <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
          <p class="MsoNormal">Hi,<o:p></o:p></p>
          <p class="MsoNormal">&nbsp;<o:p></o:p></p>
          <p class="MsoNormal">I am trying to get the db_cassandra
            working in kamailio 3.1.1 with thrift 0.6.1 API and however
            I get the following<br>
            compile error.<o:p></o:p></p>
          <p class="MsoNormal">&nbsp;<o:p></o:p></p>
          <p class="MsoNormal"><i>ol.h:33,</i><o:p></o:p></p>
          <p class="MsoNormal"><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from
              dbcassa_base.h:38,</i><o:p></o:p></p>
          <p class="MsoNormal"><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from
              dbcassa_base.cpp:47:</i><o:p></o:p></p>
          <p class="MsoNormal"><i>../../lib/srdb1/db.h:388:20: error:
              expected unqualified-id before &acirc;delete&acirc;</i><o:p></o:p></p>
          <p class="MsoNormal"><i>dbcassa_base.cpp: In function
              &acirc;ColumnVecPtr cassa_translate_query(const db1_con_t*, str*
              const*, const db_val_t*, str* const*, int, int, int*)&acirc;:</i><o:p></o:p></p>
          <p class="MsoNormal"><i>dbcassa_base.cpp:538:8: warning:
              format &acirc;%d&acirc; expects argument of type &acirc;int&acirc;, but argument 7
              has type
              &acirc;std::vector&lt;org::apache::cassandra::KeySlice&gt;::size_type
              {aka long unsigned int}&acirc; [-Wformat]</i><o:p></o:p></p>
          <p class="MsoNormal"><i>dbcassa_base.cpp:538:8: warning:
              format &acirc;%d&acirc; expects argument of type &acirc;int&acirc;, but argument 5
              has type
              &acirc;std::vector&lt;org::apache::cassandra::KeySlice&gt;::size_type
              {aka long unsigned int}&acirc; [-Wformat]</i><o:p></o:p></p>
          <p class="MsoNormal"><i>dbcassa_base.cpp:538:8: warning:
              format &acirc;%d&acirc; expects argument of type &acirc;int&acirc;, but argument 6
              has type
              &acirc;std::vector&lt;org::apache::cassandra::KeySlice&gt;::size_type
              {aka long unsigned int}&acirc; [-Wformat]</i><o:p></o:p></p>
          <p class="MsoNormal"><i>dbcassa_base.cpp:538:8: warning:
              format &acirc;%d&acirc; expects argument of type &acirc;int&acirc;, but argument 4
              has type
              &acirc;std::vector&lt;org::apache::cassandra::KeySlice&gt;::size_type
              {aka long unsigned int}&acirc; [-Wformat]</i><o:p></o:p></p>
          <p class="MsoNormal"><i>dbcassa_base.cpp:538:8: warning:
              format &acirc;%d&acirc; expects argument of type &acirc;int&acirc;, but argument 4
              has type
              &acirc;std::vector&lt;org::apache::cassandra::KeySlice&gt;::size_type
              {aka long unsigned int}&acirc; [-Wformat]</i><o:p></o:p></p>
          <p class="MsoNormal"><i>../../lib/srdb1/db_res.h: At global
              scope:</i><o:p></o:p></p>
          <p class="MsoNormal"><i>../../lib/srdb1/db_res.h:105:19:
              warning: inline function &acirc;db1_res_t* db_new_result()&acirc; used
              but never defined [enabled by default]</i><o:p></o:p></p>
          <p class="MsoNormal"><i>../../lib/srdb1/db_res.h:121:12:
              warning: inline function &acirc;int
              db_allocate_columns(db1_res_t*, unsigned int)&acirc; used but
              never defined [enabled by default]</i><o:p></o:p></p>
          <p class="MsoNormal"><i>../../lib/srdb1/db_res.h:98:12:
              warning: inline function &acirc;int db_free_columns(db1_res_t*)&acirc;
              used but never defined [enabled by default]</i><o:p></o:p></p>
          <p class="MsoNormal"><i>../../lib/srdb1/db_res.h:129:12:
              warning: inline function &acirc;int
              db_allocate_rows(db1_res_t*)&acirc; used but never defined
              [enabled by default]</i><o:p></o:p></p>
          <p class="MsoNormal"><i>../../lib/srdb1/db_row.h:74:12:
              warning: inline function &acirc;int db_allocate_row(const
              db1_res_t*, db_row_t*)&acirc; used but never defined [enabled by
              default]</i><o:p></o:p></p>
          <p class="MsoNormal"><i>../../lib/srdb1/db_res.h:111:12:
              warning: inline function &acirc;int db_free_result(db1_res_t*)&acirc;
              used but never defined [enabled by default]</i><o:p></o:p></p>
          <p class="MsoNormal"><i>make[1]: *** [dbcassa_base.o] Error 1</i><o:p></o:p></p>
          <p class="MsoNormal"><i>make: *** [install-modules] Error 1</i><o:p></o:p></p>
          <p class="MsoNormal"><i>&nbsp;</i><o:p></o:p></p>
          <p class="MsoNormal"><i>&nbsp;</i><o:p></o:p></p>
          <p class="MsoNormal">Anybody has got any ideas? <o:p></o:p></p>
          <p class="MsoNormal">&nbsp;<o:p></o:p></p>
          <p class="MsoNormal">Thanks in advance,<o:p></o:p></p>
          <p class="MsoNormal">&nbsp;<o:p></o:p></p>
          <p class="MsoNormal">Bou<o:p></o:p></p>
          <p class="MsoNormal">&nbsp;<o:p></o:p></p>
        </blockquote>
        <p class="MsoNormal" style="margin-bottom:12.0pt"><span
            style="font-size:12.0pt;font-family:&quot;Times New
            Roman&quot;,&quot;serif&quot;;mso-fareast-language:EN-GB"><o:p>&nbsp;</o:p></span></p>
      </div>
    </blockquote>
    <br>
    <br>
  </body>
</html>