Archives : June-2016

Writing events to a Calendar with PHP using the Google Calendar API 3 and a Service Account (no user) Writing events to a Calendar with PHP using the Google Calendar API 3 and a Service Account (no user). 1. Download Google API’s PHP Client First download the Google API’s PHP Client code by following these instructions:https://code.google.com/p/google-api-php-client/. ..

Read more

Here’s the source for a php/agi file and dialplan sample I made, which can help you implement what you need : #extensions.conf exten => 12345,1,Goto(dtmf-recording,${EXTEN},1) [dtmf-recording] exten => _X.,1,Answer exten => _X.,2,Set(TIMEOUT(digits)=5) exten => _X.,3,Set(TIMEOUT(response)=10) exten => _X.,4,Set(TIMESTAMP=${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}) exten => _X.,n,Read(DTMF|/var/lib/asterisk/agi-bin/sounds/whatever) exten => _X.,n,Hangup exten => h,1,Deadagi(agi-bin/report_dtmf.php|${TIMESTAMP}|${DTMF}) ————————————————— report_dtmf.php : <?php set_time_limit(30); require_once “phpagi.php”; declare(ticks ..

Read more

<?php function post_to_url($url, $data) { $fields = ”; foreach ($data as $key => $value) { $fields .= $key . ‘=’ . $value . ‘&’; } rtrim($fields, ‘&’); $post = curl_init(); curl_setopt($post, CURLOPT_URL, $url); curl_setopt($post, CURLOPT_POST, count($data)); curl_setopt($post, CURLOPT_POSTFIELDS, $fields); curl_setopt($post, CURLOPT_RETURNTRANSFER, 1); $result = curl_exec($post); curl_close($post); return $result; } $data = array(“mobile1″=>”1111111″,”mobile2″=>”123456789”, “fname”=>”Bill”,”lname”=>”Clinton”,”dstatus”=>”wait”,”rstatus”=>”old”, “server_ipadr”=>”192.168.1.120″,”trans_id”=>”5″,”time_of_meet”=>”15min”,”server_id”=>”101″); $surl ..

Read more

Web services ( application services ) is one of the most important part of today development where we ceneteralized or data and allow user to access that data from different sources like web, software, app etc.. Web service provide Interoperability between two different language.  Web service are easy to understand or to made we can easily create ..

Read more

vicidial_log Field Name Description Location uniqueid unique id for record lead_id Lead Identifier /vicidial/admin_search_lead.php list_id List Name vicidial/admin.php?ADD=100 campaign_id Campaign Name vicidial/admin.php?ADD=10 call_date Call Date and Time /vicidial/user_stats.php?user= start_epoch Start of Call end_epoch End of Call length_in_sec Length of Call in seconds /vicidial/user_stats.php?user= status Dispositioned Status given at end of call Note this may no ..

Read more

recording_log Field Name Description Location recording_id Primary Key for this table channel asterisk channel when call was live vicidial/admin_modify_lead.php?lead_id=#### server_ip IP address of server user is connected to extension could be callerid of the client or extension call was ultimately sent to start_time start time of call start_epoch start time of call in unix epoch ..

Read more

vicidial_agent_log Field Name Description Location agent_log_id Primary Key for this table user User Name ID field vicidial/AST_agent_time_detail.php server_ip IP address of server user is connected to vicidial/AST_usergroup_login_report.php event_time Time logged for start of event or call lead_id link to vicidial_list.lead_id campaign_id Campaign user is logged into /vicidial/AST_agent_time_detail.php pause_epoch start of agent pause time pause_sec length ..

Read more

vicidial_closer_log Field Name Description Location closecallid closed call table Primary key lead_id ID of Lead vicidial/admin_modify_lead.php?lead_id= list_id ID of List vicidial/admin_modify_lead.php?lead_id= campaign_id Alpha Numeric Campaign ID from Vicidial Campaigns call_date Date and Time call was made start_epoch Start of Call Time end_epoch End of Call Time length_in_sec Total Length of call in seconds vicidial/AST_agent_performance_detail.php status ..

Read more