Keep calling channel after called channel hangs up in Asterisk -
i want execute agi script calling party after called party hangs up. example, doing survey customers going run agi script after agent hangs up. unfortunately, when agi scripts runs agi debug output says: "511: command cannot executed on dead channel" use commands "answer" or "stream file" in agi script need channel run on. know calling channel hangs called party hangs up. tried deadagi instead of agi , "g" option in dial command none of them works. so, think have search solution keep calling channel can run script on that. suggestion please?
you should not use "g" param case, because caller hangup. should use "f"
f([[context^]exten^]priority): when caller hangs up, transfer *called* party specified destination , *start* execution @ location. note: channel variables want called channel inherit caller channel must prefixed 1 or 2 underbars ('_'). f: when caller hangs up, transfer *called* party next priority of current extension , *start* execution @ location. note: channel variables want called channel inherit caller channel must prefixed 1 or 2 underbars ('_'). note: using option macro() or gosub() might not make sense there no return points. g: proceed dialplan execution @ next priority in current extension if destination channel hangs up.
Comments
Post a Comment