I have this script working. It works the following mode:
1 - PHP script sends a request to Asterisk, that return an provisory ID
2 - Next call state changing, asterisk calls a pre-configured PHP script URL, sending that provisory ID and call´s Unique ID, plus call state.
3 - Further call state changing are informed the same way, through Unique ID