[OpenSIPS-Users] Orderly shutdown
Saint Michael
venefax at gmail.com
Thu Oct 27 13:15:43 UTC 2022
YES
Maybe we should fix the documentation?
now the real question is, what goes inside the bracket if the flag
value matches, to reject the call:
I propose
{
sl_send_reply(503,"Declined");
exit;
}
On Thu, Oct 27, 2022 at 9:04 AM Karsten Wemheuer <kwem at gmx.de> wrote:
>
> Hi,
>
> I am not familiar with the gflags module, but
>
> Am Donnerstag, dem 27.10.2022 um 08:39 -0400 schrieb Saint Michael:
> > for testing I added
> > route{
> > if (is_gflag("1")) {
> > t_relay("udp:10.0.0.1:5060");
> > } else {
> > t_relay("udp:10.0.0.2:5060");
> > }
>
> I think, You should remove the quotes around the "1".
>
> I think, the example in the docs may be wrong (Your code was from the
> docs, I think). See section 1.4.3, where
> if(is_gflag(4))
> is written.
>
> HTH,
>
> Karsten
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
More information about the Users
mailing list