"Callback" Dialplan

Hi, I’ve been waiting to use Asterisk for quite some now, and I’ve took the plunge and got linux installed… so far so good, but there is one small problem. I’m trying to get it so that when somebody calls my number it’ll just be conjested and the call will be disconnected, then a couple of seconds after they are disconnected asterisk should make an outbound call to a certain number. The problem I’m having is that the first call does not seem to be hanging up (and hanging up manually seems to stop the whole thing), instead asterisk is still calling the outbound number whilst the initial call is ongoing and joining them together.

If anybody could indicate where I am going wrong it would be greatly appreciated, my dial plan is as follows;

[Incoming] exten => _X.,1,Congestion exten => _X.,n,Hangup exten => h,1,Dial(SIP/07875220283@sipgate,30,trg) exten => h,n,Wait(2) exten => h,n,Playback(tt-weasels) exten => h,n,Hangup()

It doesn’t exactly Callback (for some reason I’m not getting the CID from SipGate), but I’m guessing that it is a very similar kind of thing.

Thanks for any help!,
James