i did create the script for the voipcheap trunk.
I works well, but as i'm not an expert in asterisk, i would like to know if someone is willing to test it, so it can be refined, if needed.
What i did:
created the trunk (peer and incoming) settings. I'm using it for outgoing and incoming calls.
The DID number for incoming calls i got from ipkall.
The script is attached and to use it, you need to copy it to /usr/pluto/bin and chmod 555.
Simply run it with: /usr/pluto/bin/create_amp_voipcheap.pl userid secret number.