Re: [SR-Users] Change reply code reason other than using change_reply_status

2022-08-12 Thread Henning Westerholt
Hello,

Just to add the obvious solution as well, the change_reply_status(..) could be 
adapted to support pseudo-variables. But of course, this needs some code 
extensions.

Cheers,

Henning

--
Henning Westerholt - https://skalatan.de/blog/
Kamailio services - https://gilawa.com<https://gilawa.com/>

From: sr-users  On Behalf Of Patrick Karton
Sent: Friday, August 12, 2022 7:01 PM
To: sr-users@lists.kamailio.org
Subject: [SR-Users] Change reply code reason other than using 
change_reply_status

hello is there a way to change reply code reason other than using  () function.

because the first parameterc of  change_reply_status needs to be a constant so 
i can not use pseudo var for first argument of that function.

so i use change_reply_status_code to change to code with a pseudo. but i would 
also to change the code reason.
__
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


Re: [SR-Users] Change reply code reason other than using change_reply_status

2022-08-12 Thread Patrick Karton
Thanks Alex.

great indeed.

De : sr-users  de la part de Alex Balashov 

Envoyé : vendredi 12 août 2022 18:12
À : Kamailio (SER) - Users Mailing List 
Objet : Re: [SR-Users] Change reply code reason other than using 
change_reply_status

Depending on what you’re trying to accomplish, you could intercept the negative 
reply (if a negative reply is what you’re trying to change) in a failure_route 
and use send_reply() to send back an entirely different reply to the caller, 
functionally altering the status/reason.

— Alex

> On Aug 12, 2022, at 1:00 PM, Patrick Karton  wrote:
>
> hello is there a way to change reply code reason other than using  () 
> function.
>
> because the first parameterc of  change_reply_status needs to be a constant 
> so i can not use pseudo var for first argument of that function.
>
> so i use change_reply_status_code to change to code with a pseudo. but i 
> would also to change the code reason.
> __
> 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

--
Alex Balashov | Principal | Evariste Systems LLC

Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/


__
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
__
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


Re: [SR-Users] Change reply code reason other than using change_reply_status

2022-08-12 Thread Alex Balashov
Depending on what you’re trying to accomplish, you could intercept the negative 
reply (if a negative reply is what you’re trying to change) in a failure_route 
and use send_reply() to send back an entirely different reply to the caller, 
functionally altering the status/reason.

— Alex

> On Aug 12, 2022, at 1:00 PM, Patrick Karton  wrote:
> 
> hello is there a way to change reply code reason other than using  () 
> function.
> 
> because the first parameterc of  change_reply_status needs to be a constant 
> so i can not use pseudo var for first argument of that function.
> 
> so i use change_reply_status_code to change to code with a pseudo. but i 
> would also to change the code reason.
> __
> 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

-- 
Alex Balashov | Principal | Evariste Systems LLC

Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/


__
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


[SR-Users] Change reply code reason other than using change_reply_status

2022-08-12 Thread Patrick Karton
hello is there a way to change reply code reason other than using  () function.

because the first parameterc of  change_reply_status needs to be a constant so 
i can not use pseudo var for first argument of that function.

so i use change_reply_status_code to change to code with a pseudo. but i would 
also to change the code reason.
__
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