[asterisk-users] Context for 302 Moved response
Jon Bonilla (Manwe)
manwe at aholab.ehu.es
Wed Apr 27 01:57:15 CDT 2022
El Wed, 27 Apr 2022 12:27:03 +1200
David Cunningham <dcunningham at voisonics.com> 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
More information about the asterisk-users
mailing list