It looks like there are two problems with $xml->TwilioResponse->call
.
$xml
contains the TwilioResponse
element (the "document element"), $xml->TwilioResponse
is incorrect.- (XML and) SimpleXML element names are case-sensitive,
call
should be Call
.
Give $xml->Call
a spin.