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
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
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
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
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
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
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
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