Hi Jon, Thank you for the reply. We wanted to read a particular SIP header in the 302 Moved response, but it seems that Asterisk creates a Local channel for the redirected call and the SIP_HEADER() function isn't available, so we can't really do what we wanted at all.
Thanks anyway! On Wed, 27 Apr 2022 at 18:57, Jon Bonilla (Manwe) <[email protected]> wrote: > El Wed, 27 Apr 2022 12:27:03 +1200 > David Cunningham <[email protected]> escribió: > > > Hello, > > > > Does anyone know of a way to have a call go to a particular context when > a > > 302 Moved is received in response to an invite? This is with chan_sip. We > > tried setting __TRANSFER_CONTEXT but it didn't seem to have any effect. > > Basically if a remote device returns a 302 Moved we want to send the call > > somewhere different to all other calls. > > > > Thanks very much, > > > > > You can detect a 302 in the dialplan. Not perfect but does the job. > > same => n,GotoIf($[${EXISTS(${FORWARDERNAME})}]?sipcfu) > > > -- > PekePBX, the multitenant PBX solution > https://pekepbx.com > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > Check out the new Asterisk community forum at: > https://community.asterisk.org/ > > New to Asterisk? Start here: > https://wiki.asterisk.org/wiki/display/AST/Getting+Started > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users -- David Cunningham, Voisonics Limited http://voisonics.com/ USA: +1 213 221 1092 New Zealand: +64 (0)28 2558 3782
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
