You are here

function twilio_voice_incoming in Twilio 7

Invokes twilio_voice_incoming hook.

Parameters

string $number: The sender's mobile number.

1 call to twilio_voice_incoming()
twilio_receive_voice in ./twilio.module
Callback for incoming voice calls.

File

./twilio.module, line 365
Twilio module

Code

function twilio_voice_incoming($number, $number_twilio, $options = array()) {
  $voice = array(
    'number' => $number,
    'number_twilio' => $number_twilio,
  );

  // Invoke a hook for the incoming message so other modules can do things.
  module_invoke_all('twilio_voice_incoming', $voice, $options);
  if (module_exists('rules')) {
    rules_invoke_event('twilio_voice_incoming', $voice);
  }
}