Answer the question
In order to leave comments, you need to log in
How to get originate call duration in Asterisk?
Hello.
I implemented an outgoing call on the site using phpagi through the Originate method:
$actionID = md5($input_phone.$manager_phone.time()); // Уникальный ID
if ($asm->connect()) {
$call = $asm->send_request('Originate',
array(
'Channel'=>"Local/".$manager_phone."@from-internal",
'Context'=>'from-internal',
'Exten'=>$input_phone,
'Priority'=>'1',
'Callerid'=>"%ID оператора%",
'Async' => "yes",
'ActionID' => $actionID
));
$asm->disconnect();
}
Response: Success
ActionID: c78d1d8c43e9b14a
EventList: start
Message: Channels will follow
Event: CoreShowChannel
Duration: 00:16:57
...
Answer the question
In order to leave comments, you need to log in
Catch Event: OriginateResponse
Action: login
Username: test
Secret: test
Events: on
Action: Originate
Channel: SIP/331
Application: Hangup
ActionID: adaff
Async: yes
Event: OriginateResponse
Privilege: call,all
ActionID: adaff
Response: Success
Channel: SIP/331-000003e0
Context:
Exten:
Reason: 4
Uniqueid: 1441039425.992
CallerIDNum: <unknown>
CallerIDName: <unknown>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question