I am trying the following API. I want this API to run on 3rd Jan 2010 at 15:13 hours. sched_api 010315132010 none originate sofia/external/1006@192.168.4.106 &playback(ivr/alarm.wav) But it is not getting activated on the maturity of this time. Can someone let me know the error in the time format. Regards Sharad -- View this message in context: http://n2.nabble.com/time-stamp-for-sched-api-tp4249284p4249284.html Sent from the freeswitch-users mailing list archive at Nabble.com.
On Mon, Jan 4, 2010 at 2:54 PM, Sharad <sharad@coraltele.com> wrote:
I am trying the following API. I want this API to run on 3rd Jan 2010 at 15:13 hours.
sched_api 010315132010 none originate sofia/external/1006@192.168.4.106 &playback(ivr/alarm.wav)
But it is not getting activated on the maturity of this time.
Can someone let me know the error in the time format.
unixtimestamp ......seconds since Jan 01 1970. -- wasim h. baig | principal consultant | convergence pk | +92 300 8508070 | peace be upon you ...
Thanks Mr. Baig.. So can you plz write the syntax for the same API if we want this to get executed on 4th Jan 2010 at 1800 hours. Regards Wasim Baig wrote:
On Mon, Jan 4, 2010 at 2:54 PM, Sharad <sharad@coraltele.com> wrote:
I am trying the following API. I want this API to run on 3rd Jan 2010 at 15:13 hours.
sched_api 010315132010 none originate sofia/external/1006@192.168.4.106 &playback(ivr/alarm.wav)
But it is not getting activated on the maturity of this time.
Can someone let me know the error in the time format.
unixtimestamp ......seconds since Jan 01 1970.
-- wasim h. baig | principal consultant | convergence pk | +92 300 8508070 | peace be upon you ...
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- View this message in context: http://n2.nabble.com/time-stamp-for-sched-api-tp4249284p4249417.html Sent from the freeswitch-users mailing list archive at Nabble.com.
You could open a bounty and pay someone to write it... also you can prepend it with a +sign... IE +60 and make it execute 60 seconds from NOW. /b On Jan 4, 2010, at 4:51 AM, Sharad wrote:
Thanks Mr. Baig..
So can you plz write the syntax for the same API if we want this to get executed on 4th Jan 2010 at 1800 hours.
Regards
Many programming languages already have functions to handle converting date/time to a unix timestamp. For example: http://www.php.net/manual/en/function.mktime.php takes date/time assuming the local timezone and returns a unix timestamp that could be used with sched_api. -- W
William Suffill wrote:
Many programming languages already have functions to handle converting date/time to a unix timestamp. For example: http://www.php.net/manual/en/function.mktime.php
takes date/time assuming the local timezone and returns a unix timestamp that could be used with sched_api.
-- W
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
thanks /b n william for your kind answer. regards sharad -- View this message in context: http://n2.nabble.com/time-stamp-for-sched-api-tp4249284p4253597.html Sent from the freeswitch-users mailing list archive at Nabble.com.
participants (4)
-
Brian West
-
Sharad
-
Wasim Baig
-
William Suffill