[asterisk-users] SAY TIME + PHPAGI + Timezone

SIP sip at arcdiv.com
Fri Jan 18 14:35:20 CST 2008


of course, that assumes you're reading the variable in the AGI.



SIP wrote:
> Use the Set(TZone=blah) command in the dialplan.  I.e.   
> Set(TZone=EST5EDT)
>
> N.
>
>
> Nitesh Divecha wrote:
>> Hello All,
>>
>> Is there any way to change the timezone on the fly? I have this 
>> little time clock program running on Asterisk system developed using 
>> PHPAGI. Currently, whenever user logs in, Asterisk will prompt the 
>> current system time using "$agi->say_time();" which executes "SAY 
>> TIME". Now the current timezone set on the system is "PST", and I 
>> have a request to prompt multiple timezones based on the users location.
>>
>> First part is easy to lookup from which area code the user is 
>> calling, now the second part is to set the timezone based on the area 
>> code and prompt the users correct time.
>>
>> For example, if 248 (MI) user dials into the system, then time clock 
>> has to prompt EST time and if 714 (CA) user dials in then prompt PST 
>> time.
>>
>> Any suggestions... Thanks
>>
>> Cheers,
>> Nitesh
>>
>>
>>
>>
>> _______________________________________________
>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>>
>> 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