[prev in list] [next in list] [prev in thread] [next in thread] 

List:       serusers
Subject:    Re: [SR-Users] Date Time with microsec
From:       Diego Nadares <dnadares () gmail ! com>
Date:       2017-04-28 13:45:29
Message-ID: D0EF0DBF-8B84-49B9-9952-F1DBD5EA838F () gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi Daniel,  

Thanks for your response. You are right. 
How can I get cached datetime with microsecs ? Or Is there any function to convert \
cached TV vars to the format I need?

$TV(s) - seconds (cached at first call per sip message)
$TV(u) - microseconds (cached at first call per sip message)





Cheers,

Diego

> El 28 abr. 2017, a las 03:50, Daniel-Constantin Mierla <miconda@gmail.com> \
> escribió: 
> Hello,
> 
> > On 28.04.17 04:00, Diego Nadares wrote:
> > Hi Guys,
> > 
> > Is to convert or obtain 
> > 
> > $TV(s) - seconds (cached at first call per sip message)
> > $TV(u) - microseconds (cached at first call per sip message)
> > 
> > to datetime.microsecs?
> > 
> > I'm trying to save 180/183 datetime (cached) like YYYY-MM-DD HH:mm:SS.microsecs
> > 
> > $dlg_var(ring_time) = $timef(%Y-%m-%d %H:%M:%S); <--this is current time, not \
> > cached $dlg_var(ring_time_micro) = $TV(u); <-- this is cached us
> > 
> if you mix cached with no cached values, then you get them from different points in \
> time and they are not accurate. 
> Cheers,
> Daniel
> -- 
> Daniel-Constantin Mierla
> www.twitter.com/miconda -- www.linkedin.com/in/miconda
> Kamailio Advanced Training - May 22-24 (USA) - www.asipto.com
> Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[Attachment #5 (text/html)]

<html><head><meta http-equiv="content-type" content="text/html; \
charset=utf-8"></head><body dir="auto"><div>Hi Daniel, \
&nbsp;</div><div><br></div><div>Thanks for your response. You are \
right.&nbsp;</div><div>How can I get cached datetime with microsecs ? Or Is there any \
function to convert cached TV vars to the format I need?</div><div><br></div><div><ul \
style="margin: 0px 0px 1.4em; padding: 0px 0px 0px 1.5em; list-style: square \
outside;"><li class="level1" style="padding: 0px; margin: 0px 0px 0px 1.5em;"><div \
class="li" style="margin: 0px; padding: 0px;"><span style="background-color: \
rgba(255, 255, 255, 0);">$TV(s) - seconds (cached at first call per sip \
message)</span></div></li><li class="level1" style="padding: 0px; margin: 0px 0px 0px \
1.5em;"><div class="li" style="margin: 0px; padding: 0px;"><span \
style="background-color: rgba(255, 255, 255, 0);">$TV(u) - microseconds (cached at \
first call per sip message)</span></div><div class="li" style="margin: 0px; padding: \
0px;"><span style="background-color: rgba(255, 255, 255, 0);"><br></span></div><div \
class="li" style="margin: 0px; padding: 0px;"><span style="background-color: \
rgba(255, 255, 255, 0);"><br></span></div><div class="li" style="margin: 0px; \
padding: 0px;"><span style="background-color: rgba(255, 255, 255, \
0);"><br></span></div><div class="li" style="margin: 0px; padding: 0px;"><span \
style="background-color: rgba(255, 255, 255, 0);"><br></span></div><div class="li" \
style="margin: 0px; padding: \
0px;"><br></div></li></ul></div><div><div>Cheers,</div><div \
id="AppleMailSignature"><br></div><div \
id="AppleMailSignature">Diego</div></div><div><br>El 28 abr. 2017, a las 03:50, \
Daniel-Constantin Mierla &lt;<a \
href="mailto:miconda@gmail.com">miconda@gmail.com</a>&gt; \
escribió:<br><br></div><blockquote type="cite"><div>  
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  
  
    <p>Hello,<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 28.04.17 04:00, Diego Nadares wrote:<br>
    </div>
    <blockquote cite="mid:CAP-r+er5=Zupr-kjSov5CfhVmD1e2KGPr3qW-LQmD89_PXB7OA@mail.gmail.com" \
type="cite">  <div dir="ltr">Hi Guys,
        <div><br>
        </div>
        <div>Is to convert or obtain&nbsp;</div>
        <div><br>
          <span style="color:rgb(51,51,51);font-size:14px">$TV(s) -
            seconds (cached at first call per sip message)</span><br>
          <div class="gmail-li" \
                style="font-size:14px;margin:0px;padding:0px;color:rgb(51,51,51)">$TV(u)
                
            - microseconds (cached at first call per sip message)</div>
          <div class="gmail-li" \
style="font-size:14px;margin:0px;padding:0px;color:rgb(51,51,51)"><span \
style="color:rgb(34,34,34);font-size:small"><br>  </span></div>
          <div class="gmail-li" \
style="font-size:14px;margin:0px;padding:0px;color:rgb(51,51,51)"><span \
style="color:rgb(34,34,34);font-size:small">to  datetime.microsecs?</span></div>
        </div>
        <div><br>
        </div>
        <div>I'm trying to save 180/183 datetime (cached) like
          YYYY-MM-DD HH:mm:SS.microsecs</div>
        <div><br>
        </div>
        <div>
          <div>$dlg_var(ring_time) = $timef(%Y-%m-%d %H:%M:%S);
            &lt;--this is current time, not cached</div>
          <div>$dlg_var(ring_time_micro) = $TV(u); &lt;-- this is cached
            us</div>
        </div>
        <div><br>
        </div>
      </div>
    </blockquote>
    if you mix cached with no cached values, then you get them from
    different points in time and they are not accurate.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" \
href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a \
class="moz-txt-link-abbreviated" \
href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a> Kamailio \
Advanced Training - May 22-24 (USA) - <a class="moz-txt-link-abbreviated" \
href="http://www.asipto.com">www.asipto.com</a> Kamailio World Conference - May 8-10, \
2017 - <a class="moz-txt-link-abbreviated" \
href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>  

</div></blockquote><blockquote \
type="cite"><div><span>_______________________________________________</span><br><span>Kamailio \
(SER) - Users Mailing List</span><br><span><a \
href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a></span><br><span><a \
href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kama \
ilio.org/cgi-bin/mailman/listinfo/sr-users</a></span><br></div></blockquote></body></html>



[Attachment #6 (text/plain)]

_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic