Erik Sundberg
2005-May-18 15:06 UTC
[Asterisk-Users] Run Script when originator hangs up the phone
Hello all, Wonder if there was away to run a script/marco when the person who originates the call hangs up. I have use the g option in the dial application to continue running applications in the dial plan, but that only works if the person who is called hangs up first.. Thanks Erik
Wilson Pickett
2005-May-18 22:39 UTC
[Asterisk-Users] Run Script when originator hangs up the phone
> I have use the g option in the dial application to continue running > applications in the dial plan, but that only works if the person who is > called hangs up first..You might want to explore the h priority: exten => h,1,NoOp(They hung on me! Me!) exten => h,2,Revenge(${CALLERIDNUM},muhahaha) You'll have to write the Revenge app module yourself of search the wiki for one.
Peter Svensson
2005-May-18 22:47 UTC
[Asterisk-Users] Run Script when originator hangs up the phone
On Wed, 18 May 2005, Erik Sundberg wrote:> Wonder if there was away to run a script/marco when the person who > originates the call hangs up. > > I have use the g option in the dial application to continue running > applications in the dial plan, but that only works if the person who is > called hangs up first..Use the 'h' extension. That is run when the current channel (the caller normally) hangs up. Peter