t_on_failure("REDIRECT"); failure_route[REDIRECT] { if(!t_check_status("3[0-9][0-9]")) { exit; } if ( get_redirects("3:1") ) { t_on_branch("REDIRECT_ADD_DIVERSION"); t_relay(); }
} branch_route[REDIRECT_ADD_DIVERSION] { add_diversion("user-busy"); add_diversion("user-busy", "$ru"); } ________________________________ De : sr-users <sr-users-boun...@lists.kamailio.org> de la part de Patrick Karton <patrickar...@hotmail.com> Envoyé : vendredi 24 juin 2022 11:21 À : Benoît Panizzon <benoit.paniz...@imp.ch> Cc : Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org> Objet : Re: [SR-Users] How to handle a 301 redirect request from a client? No the uac_redirect module does not create Diversion header. but thats not a big issue. we can still use branch_route to add a Diversion with diversion module before forwarding the request. ________________________________ De : Benoît Panizzon <benoit.paniz...@imp.ch> Envoyé : vendredi 24 juin 2022 11:11 À : Patrick Karton <patrickar...@hotmail.com> Cc : Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org> Objet : Re: [SR-Users] How to handle a 301 redirect request from a client? Hi Patrick > You can check the uac_redirect module. > > Not sure it handle Diversion header but its a good starting point. Merci! That sounds promising I'll try. The ability to add a 'reason' let's me hope it might create a Diversion header. -- 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