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