[asterisk-users] The 'h' extension problem

Stephen Bosch posting at vodacomm.ca
Wed May 9 17:11:41 MST 2007


Rizwan Hisham wrote:
> Hi all,
> There is a problem with my dialplan. here is the dialplan:
> 
> exten=> 123,1,Dial(SIP/U1,,Ttg)
> exten=> 123,2,Hangup
> 
> exten=> h,1,AGI(onhangup.pl)
> 
> The problem is whenever U1 is  called or calls someone,  if U1 hangsup
> the call then the h extension is NOT executed. but if the other person
> hangsup the call, then the h extension is executed (assuming that the
> other person is calling from out of our asterisk system). I understand
> if U1 hangsup then there is no channel to execute h extension, but is it
> possible to execute the h exten even then.

You cannot use AGI() on an inactive channel. Use DeadAGI() instead.

-Stephen-


More information about the asterisk-users mailing list