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/ac8be460/attachment.htm
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-0605: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 newstack> -- Executing [s at return_values:7] Set("IAX2/4883-1", "v_ts=2007-10-07") innew stack> -- Executing [s at return_values:8] NoOp("IAX2/4883-1", "2007-10-07") in newstack> -- Executing [s at return_values:9] Set("IAX2/4883-1", "v_ts=") in newstack> > > If this is a reported bug that has been fixed in 1.4.12, I can upgradeto 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
Successful Post mortem : Output for below as seen on the 32-bit machine for STRPTIME -- Executing [s at return_values:6] Set("IAX2/4883-2", "v_ts=") in new stack -- Executing [s at return_values:7] Set("IAX2/4883-2", "v_ts=2007-10-08") in new stack -- Executing [s at return_values:8] NoOp("IAX2/4883-2", "2007-10-08") in new stack -- Executing [s at return_values:9] Set("IAX2/4883-2", "v_ts=") in new stack -- Executing [s at return_values:10] Set("IAX2/4883-2", "v_ts=1191665043") in new stack -- Executing [s at return_values:11] NoOp("IAX2/4883-2", "1191665043") in new stack Tilghman <= Gracee -baji. -- On 10/7/07, Baji Panchumarti <baji.panchumarti at gmail.com> 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 newstack> -- 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 newstack> > > 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/20071008/ca7fceef/attachment.htm