Similar to AGI, FastAGI provides the ability to pass variables directly from the dialplan to the FastAGI server. However, when doing so, we must pay attention to the version of Asterisk that we are using, as variations exist between the different branches of the Asterisk project.
Versions 1.2.X and 1.4.X of Asterisk handle argument passing to FastAGI server by using an HTTP GET format. Consider the following:
[callingcard-platform] ; CallingCard application exten => _X.,1,Answer exten => _X.,n,AGI(agi://192.168.0.1/callingcard&exten=${EXTEN}&c=12) exten => _X.,n,Hangup
It is the responsibility of your FastAGI server to parse the information from the request, and pass the arguments to your application accordingly. Asterisk 1.2.X and 1.4.X do not provide a standard facility for passing arguments to a FastAGI server.