Skip to content

Commit

Permalink
get sip account that answer the call in DID group
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Apr 12, 2019
1 parent 5e2166e commit d85772a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions resources/asterisk/DidAgi.php
Original file line number Diff line number Diff line change
Expand Up @@ -307,10 +307,12 @@ public function call_did(&$agi, &$MAGNUS, &$CalcAgi, $destinationIvr = false)
$agi->verbose("DIAL $dialstr", 6);
$myres = $MAGNUS->run_dial($agi, $dialstr, $MAGNUS->agiconfig['dialcommand_param_call_2did']);

$answeredtime = $agi->get_variable("ANSWEREDTIME");
$answeredtime = $answeredtime['data'];
$dialstatus = $agi->get_variable("DIALSTATUS");
$dialstatus = $dialstatus['data'];
$sipaccount = $agi->get_variable("DIALEDPEERNUMBER");
$MAGNUS->sip_account = $sipaccount['data'];
$answeredtime = $agi->get_variable("ANSWEREDTIME");
$answeredtime = $answeredtime['data'];
$dialstatus = $agi->get_variable("DIALSTATUS");
$dialstatus = $dialstatus['data'];

$MAGNUS->stopRecordCall($agi);

Expand Down

0 comments on commit d85772a

Please sign in to comment.