<html><head></head><body><div style="color:#000; background-color:#fff; font-family:標楷體, dfkai-sb;font-size:16px"><div id="yui_3_16_0_ym19_1_1518589825317_27640">Hi Bogdan,</div><div id="yui_3_16_0_ym19_1_1518589825317_27685"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1518589825317_27745">It returns the postgres data type uuid. I put that in acc extra field to keep track calls. <br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1518589825317_27686"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1518589825317_27776">If I use following, I'm not getting the warning anymore. <br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1518589825317_27794"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1518589825317_27804">avp_db_query("SELECT uuid_generate_v1mc()::varchar","$avp(callid)")</div><div dir="ltr" id="yui_3_16_0_ym19_1_1518589825317_27805"><br></div><div id="yui_3_16_0_ym19_1_1518589825317_27635"><span></span></div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: 標楷體, dfkai-sb; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 16px;"> <div dir="ltr"><font size="2" face="Arial"> On Wednesday, 14 February 2018, 14:55, Bogdan-Andrei Iancu <bogdan@opensips.org> wrote:<br></font></div>  <br><br> <div class="y_msg_container"><div id="yiv0243832804"><div>
    <tt>Hi Pasan,<br clear="none">
      <br clear="none">
      But from the DB point of view, what data type does your procedure
      return ?<br clear="none">
      <br clear="none">
      Regards,<br clear="none">
    </tt>
    <pre class="yiv0243832804moz-signature">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a rel="nofollow" shape="rect" class="yiv0243832804moz-txt-link-freetext" target="_blank" href="http://www.opensips-solutions.com/">http://www.opensips-solutions.com</a>
OpenSIPS Summit 2018
  <a rel="nofollow" shape="rect" class="yiv0243832804moz-txt-link-freetext" target="_blank" href="http://www.opensips.org/events/Summit-2018Amsterdam">http://www.opensips.org/events/Summit-2018Amsterdam</a>
</pre>
    <div class="yiv0243832804yqt6330490175" id="yiv0243832804yqt58037"><div class="yiv0243832804moz-cite-prefix">On 02/14/2018 08:51 AM, Pasan Meemaduma
      via Users wrote:<br clear="none">
    </div>
    <blockquote type="cite">
      <div style="color:#000;background-color:#fff;font-family:標楷體, dfkai-sb;font-size:16px;">
        <div id="yiv0243832804yui_3_16_0_ym19_1_1518589825317_3344">Hi List,<br clear="none">
        </div>
        <div id="yiv0243832804yui_3_16_0_ym19_1_1518589825317_3333"><br clear="none">
        </div>
        <div dir="ltr" id="yiv0243832804yui_3_16_0_ym19_1_1518589825317_3332">I got
          another issue where opensips issue a warning I'm trying to
          load a uuid from a postgres database as opensips doesn't have
          a built-in function to generate a uuid. How do I get rid of
          this warning ?</div>
        <div dir="ltr" id="yiv0243832804yui_3_16_0_ym19_1_1518589825317_3331"><br clear="none">
        </div>
        <div dir="ltr" id="yiv0243832804yui_3_16_0_ym19_1_1518589825317_3334"><br clear="none">
        </div>
        <div dir="ltr" id="yiv0243832804yui_3_16_0_ym19_1_1518589825317_3330">WARNING:db_postgres:db_postgres_get_columns:
          unhandled data type column (uuid_generate_v1mc) type id
          (2950), use DB_STRING as default<br id="yiv0243832804yui_3_16_0_ym19_1_1518589825317_3288" clear="none">
        </div>
        <div dir="ltr" id="yiv0243832804yui_3_16_0_ym19_1_1518589825317_3335"><br clear="none">
        </div>
        <div dir="ltr" id="yiv0243832804yui_3_16_0_ym19_1_1518589825317_3329">Its
          caused by following line in my config</div>
        <div dir="ltr" id="yiv0243832804yui_3_16_0_ym19_1_1518589825317_3328"><br clear="none">
        </div>
        <div dir="ltr" id="yiv0243832804yui_3_16_0_ym19_1_1518589825317_5015">avp_db_query("SELECT
          uuid_generate_v1mc()","$avp(callid)");</div>
        <div dir="ltr" id="yiv0243832804yui_3_16_0_ym19_1_1518589825317_3327"><br clear="none">
        </div>
        <div dir="ltr" id="yiv0243832804yui_3_16_0_ym19_1_1518589825317_3326"><br clear="none">
        </div>
        <div dir="ltr" id="yiv0243832804yui_3_16_0_ym19_1_1518589825317_3218">does
          this mean I need to convert it to string before returning from
          postgres via the sql I use ?</div>
        <div dir="ltr" id="yiv0243832804yui_3_16_0_ym19_1_1518589825317_5033"><br clear="none">
        </div>
      </div>
      <br clear="none">
      <fieldset class="yiv0243832804mimeAttachmentHeader"></fieldset>
      <br clear="none">
      <pre>_______________________________________________
Users mailing list
<a rel="nofollow" shape="rect" class="yiv0243832804moz-txt-link-abbreviated" ymailto="mailto:Users@lists.opensips.org" target="_blank" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a rel="nofollow" shape="rect" class="yiv0243832804moz-txt-link-freetext" target="_blank" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote></div>
    <br clear="none">
  </div></div><br><br></div>  </div> </div>  </div></div></body></html>