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
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

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

Reply via email to