[asterisk-users] Function TESTTIME example [SOLVED]

Olivier oza_4h07 at yahoo.fr
Thu Dec 29 03:12:21 CST 2011


2011/12/29, Mindaugas Jasiulis <mindaugas.jasiulis at mediafon.lt>:
> AEL2 ifTime use it too. AEL2 ifTime become the same GoToIfTime in the
> dialplan :)

I feel a bit shameful but I must say that it's now working on my system !
I don't understand why it didn't yesterday.

Anyway, thank you very much for you patience and guidance!

>
>
> On Dec 29, 2011, at 8:40 AM, Olivier wrote:
>
>> OK !
>> But AEL2's ifTime keyword do not use it, does it ?
>>
>> 2011/12/28, Mindaugas Jasiulis <mindaugas.jasiulis at mediafon.lt>:
>>> Hi,
>>>
>>> This function sets TESTTIME global variable and if TESTTIME variable is
>>> set,
>>> then GoToIfTime use time from this variable.
>>>
>>>
>>> On 2011.12.28, at 17:28, Olivier <oza_4h07 at yahoo.fr> wrote:
>>>
>>>> Hi,
>>>>
>>>> Thanks for replying.
>>>>
>>>> I'm afraid this :
>>>> [foobar]
>>>> exten => 123,1,Verbose(0,Into context ${CONTEXT})
>>>> exten => 123,n,Verbose(0,Time is ${STRFTIME()})
>>>> exten => 123,n,Set(TESTTIME()=2011/12/25 18:30:00 Europe/Vilnius)
>>>> exten => 123,n,Verbose(0,Time is ${STRFTIME()})
>>>> exten => 123,n,HangUp()
>>>>
>>>> ... gives this:
>>>>   -- Executing [123 at foobar:1] Verbose("SIP/7005-0000006b", "0,Into
>>>> context foobar") in new stack
>>>> Into context foobar
>>>>   -- Executing [123 at foobar:2] Verbose("SIP/7005-0000006b", "0,Time
>>>> is Wed Dec 28 16:25:59 2011") in new stack
>>>> Time is Wed Dec 28 16:25:59 2011
>>>>   -- Executing [123 at foobar:3] Set("SIP/7005-0000006b",
>>>> "TESTTIME()=2011/12/25 18:30:00 Europe/Vilnius") in new stack
>>>>   -- Executing [123 at foobar:4] Verbose("SIP/7005-0000006b", "0,Time
>>>> is Wed Dec 28 16:25:59 2011") in new stack
>>>> Time is Wed Dec 28 16:25:59 2011
>>>>   -- Executing [123 at foobar:5] Hangup("SIP/7005-0000006b", "") in new
>>>> stack
>>>>
>>>>
>>>> Do you see the same behaviour ?
>>>>
>>>>
>>>> 2011/12/28, Mindaugas Jasiulis <mindaugas.jasiulis at mediafon.lt>:
>>>>> Hi,
>>>>>
>>>>> I do not know, whether this is the best way to use TESTTIME function,
>>>>> but
>>>>> for me it is working in that way:
>>>>> exten => 123,n,Set(TESTTIME()=2011/12/25 18:30:00 Europe/Vilnius)
>>>>> OR
>>>>> You can use this:
>>>>> Set(__TESTTIME=${STRPTIME(2011-12-25 18:00:00,Europe/Vilnius,%Y-%m-%d
>>>>> %H:%M:%S)})
>>>>>
>>>>> Best regards,
>>>>> Mindaugas
>>>>>
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> Has someone a dialplan example using TESTTIME function (see core show
>>>>>> function TESTTIME) ?
>>>>>> I'm only getting replies such as "Function TESTTIME cannot be read".
>>>>>>
>>>>>> Regards
>>>>>
>>>>> --
>>>>> _____________________________________________________________________
>>>>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>>>>> New to Asterisk? Join us for a live introductory webinar every Thurs:
>>>>>              http://www.asterisk.org/hello
>>>>>
>>>>> asterisk-users mailing list
>>>>> To UNSUBSCRIBE or update options visit:
>>>>>  http://lists.digium.com/mailman/listinfo/asterisk-users
>>>>>
>>>>
>>>> --
>>>> _____________________________________________________________________
>>>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>>>> New to Asterisk? Join us for a live introductory webinar every Thurs:
>>>>              http://www.asterisk.org/hello
>>>>
>>>> asterisk-users mailing list
>>>> To UNSUBSCRIBE or update options visit:
>>>>  http://lists.digium.com/mailman/listinfo/asterisk-users
>>>
>>> --
>>> _____________________________________________________________________
>>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>>> New to Asterisk? Join us for a live introductory webinar every Thurs:
>>>               http://www.asterisk.org/hello
>>>
>>> asterisk-users mailing list
>>> To UNSUBSCRIBE or update options visit:
>>>   http://lists.digium.com/mailman/listinfo/asterisk-users
>>>
>>
>> --
>> _____________________________________________________________________
>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>> New to Asterisk? Join us for a live introductory webinar every Thurs:
>>               http://www.asterisk.org/hello
>>
>> asterisk-users mailing list
>> To UNSUBSCRIBE or update options visit:
>>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>                http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>



More information about the asterisk-users mailing list