Dispo Call URL - Simple Variables not Passing

I am trying to pass the recording file name variable on the disposition call URL but its not passing even though I can use it on the scripts, and on the web form URL..
Does anyone know which file to hack so it can also grab this variable from the DB, the recording file name becomes available as soon as the call is established so I do not know why it woudent be available at the end of call...
I would also like to pass to my CRM the called_count from the vicidial list table...
Which PHP file is the one that controls these variables from coming up, this way I can add the php sql code to include these also....
Does anyone know which file to hack so it can also grab this variable from the DB, the recording file name becomes available as soon as the call is established so I do not know why it woudent be available at the end of call...
I would also like to pass to my CRM the called_count from the vicidial list table...
Which PHP file is the one that controls these variables from coming up, this way I can add the php sql code to include these also....