Guest User

Untitled

a guest
Dec 10th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. $starting_xml_root = $xml->getXmlRoot();
  2.  
  3. $numberOptions = fs::getNumberOptions($number);
  4.  
  5. // ---------------------------------------------------------------------
  6. // Pickup
  7. // ---------------------------------------------------------------------
  8.  
  9. if (isset($number->registry['pickup']) && $number->registry['pickup'] == 1) {
  10. $xml = Telephony::getDriver()->xml;
  11.  
  12. $xml->update('/action[@application="answer"]');
  13. $xml->update('/action[@application="set"][@data="intercept_unanswered_only=true"]');
  14. $xml->update('/action[@application="intercept"][@data="${db(select\/last_dial\/pickup_device_' . $destination->device_id . ')}"]');
  15. $xml->update('/action[@application="sleep"][@data="2000"]');
  16.  
  17. return;
  18. }
  19.  
  20. // ---------------------------------------------------------------------
  21. // Call Pickup
  22. // ---------------------------------------------------------------------
Add Comment
Please, Sign In to add comment