As you may have guessed, this can be achieved with one tag. The
tag. We specify the server URL in the next attribute, and the
variables to pass in namelist. When control comes to this place, Prophecy
will make a request to the URL, passing these variables, and play back the
response to the caller online. The following code shows the VXML code for
the placeOrder form.
Chapter 9
[ 179 ]
4. On the server side, we need to create a new page called takeIVROrder.php.
We can do all the business logic for handling IVR orders there. We can find
a customer record from our database based on the caller ID of the person
ordering, or insert a new record for that customer. If we have record for the
customer in our database, we don't need to get their address; else, we need to
call her or him back and take the address. The following code is a sample that
simply writes out all the incoming variables to a text file.
Pages:
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241