Hi Gang
Not using the timer module.
I just stumbled over an issue when a CPE replies with 422.
I have set-up a failure route to be used when resolving the location of a registered cpe fails or if that cpe returns an error.
I react on most cases like re-routing to voicemail etc.
But in case of a 422 I would like to send that reply back to the caller so the call can be re-attempted with a lower session timer.
For this to work, I need to route the reply back to the origin. Using t_send_reply() from within the failure route creates a new reply, missing the required Min-Se header from the original reply.
Is there something like a t_route_reply()? Of would I need to extract the Min-SE header from the reply and then append it again to the reply generated with t_send_reply()?
Mit freundlichen Grüssen
-Benoît Panizzon-
Hi
Answering myself. I missed the obvious one:
Just 'exit' from the failure route will cause the original reply to be routed as is. So preserving the Min-SE in the 422 reply as needed.
Mit freundlichen Grüssen
-Benoît Panizzon-
Regards Tola Sent from my iPhone; please excuse any typos.
On Mar 10, 2026, at 8:01 AM, Benoit Panizzon via sr-users sr-users@lists.kamailio.org wrote: Hi Gang
Not using the timer module.
I just stumbled over an issue when a CPE replies with 422.
I have set-up a failure route to be used when resolving the location of a registered cpe fails or if that cpe returns an error.
I react on most cases like re-routing to voicemail etc.
But in case of a 422 I would like to send that reply back to the caller so the call can be re-attempted with a lower session timer.
For this to work, I need to route the reply back to the origin. Using t_send_reply() from within the failure route creates a new reply, missing the required Min-Se header from the original reply.
Is there something like a t_route_reply()? Of would I need to extract the Min-SE header from the reply and then append it again to the reply generated with t_send_reply()?
Mit freundlichen Grüssen
-Benoît Panizzon-
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 To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!