Find here a small example about how to implement a VoiceXML callback feature for your IVR service. VXI* won’t pikup the call of the caller, a ringback tone is playing before handup. Once the call is hangup, the platform callback the caller (caller ID or session.connection.remote.uri). A callback service is a very good idea to avoid call charges for your customers when they are calling you.

account1:

  1. Call 0001
  2. the IVR pickup the call…
  3. and execute your service (charged if you call it directly)

account2:

  1. Call 0002
  2. the IVR don’t pickup the call… ringbacktone message
  3. and call back you to execute your service (free call, with callback)

System Requirements:

  • Asterisk 1.4, 1.6, 1.8
  • VXI* VoiceXML browser 6.0 or upper
  • VoIP or E1/T1 carrier must support ringbacktone/earlymedia

VoiceXML Accounts: vxml.conf

[account1] name=voicexml_service
number=0001
url=http://localhost/vxml/index.vxml
dialformat=SIP/%s

[account2] name=notanswer_callback
number=0002
url=http://localhost/vxml/callback.vxml
dialformat=SIP/%s
force=ringing

VoiceXML Code: callback.vxml

Very simple, isn’t it?