[SR-Users] CANCEL transaction

David Villasmil david.villasmil.work at gmail.com
Wed Feb 10 14:05:00 CET 2021


oh damn, that's true.. Alex pointed it out earlierm thanks!

Also,

On sending the CANCEL to the b-leg, I need to immediately send a 480 to the
a-leg, not sure this is at all possible?

Regards,

David Villasmil
email: david.villasmil.work at gmail.com
phone: +34669448337


On Wed, Feb 10, 2021 at 1:00 PM Federico Cabiddu <federico.cabiddu at gmail.com>
wrote:

> Hi,
> var(s) are kind of static variables per process.
> You'd rather use an avp (which is bound to the transaction) to be able to
> use it in a reply route.
>
> Cheers,
>
> Federico
>
> On Wed, Feb 10, 2021 at 1:55 PM David Villasmil <
> david.villasmil.work at 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 at gmail.com
>> phone: +34669448337
>>
>>
>> On Wed, Feb 10, 2021 at 12:14 PM Alex Balashov <abalashov at 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 at 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 at gmail.com
>>> phone: +34669448337
>>>
>>>
>>> On Wed, Feb 10, 2021 at 11:21 AM Daniel-Constantin Mierla <
>>> miconda at 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 at gmail.com
>>>> phone: +34669448337
>>>>
>>>> _______________________________________________
>>>> Kamailio (SER) - Users Mailing Listsr-users at lists.kamailio.orghttps://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>>
>>>> --
>>>> Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda
>>>> Funding: https://www.paypal.me/dcmierla
>>>>
>>>> _______________________________________________
>>> Kamailio (SER) - Users Mailing List
>>> sr-users at lists.kamailio.org
>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>
>>> _______________________________________________
>>> Kamailio (SER) - Users Mailing List
>>> sr-users at lists.kamailio.org
>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>
>> _______________________________________________
>> Kamailio (SER) - Users Mailing List
>> sr-users at lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20210210/afc757a2/attachment.htm>


More information about the sr-users mailing list