Make something happen at end of every Dial?

Comment on Asterisk i extension
Joined: Thu 03 of Mar, 2005

Make something happen at end of every Dial?

Posted:Fri 09 of Sep, 2005 (09:23 UTC)
Hi there,

my problem is a bit more than told here. Say I have this dialplan:

exten => 100,1,Dial(SIP/
exten => 200,1,Dial(SIP/
exten => _X.,1,Goto(somewhere_else)

I want to got somewhere_else whenever a call has finished. Surely I can add this:

exten => 100,2,Goto(somewhere_else)
exten => 200,2,Goto(somewhere_else)

Doing this for every call makes me crazy. How do I accomplish this?
The h extension is not the right way for me because the user may be busy or I just executed an AGI. I want to go to somewhere_else everytime regardless of what heppened before.

Do I have to put all the stuff into a big AGI?