Hello,
You can check the uac_redirect module.

Not sure it handle Diversion header but its a good starting point.

Le 24 juin 2022 07:46, Benoît Panizzon <benoit.panizzon@imp.ch> a écrit :

Hi Gang

We want to allow customers to send a 301 to forward calls to mimik ISDN
PARE.

The new destination is in the contact user HF.

So I guess I could handle this on the t_on_failure route to catch that
error, extract the contact user HF, craft an appropriate Diversion
header and send the call on.

But I wonder, is there maybe a module which handles all of this out of
the box?

--
Mit freundlichen Grüssen

-Benoît Panizzon- @ HomeOffice und normal erreichbar
--
I m p r o W a r e   A G    -    Leiter Commerce Kunden
______________________________________________________

Zurlindenstrasse 29             Tel  +41 61 826 93 00
CH-4133 Pratteln                Fax  +41 61 826 93 01
Schweiz                         Web  http://www.imp.ch
______________________________________________________

__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users