One thing I always wondered is whether it's best to call rtpengine_delete() on 
CANCEL or on the 487 response to the underlying INVITE transaction, but which 
in rare cases might never come...

—
Sent from mobile, apologies for brevity and errors.

> On Jan 10, 2023, at 3:48 AM, Daniel-Constantin Mierla <[email protected]> 
> wrote:
> 
> Hello,
> 
> rtpengine_delete() has to be used on BYE or >300 response for initial
> INVITE.
> 
> You have to look at the network traffic and see if the delete command is
> sent from kamailio to rtpengine. Check also the syslog to see if there
> are error messages from kamailio or rtpengine. For troubleshooting, the
> debug level can be increased for both kamailio and rtpengine, then you
> should get more hints about what happens internally in each application.
> 
> Cheers,
> Daniel
> 
>> On 10.01.23 07:04, Jose Figueroa wrote:
>> Hello everyone!
>> 
>> I've been struggling with a kamailio scenario with the rtpengine_delete. My
>> scenario is the following:
>> 
>> I've setup a Kamailio multihomed, since some of my vendors has provided us a
>> direct link using a different local subnet in eth2 and I have my public IP in
>> eth1. The kamailio i've been working on is using app_lua module.
>> 
>> SIP A          <---------> 200.XXX.XXX.14 (eth1) [Kamailio 5.6] (eth2) 
>> 10.203.5.8 <------> Vendor 10.203.5.20
>> 100.XXX.XXX.22
>> 
>> Basically, I receive a call from public IP eth1 and according to the logic
>> from the vendor I forward statefully the call to 10.203.5.20 in second 
>> branch.
>> 
>> I've been reading a lot of issues and documentation such as:[#840 rptengine],
>> [#875 rtpengine] and [#2222 kamailio], but I don't really get working the
>> rtpengine_delete() correctly, since I go to netstat -plan|grep rtpengine and 
>> I
>> see some sessions still that are not freed.
>> 
>> My second case is the following when I receive a 503 from another GW:
>> 
>> SIP A          <---------> 200.XXX.XXX.14 (eth1) [Kamailio 5.6]  (eth1) 
>> 200.XXX.XXX.14 <-----------> Vendor GW 233.XXX.XXX.19
>> 100.XXX.XXX.22
>> 
>> In that case I still see the rtpengine ports, mostly with my public IP
>> 200.XXX.XXX.14 but some of them with the LAN 10.203.5.8 IP.
>> 
>> Also, something curious I see on my 2nd use case is the following: 
>> https://pastebin.com/raw/B4vCgExX
>> 
>> So, it would be great if someone can point me to the right direction, how and
>> when I should use rtpengine_delete in order to finish the rtpengine sessions
>> correctly and the ports can be freed up.
>> 
>> Any help will be great!
>> 
>> [840] https://github.com/sipwise/rtpengine/issues/840
>> [875] https://github.com/sipwise/rtpengine/issues/875
>> [2222] https://github.com/kamailio/kamailio/issues/2222
>> 
>> -- 
>> Regards,
>> Jose Figueroa
>> 
>> __________________________________________________________
>> Kamailio - Users Mailing List - Non Commercial Discussions
>> To unsubscribe send an email to [email protected]
>> Important: keep the mailing list in the recipients, do not reply only to the 
>> sender!
>> Edit mailing list options or unsubscribe:
> 
> -- 
> Daniel-Constantin Mierla -- www.asipto.com
> www.twitter.com/miconda -- www.linkedin.com/in/miconda
> Kamailio World Conference - June 5-7, 2023 - www.kamailioworld.com
> 
> __________________________________________________________
> Kamailio - Users Mailing List - Non Commercial Discussions
> To unsubscribe send an email to [email protected]
> Important: keep the mailing list in the recipients, do not reply only to the 
> sender!
> Edit mailing list options or unsubscribe:
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:

Reply via email to