Re: [OpenSIPS-Users] Dialog ping question
Hi MS, You can use the Call-ID to correlate with the dialog. For example, use the localcache to store (when creating the dialog) a record having as key the call-id of the call and as value the time to start. In the generic on_reply you can look for that records into localcache and to the math for the duration. Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer https://www.opensips-solutions.com OpenSIPS Summit 27-30 Sept 2022, Athens https://www.opensips.org/events/Summit-2022Athens/ On 7/10/22 9:23 PM, M S wrote: Hi all, I need to catch the replies to OPTIONS (ping) packets that Create_dialog("Pp") sends to both sides, and then based on response code and some other transaction information, i.e. I need to calculate the call length (from pick up till that moment) to send Interim-Updates to RADIUS. My questions are: 1. How do I check for those internal OPTIONS replies? I can see replies in a global onreply_route, but there is no transaction level information there 2. How do I calculate the call length? I assume if #1 above is fixed, I can store answer time in a variable and then calculate length in onreply. Thank you! ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Dialog ping question
Hi Brett, The dialog module will end the call on the next ping interval. What is the issue that you are having ? Best Regards, Vlad Paiu OpenSIPS Developer http://www.opensips-solutions.com On 02/08/2013 06:12 PM, Brett Nemeroff wrote: Hello List, Question regarding dialog pinging. If dialog pinging is enabled and so is the B flag, how long after a failed ping should opensips send the BYE in either direction? Thanks, Brett ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Dialog ping question
I was expecting that every 30 seconds a ping goes out. If the ping gets a negative reply, it's immediately sent a BYE. The delay between the failure code and the BYE is causing some confusion. Not anything technically wrong with it, but not what's expected. Anyway to change that behavior? Can you check for failures immediately afterwards (maybe delay by an appropriate SIP timer length) before just waiting for the next cycle? Thanks, Brett On Tue, Feb 12, 2013 at 10:32 AM, Vlad Paiu vladp...@opensips.org wrote: ** Hi Brett, The dialog module will end the call on the next ping interval. What is the issue that you are having ? Best Regards, Vlad Paiu OpenSIPS Developerhttp://www.opensips-solutions.com On 02/08/2013 06:12 PM, Brett Nemeroff wrote: Hello List, Question regarding dialog pinging. If dialog pinging is enabled and so is the B flag, how long after a failed ping should opensips send the BYE in either direction? Thanks, Brett ___ Users mailing listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users