[asterisk-users] asterisk hangs on STRPTIME

Baji Panchumarti baji.panchumarti at gmail.com
Sun Oct 7 20:56:39 CDT 2007


 could this be the reason for my problem ?
  ( I am using a 64 bit AMD processor )


 2007-09-12 20:12 +0000 [r82285]  Tilghman Lesher <tlesher at digium.com>

  * main/stdtime/private.h, main/stdtime/tzfile.h,
    include/asterisk/localtime.h, main/stdtime/localtime.c: Working
    on issue #10531 exposed a rather nasty 64-bit issue on
    ast_mktime, so we updated the localtime.c file from source.
    Next we'll have to write ast_strptime to match.


1.4.12 changelog

http://svn.digium.com/view/asterisk/tags/1.4.12/ChangeLog?view=markup

 thnx,

 -baji.

--

  On 10/7/07, I  wrote:

>  hello,
>
>   running asterisk   1.4.11   on   CentOS 4.5
>
>  I am getting no response on function STRPTIME()  the system just hangs,
>  STRFTIME() is working fine as seen below. Same thing happens whether
>  I called in from a softphone or via teliax.
>
>
>  While executing the following code  :
>
> ;
>    exten => s,n,Set(v_ts=)
>   exten => s,n,Set(v_ts=${STRFTIME(|America/New_York|%Y-%m-%d)})
>    exten => s,n,NoOp(${v_ts})
> ;
>    exten => s,n,Set(v_ts=)
>   exten => s,n,Set(v_ts=${STRPTIME(2007-10-06
05:04:03|America/New_York|%Y-%m-%d %H:%M:%S)})
>   exten => s,n,NoOp(${v_ts})
>  ;
>
> I get the output :
>
>  -- Executing [ s at return_values:6] Set("IAX2/4883-1", "v_ts=") in new
stack
>  -- Executing [s at return_values:7] Set("IAX2/4883-1", "v_ts=2007-10-07") in
new stack
>  -- Executing [s at return_values:8] NoOp("IAX2/4883-1", "2007-10-07") in new
stack
>   -- Executing [s at return_values:9] Set("IAX2/4883-1", "v_ts=") in new
stack
>
>
>  If this is a reported bug that has been fixed in  1.4.12, I can upgrade
to it,
>  but I'd like to know.
>
>  tia.
>
>  -baji.
>
> --
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20071007/0b886b85/attachment.htm 


More information about the asterisk-users mailing list