Hello Benoit, You can use $T_inv(...) to access attributes of the original INVITE transaction, to which the CANCEL pertains:
https://www.kamailio.org/wikidocs/cookbooks/5.8.x/pseudovariables/#t_invpv However, you may instead consider the attractive simplicity of just calling rtpengine_delete() for every CANCEL, regardless of whether RTPEngine was engaged. If the <Call-ID, From-tag> tuple is not recognised by RTPEngine, no harm, no foul -- not an even error. Yes, there is the overhead of a synchronous round trip to RTPEngine involved in this. However, in most cases, the consequences aren't too significant. As someone who has built many overcomplicated Rube Goldberg machines and systems with a lot of this kind of conditional logic, I've come to appreciate, over the years, the appeal of a simpler mechanism with fewer moving parts, even at the cost of some inefficiency. -- Alex > On May 30, 2024, at 12:12 PM, Benoit Panizzon via sr-users > <sr-users@lists.kamailio.org> wrote: > > Hi > > To determine, if rtpengine was engaged during an invite or not, I make > use of rr params for all messages in following transactions and I set > an avp for all messages in the current transaction. > > When the call is canceled, I would need to call rtpengine_delete to > make sure rtpengine stops listening for rtp packets. > > Unfortunately, the avp I set during the INVITE, does not seem to be > present while the CANCEL message is processed, despite to my > understanding being in the same transaction. > > How can I pass some information from an INVITE to the corresponding > CANCEL? > > 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 > To unsubscribe send an email to sr-users-le...@lists.kamailio.org > Important: keep the mailing list in the recipients, do not reply only to the > sender! > Edit mailing list options or unsubscribe: -- Alex Balashov Principal Consultant Evariste Systems LLC Web: https://evaristesys.com Tel: +1-706-510-6800 __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to sr-users-le...@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: