We have omitted
the implementation for this example.
header("Content-Type: text/xml");
echo "";
?>
file_put_contents("vars.txt", print_r($_POST, true));
?>
5. Now that we have done everything, it's time to give our application a shot.
Come back to the SIP phone, and dial into the application. Select your pizza,
size, and crust, the topping you want, and the quantity you want to order.
Listen to the confirmation; say yes, and bingo, the order is in!
How Did It Turn It All Around?
We used all the application variables we gathered in the prompt to confirm the
order. If you noticed we stuck a bargein="false" attribute on our
to
make sure nothing can disturb the process. Once we got the confirmation of the
order, we passed a list of variables to our PHP script.
The variables will come in PHP a little differently from what we mentioned.
Pages:
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242