[asterisk-users] Can't get ANSWEREDTIME after hangup using ZAP
Charles Wang
lazy.charles at gmail.com
Tue Feb 20 14:25:31 MST 2007
Dear all,
I tried to make a call with PHP AGI.
$rc = execute_agi("EXEC DIAL ZAP/g1/$myphonenumber|60|rhHL(" .
($max_total_seconds * 1000) . ":60000:30000) ");
$rc = execute_agi("GET VARIABLE ANSWEREDTIME ");
And I can't get the answered time after caller hangup in this method.
But if I use a SIP channel as below:
$rc = execute_agi("EXEC DIAL SIP/$mysiptrunk/$myphonenumber|60|rhHL("
. ($max_total_seconds * 1000) . ":60000:30000) ");
$rc = execute_agi("GET VARIABLE ANSWEREDTIME ");
I can get the correct answered time.
Is any idea about it?
Is it the problem of my ZAP channel's configuration?
--
Best Regards
Charles
More information about the asterisk-users
mailing list