break; case "send_contact": send_contact($link_id, $option); break; /* Report Listing */ /* Report Listing */ case "report": report($link_id, $option); break; case "send_report": send_report($link_id, $option); break; /* Claim Listing */ /* Claim Listing */ case "claim": claim($link_id, $option); break; case "send_claim": send_claim($link_id, $option); break; /* Add Listing */ /* Add Listing */ case "addlisting": editlisting(0, $option); break; case "editlisting": editlisting($link_id, $option); break; case "savelisting": require_once JPATH_COMPONENT_SITE . DS . 'includes' . DS . 'diff.php'; savelisting($option);
echo "Error starting phone call: {$response->ErrorMessage}\n"; } } //Get list of running conferences that have not started $client = new TwilioRestClient($this->twilio_sid, $this->twilio_token); $ci =& get_instance(); $user_id = $ci->session->userdata('user_id'); $user = VBX_User::get($user_id); $base_uri = "Accounts/" . $this->twilio_sid; $claiming_conf = ""; if (array_key_exists('claim', $_REQUEST)) { $claiming_conf = $_REQUEST['claim']; $claim_phone_number = $user->devices[0]->value; $numbers = $ci->vbx_incoming_numbers->get_numbers(); if (count($numbers) > 0) { claim($client, $claiming_conf, $numbers[0]->name, $claim_phone_number, $this->twilio_sid); } } ?> <div class="vbx-plugin"> <h2>Calls Waiting</h2> <table> <thead> <tr> <th>Queue</th> <th>Caller</th> <th>Waiting</th> <th></th> </tr> </thead> <tbody id="call_waiting_body">