Oh Edward

You are my Hero... Simple but perfect. Option II is ideal but as you know
this is Asterisk/*/everything..

Thanks to list
Kill

>> Can someone assist to unfold the secret on how to atleast to a count on
>> particular branch, say, if 2 is chosen, then we start count from the
>> time
>> the choice is made to the time the caller hangup or choice another
>> option
>>
>> i.e.
>> exten => s,1,Answer()
>> exten => s,n,Background(PLEASE ENTER YOU OPTION)
>>
>> exten => s,n,XXX ; //IS IT POSSIBLE TO START A STOPWATCH (COUNTER) HERE
>> exten => s,n,WaitExten(10)
>> exten => s,n,Goto(s,1)
>>
>> exten => 1,1,Answer()
>> exten => 1,n,AGI(POPULATE PREVIOUS BRANCH DATA INTO THE DB)
>> exten => 1,n,XXX ;(RE)START A COUNTER HERE
>> exten => 1,n,PLAYBACK(OPTION1 SELECTED);(RE)START A COUNTER HERE
>> exten => 1,n,Hangup
>>
>> exten => 2,1,Answer()
>> exten => 2,n,AGI(POPULATE PREVIOUS BRANCH DATA INTO THE DB)
>> exten => 2,n,XXX ;(RE)START A COUNTER HERE
>> exten => 2,n,PLAYBACK(OPTION2 SELECTED);(RE)START A COUNTER HERE
>> exten => 2,n,Hangup
>
> You could "start" your stopwatch with
>
>       exten = s,n,                    set(STOPWATCH=${EPOCH})
>
> instead of your extraneous answer()s and then in your "h" extension, stop
> the stopwatch with:
>
>       exten = h,n,                    set(STOPWATCH=$[${EPOCH} - 
> ${STOPWATCH}])
>
> You could also use resetcdr(w) at the start of each option. This will
> create a new CDR with the time spent on the previous option at each step
> in your dialplan. By setting the option number in a CDR variable after
> each CDR is written, the time spent in each option can be identified.
>
> Thanks in advance,
> ------------------------------------------------------------------------
> Steve Edwards      [EMAIL PROTECTED]      Voice: +1-760-468-3867 PST
> Newline                                             Fax: +1-760-731-3000
>



_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to