Getting the name of an already set onreply_route
Hello! Is it possible to find out the name of the onreply_route that was set before? Something like this: t_on_reply("MANAGE_REPLY"); ... if ( t_is_set("onreply_route") ) { get_onreply_route_name(); ... } -- BR, Denys Pozniak
Here the question is more whether there is a variable ($T or any) into which the name of the onreply_route is exported. ср, 7 дек. 2022 г. в 13:21, Patrick Karton <patrickarton@hotmail.com>:
Or transaction variable (xavp) is best for that.
Le 7 déc. 2022 12:00, Patrick Karton <patrickarton@hotmail.com> a écrit :
Hello i dont think so.
But probably you can use shared or private variable depending on your needs
Le 7 déc. 2022 11:28, Denys Pozniak <denys.pozniak@gmail.com> a écrit :
Hello!
Is it possible to find out the name of the onreply_route that was set before? Something like this:
t_on_reply("MANAGE_REPLY"); ... if ( t_is_set("onreply_route") ) { get_onreply_route_name(); ... }
--
BR, Denys Pozniak
__________________________________________________________ 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
-- BR, Denys Pozniak
Hello, give this a try: https://www.kamailio.org/wiki/cookbooks/5.5.x/pseudovariables#cfg_key_-_conf... Cheers, Henning -- Henning Westerholt – https://skalatan.de/blog/ Kamailio services – https://gilawa.com<https://gilawa.com/> From: sr-users <sr-users-bounces@lists.kamailio.org> On Behalf Of Denys Pozniak Sent: Wednesday, December 7, 2022 2:12 PM To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org> Subject: Re: [SR-Users] Getting the name of an already set onreply_route Here the question is more whether there is a variable ($T or any) into which the name of the onreply_route is exported. ср, 7 дек. 2022 г. в 13:21, Patrick Karton <patrickarton@hotmail.com<mailto:patrickarton@hotmail.com>>: Or transaction variable (xavp) is best for that. Le 7 déc. 2022 12:00, Patrick Karton <patrickarton@hotmail.com<mailto:patrickarton@hotmail.com>> a écrit : Hello i dont think so. But probably you can use shared or private variable depending on your needs Le 7 déc. 2022 11:28, Denys Pozniak <denys.pozniak@gmail.com<mailto:denys.pozniak@gmail.com>> a écrit : Hello! Is it possible to find out the name of the onreply_route that was set before? Something like this: t_on_reply("MANAGE_REPLY"); ... if ( t_is_set("onreply_route") ) { get_onreply_route_name(); ... } -- BR, Denys Pozniak __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions sr-users@lists.kamailio.org<mailto: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 -- BR, Denys Pozniak
Hello, Returning to this feature request, getting the name of the previously assigned t_on_reply() route in the *$T_onreply_route* variable would be cool. This is useful in the case of large and complex scripts, where multiple t_on_reply() may be called in a row for a request. request_route{ ... t_on_reply(“MANAGE_REPLY_1”); ... t_on_reply(“MANAGE_REPLY_2”); ... xlog(“L_INFO”, “assigned t_on_reply route: $T_onreply_route \n”); } ср, 7 дек. 2022 г. в 16:09, Henning Westerholt <hw@gilawa.com>:
Hello,
give this a try: https://www.kamailio.org/wiki/cookbooks/5.5.x/pseudovariables#cfg_key_-_conf...
Cheers,
Henning
--
Henning Westerholt – https://skalatan.de/blog/
Kamailio services – https://gilawa.com
*From:* sr-users <sr-users-bounces@lists.kamailio.org> *On Behalf Of *Denys Pozniak *Sent:* Wednesday, December 7, 2022 2:12 PM *To:* Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org> *Subject:* Re: [SR-Users] Getting the name of an already set onreply_route
Here the question is more whether there is a variable ($T or any) into which the name of the onreply_route is exported.
ср, 7 дек. 2022 г. в 13:21, Patrick Karton <patrickarton@hotmail.com>:
Or transaction variable (xavp) is best for that.
Le 7 déc. 2022 12:00, Patrick Karton <patrickarton@hotmail.com> a écrit :
Hello i dont think so.
But probably you can use shared or private variable depending on your needs
Le 7 déc. 2022 11:28, Denys Pozniak <denys.pozniak@gmail.com> a écrit :
Hello!
Is it possible to find out the name of the onreply_route that was set before?
Something like this:
t_on_reply("MANAGE_REPLY");
...
if ( t_is_set("onreply_route") ) {
get_onreply_route_name();
...
}
--
BR,
Denys Pozniak
__________________________________________________________ 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
--
BR,
Denys Pozniak
-- BR, Denys Pozniak
participants (3)
-
Denys Pozniak -
Henning Westerholt -
Patrick Karton