<div dir="ltr"><div>I need to record calls if/when they touch a certain set of extensions. I have most of the logic working but am baffled by one thing: how do I cause an application (it’s a lua script) to run when a channel is bridged as the result of a transfer?</div><div><br></div><div>My usual bag of tricks isn&#39;t working because the bridge happens &quot;magically&quot; in sofia in response to the REFER. For example, execute_on_answer doesn’t help because the answer happens during the attended transfer -- I need to run AFTER the transfer (that is, when the original A leg is bridged to the attended transfer’s B leg).</div><div><br></div><div>Example scenario:</div><div><br></div><div>1. External call comes in (channel A = PSTN to switch, channel B = switch to phone with extension 1000)</div><div><br></div><div>2. Ext 1000 does an attended transfer to ext 1001 (channel C = 1000 to switch, channel D = switch to 1001)</div><div><br></div><div>3. Transfer completes (sofia bridges channel A to channel D)</div><div><br></div><div>I want my script to run on either channel A or D after 3 happens.</div><div><br></div><div>What’s the best way to do this?</div><div><br></div><div>Thanks,</div><div>Walter</div><div><br></div></div>