Re: [OpenSIPS-Users] Orderly shutdown

2022-10-26 Thread Bogdan-Andrei Iancu
To be more specific here, use the suggested gflags to test for initial INVITE and reject any new call if the gflag is set - and you can toggle the flag via MI cmds. Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer https://www.opensips-solutions.com OpenSIPS Bootcamp 5-16 Dec 2022

Re: [OpenSIPS-Users] Orderly shutdown

2022-10-26 Thread mayamatakeshi
It can be done with: https://opensips.org/docs/modules/3.1.x/gflags.html On Thu, Oct 27, 2022 at 1:18 PM Saint Michael wrote: > Dear Friends > I successfully wrote a script that terminates all open calls in an > orderly fashion. > The question is, before I execute my script, is there any simi

Re: [OpenSIPS-Users] Orderly shutdown

2022-10-26 Thread Saint Michael
Dear Friends I successfully wrote a script that terminates all open calls in an orderly fashion. The question is, before I execute my script, is there any similar command (like opensips-cli -x mi dlg_end_dlg "${callid}") that would stop taking new calls? Like "reject any call attempts with 503 or

Re: [OpenSIPS-Users] Local Route question

2022-10-26 Thread Jehanzaib Younis
Hi Micheal, You can use t_on_reply and then something like this: if (t_check_status("200")) { ..your db query } Regards, Jehanzaib On Thu, Oct 27, 2022 at 9:22 AM Saint Michael wrote: > Thank you for the clarification. > But then how do you intercept the Connect? > Where

Re: [OpenSIPS-Users] Local Route question

2022-10-26 Thread Saint Michael
Thank you for the clarification. But then how do you intercept the Connect? Where in the code? I need to fire a db query when the call connects. Is this even possible? On Wed, Oct 26, 2022, 10:51 AM Bogdan-Andrei Iancu wrote: > Hi, > > please see > https://www.opensips.org/Documentation/Script

[OpenSIPS-Users] - topology_hiding and no ACK

2022-10-26 Thread Nitesh Divecha
Hello All, I don't know if this is by design or me not implementing correctly! I'm a newbie to OpenSIPS... So I generated a new opensips_residential.cfg file and only edited it with topology_hiding("UC"); under INVITE. Plus all the extras to make ATA register successfully and SIP trunk. Every ti

Re: [OpenSIPS-Users] Local Route question

2022-10-26 Thread Bogdan-Andrei Iancu
Hi, please see https://www.opensips.org/Documentation/Script-Routes-3-2#local_route - the local route is triggered only for internally generated (UAC) requests, so you will never have replies over there. Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer https://www.opensips-sol

Re: [OpenSIPS-Users] Orderly shutdown

2022-10-26 Thread Bogdan-Andrei Iancu
Hi, Sending a sig TERM to the opensips processes will trigger a controlled shutdown of opensips (meaning with flushing data to DB, if needed, cleanup, etc). Nevertheless, the opensips shutdown does not ends the call, as the calls may be continued after restarting opensips. Still, if you want