Using the TwiML Voice: verb to collect a voice message, save it and transcribe it.
I've got a PHP file to generate an email and the end to end seems to be working fine.
My problem is that, in an early step, I collect an access code from the caller which does a lookup for the customer info. I use that info in a subsequent step to personalize the experience.
Now I want to send the collected info into the transcribeCallback definition so I can include it in the email that alerts pagerduty to call the customer back. However, when I add additional query strings on the url for transcribeCallback it generates an error.
<Record action="/v2/goodbye.xml" timeout="15" transcribe="true" transcribeCallback="/v2/processtrans.php"/>
The email works and I have all the default values like TranscriptionText and TranscriptionUrl, but I don't know how to get access to my own values like customer code, name, email, etc.
Before I started using the PHP handlers, I used the built-in twimlets setup:
<Record action="/goodbye.xml" timeout="15" transcribe="true" transcribeCallback="http://twimlets.com/voicemail?Email=mysupport@pagerduty.com"/>