Active
Project:
VoIP Drupal
Version:
6.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Feb 2012 at 18:50 UTC
Updated:
28 Feb 2012 at 01:03 UTC
Looking at voiptwilio_menu(), definition is:
$items['voip/twilio/callhandler'] = array(
'title' => 'VoIP Twilio call handler',
'description' => 'Handles incoming calls from Twilio.',
// Note: Since both incoming calls and Twilio responses are received
// via the same callhandler menu, the specific call permissions are to
// be checked inside the call handler function itself.
'access callback' => TRUE,
'page callback' => '_voiptwilio_call_handler',
'type' => MENU_CALLBACK,
);
But, the callback signature is
function _voiptwilio_call_handler($twilio_action, $cid=NULL) {
Arguments won't seem to be getting passed to this from incoming calls. Once setting $twilio_action to 'process_inbound_calls' manually, it takes a phone call.
Not sure, but I think something is missing.
Comments
Comment #1
tamerzg commentedDid you set the url in Twilio settings to http://mysite.com/voip/twilio/callhandler/process_inbound_calls ?
Can you access http://mysite.com/voip/twilio/callhandler/process_inbound_calls in your browser? What do you see?
Comment #2
djdevinThanks, that was my own dumb copypasta issue.
Should $twilio_action be defaulted to NULL? It's possible to trigger a PHP warning by just accessing that URL without the argument present.
Comment #3
djdevin