On Tue, Oct 30, 2018 at 3:26 PM Stephen Davies <[email protected]> wrote:
> > > On Tue, 30 Oct 2018 at 22:20, Stephen Davies <[email protected]> > wrote: > > >> Could you comment on why the Dial with ,,I doesn't block the connected >> line update propagating from the called side of the dial back to the >> calling side. That is what it should do and that's how the code seems to >> work. My impression is that the processing of the REFER seems to >> propagated the connected line update all the way back through to the >> original channel despite this flag. >> >> > Ah - my apologies, I see its actually documented: > > The option blocks all redirecting updates since they should only happen >>> before a call is answered. The option only blocks the connected line update >>> from the initial answer. Connected line updates resulting from call >>> transfers happen after the application has completed. Better control of >>> connected line and redirecting information is obtained using the >>> interception macros. >> >> > So its intended to work the way it works. > > So its then important to understand how to use the interception macros or > some equivalent in the context of ARI. > The interception routines should work regardless of the channels being in ARI or not. You set the interception channel variables to the dialplan routine. The routine will execute when a connected line update passes through. https://wiki.asterisk.org/wiki/display/AST/Party+ID+Interception+Macros+and+Routines You setup the CONNECTED_LINE_SEND_SUB and CONNECTED_LINE_SEND_SUB_ARGS channel variables as if you were going to call the Gosub application: same = n,Gosub(${CONNECTED_LINE_SEND_SUB}(${CONNECTED_LINE_SEND_SUB_ARGS}) Which is effectively what Asterisk does to call the interception routine. Richard
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Astricon is coming up October 9-11! Signup is available at: https://www.asterisk.org/community/astricon-user-conference asterisk-dev mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-dev
