Vars are actually per-process, which makes them both useless in a transactional context beyond the life of any particular message, and dangerous because they instead persist in a given worker process, so it’s very easy to forget to reset them from previous values. They bring lots of surprises.
AVPs are what you want.
— Sent from mobile, with due apologies for brevity and errors.
On Feb 10, 2021, at 7:53 AM, David Villasmil david.villasmil.work@gmail.com wrote:
I eneded up adding topos, hiding everything behind seems to make them happy. I do have a small problem storing the current time in a var.
When the a-leg invite comes in, i'm creating a $var(invite_time) = $TV(Sn); on the dispatch route, when i try to use it on the reply from the b-leg, it's 0. I'm guessing the var is attached to the incoming a-leg and not the outgoing b-leg? If that right? If so, do i need to t_newtran() on the relay?
thanks for your help guys.
Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
On Wed, Feb 10, 2021 at 12:14 PM Alex Balashov abalashov@evaristesys.com wrote:
Well, the vendor just can’t have everything it wants. :-) There are limits to what Kamailio can do.
— Sent from mobile, with due apologies for brevity and errors.
On Feb 10, 2021, at 6:35 AM, David Villasmil david.villasmil.work@gmail.com wrote:
Ah that's it, thanks! But the vendor wants us to set the FROM header domain to our IP, i don't see this possible with tmx on the CANCEL? Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
On Wed, Feb 10, 2021 at 11:21 AM Daniel-Constantin Mierla miconda@gmail.com wrote:
Hello,
look at tmx module, it has some cancel-related functions.
Cheers, Daniel
On 09.02.21 18:03, David Villasmil wrote:
Hello,
When receiving a reply, there's a logic which if true, i must cancel the outgoing invite (can 480 the origination). I tried using something like
t_set_fr(10,10);
to have kamailio cancel it immediately, but it's not happening.
Is there a way to cancel an INVITE/transaction?
Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla -- www.asipto.com www.twitter.com/miconda -- www.linkedin.com/in/miconda Funding: https://www.paypal.me/dcmierla
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users