Re: [OpenSIPS-Users] Set flag at runtime?

2021-06-09 Thread David Villasmil
Thanks Ovidiu, that was it! Didn't register one was a bitmask and the other
the position.

Regards,

David Villasmil
email: david.villasmil.w...@gmail.com
phone: +34669448337


On Thu, Jun 10, 2021 at 2:11 AM Ovidiu Sas  wrote:

> Read the docs.
> In the script, the argument is the position of the flag.
> Via MI, the argument is a bitmask.
>
> -ovidiu
>
> On Wed, Jun 9, 2021 at 6:33 PM David Villasmil
>  wrote:
> >
> > So I'm trying to use gflags.so in 2.4.7
> >
> > I set the module as:
> >
> > loadmodule "gflags.so"
> > modparam("gflags", "initial", 0)
> >
> > then i'm doing:
> >
> > if (is_gflag("1")) {
> > xlog("L_ERR", "[$ci][$rm]: gflag(1) is set\n");
> > } else {
> > xlog("L_ERR", "[$ci][$rm]: gflag(1) is not set\n");
> > }
> >
> > Then, via CLI I'm setting the flag like so:
> >
> > # opensipsctl fifo is_gflag "1"
> > FALSE
> >
> > And is set it with:
> >
> > # opensipsctl fifo set_gflag "1"
> >
> > and check it is actually set:
> >
> > # opensipsctl fifo is_gflag "1"
> > TRUE
> >
> > But no matter what i do, the script always sees the flag as not set.
> >
> > Did I misunderstand the purpose of the module? I want to be able to set
> the flag dynamically from the CLI to enable/disable a feature at runtime...
> is this not possible?
> >
> > thanks guys.
> >
> > Regards,
> >
> > David Villasmil
> > email: david.villasmil.w...@gmail.com
> > phone: +34669448337
> >
> >
> > On Wed, Jun 9, 2021 at 8:55 PM David Villasmil <
> david.villasmil.w...@gmail.com> wrote:
> >>
> >> gflags!
> >>
> >> Regards,
> >>
> >> David Villasmil
> >> email: david.villasmil.w...@gmail.com
> >> phone: +34669448337
> >>
> >>
> >> On Wed, Jun 9, 2021 at 5:05 PM David Villasmil <
> david.villasmil.w...@gmail.com> wrote:
> >>>
> >>> Hello guys,
> >>>
> >>> On 2.4 is it possible to set a flag at runtime? I want to set a
> feature toggle based on that.
> >>>
> >>> Regards,
> >>>
> >>> David Villasmil
> >>> email: david.villasmil.w...@gmail.com
> >>> phone: +34669448337
> >
> > ___
> > Users mailing list
> > Users@lists.opensips.org
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> --
> VoIP Embedded, Inc.
> http://www.voipembedded.com
>
> ___
> 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] Set flag at runtime?

2021-06-09 Thread Ovidiu Sas
Read the docs.
In the script, the argument is the position of the flag.
Via MI, the argument is a bitmask.

-ovidiu

On Wed, Jun 9, 2021 at 6:33 PM David Villasmil
 wrote:
>
> So I'm trying to use gflags.so in 2.4.7
>
> I set the module as:
>
> loadmodule "gflags.so"
> modparam("gflags", "initial", 0)
>
> then i'm doing:
>
> if (is_gflag("1")) {
> xlog("L_ERR", "[$ci][$rm]: gflag(1) is set\n");
> } else {
> xlog("L_ERR", "[$ci][$rm]: gflag(1) is not set\n");
> }
>
> Then, via CLI I'm setting the flag like so:
>
> # opensipsctl fifo is_gflag "1"
> FALSE
>
> And is set it with:
>
> # opensipsctl fifo set_gflag "1"
>
> and check it is actually set:
>
> # opensipsctl fifo is_gflag "1"
> TRUE
>
> But no matter what i do, the script always sees the flag as not set.
>
> Did I misunderstand the purpose of the module? I want to be able to set the 
> flag dynamically from the CLI to enable/disable a feature at runtime... is 
> this not possible?
>
> thanks guys.
>
> Regards,
>
> David Villasmil
> email: david.villasmil.w...@gmail.com
> phone: +34669448337
>
>
> On Wed, Jun 9, 2021 at 8:55 PM David Villasmil 
>  wrote:
>>
>> gflags!
>>
>> Regards,
>>
>> David Villasmil
>> email: david.villasmil.w...@gmail.com
>> phone: +34669448337
>>
>>
>> On Wed, Jun 9, 2021 at 5:05 PM David Villasmil 
>>  wrote:
>>>
>>> Hello guys,
>>>
>>> On 2.4 is it possible to set a flag at runtime? I want to set a feature 
>>> toggle based on that.
>>>
>>> Regards,
>>>
>>> David Villasmil
>>> email: david.villasmil.w...@gmail.com
>>> phone: +34669448337
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users



-- 
VoIP Embedded, Inc.
http://www.voipembedded.com

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Set flag at runtime?

2021-06-09 Thread David Villasmil
Point is on the CLI I get TRUE, but on the script no matter what I do it is
always false

On Thu, 10 Jun 2021 at 01:51, David Villasmil <
david.villasmil.w...@gmail.com> wrote:

> Thanks Ben, I tried both :(
>
> On Thu, 10 Jun 2021 at 01:26, Ben Newlin  wrote:
>
>> Per the documentation [1], the CLI command wants the value as an integer,
>> not quoted.
>>
>>
>>
>> Have you tried
>>
>>
>>
>> # opensipsctl fifo set_gflag 1
>>
>>
>>
>> [1] -
>> https://opensips.org/docs/modules/2.4.x/gflags.html#exported_mi_functions
>>
>>
>>
>> Ben Newlin
>>
>>
>>
>> *From: *Users  on behalf of David
>> Villasmil 
>> *Date: *Wednesday, June 9, 2021 at 6:34 PM
>> *To: *users@lists.opensips.org 
>> *Subject: *Re: [OpenSIPS-Users] Set flag at runtime?
>>
>> So I'm trying to use gflags.so in 2.4.7
>>
>>
>>
>> I set the module as:
>>
>>
>>
>> loadmodule "gflags.so"
>> modparam("gflags", "initial", 0)
>>
>>
>>
>> then i'm doing:
>>
>>
>>
>> if (is_gflag("1")) {
>> xlog("L_ERR", "[$ci][$rm]: gflag(1) is set\n");
>> } else {
>> xlog("L_ERR", "[$ci][$rm]: gflag(1) is not set\n");
>> }
>>
>>
>>
>> Then, via CLI I'm setting the flag like so:
>>
>>
>>
>> # opensipsctl fifo is_gflag "1"
>> FALSE
>>
>>
>>
>> And is set it with:
>>
>>
>>
>> # opensipsctl fifo set_gflag "1"
>>
>>
>>
>> and check it is actually set:
>>
>>
>>
>> # opensipsctl fifo is_gflag "1"
>> TRUE
>>
>>
>>
>> But no matter what i do, the script always sees the flag as not set.
>>
>>
>>
>> Did I misunderstand the purpose of the module? I want to be able to set
>> the flag dynamically from the CLI to enable/disable a feature at runtime...
>> is this not possible?
>>
>>
>>
>> thanks guys.
>>
>>
>> Regards,
>>
>>
>>
>> David Villasmil
>>
>> email: david.villasmil.w...@gmail.com
>>
>> phone: +34669448337
>>
>>
>>
>>
>>
>> On Wed, Jun 9, 2021 at 8:55 PM David Villasmil <
>> david.villasmil.w...@gmail.com> wrote:
>>
>> gflags!
>>
>>
>> Regards,
>>
>>
>>
>> David Villasmil
>>
>> email: david.villasmil.w...@gmail.com
>>
>> phone: +34669448337
>>
>>
>>
>>
>>
>> On Wed, Jun 9, 2021 at 5:05 PM David Villasmil <
>> david.villasmil.w...@gmail.com> wrote:
>>
>> Hello guys,
>>
>>
>>
>> On 2.4 is it possible to set a flag at runtime? I want to set a feature
>> toggle based on that.
>>
>>
>> Regards,
>>
>>
>>
>> David Villasmil
>>
>> email: david.villasmil.w...@gmail.com
>>
>> phone: +34669448337
>>
>> ___
>> Users mailing list
>> Users@lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
> --
> Regards,
>
> David Villasmil
> email: david.villasmil.w...@gmail.com
> phone: +34669448337
>
-- 
Regards,

David Villasmil
email: david.villasmil.w...@gmail.com
phone: +34669448337
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Set flag at runtime?

2021-06-09 Thread David Villasmil
Thanks Ben, I tried both :(

On Thu, 10 Jun 2021 at 01:26, Ben Newlin  wrote:

> Per the documentation [1], the CLI command wants the value as an integer,
> not quoted.
>
>
>
> Have you tried
>
>
>
> # opensipsctl fifo set_gflag 1
>
>
>
> [1] -
> https://opensips.org/docs/modules/2.4.x/gflags.html#exported_mi_functions
>
>
>
> Ben Newlin
>
>
>
> *From: *Users  on behalf of David
> Villasmil 
> *Date: *Wednesday, June 9, 2021 at 6:34 PM
> *To: *users@lists.opensips.org 
> *Subject: *Re: [OpenSIPS-Users] Set flag at runtime?
>
> So I'm trying to use gflags.so in 2.4.7
>
>
>
> I set the module as:
>
>
>
> loadmodule "gflags.so"
> modparam("gflags", "initial", 0)
>
>
>
> then i'm doing:
>
>
>
> if (is_gflag("1")) {
> xlog("L_ERR", "[$ci][$rm]: gflag(1) is set\n");
> } else {
> xlog("L_ERR", "[$ci][$rm]: gflag(1) is not set\n");
> }
>
>
>
> Then, via CLI I'm setting the flag like so:
>
>
>
> # opensipsctl fifo is_gflag "1"
> FALSE
>
>
>
> And is set it with:
>
>
>
> # opensipsctl fifo set_gflag "1"
>
>
>
> and check it is actually set:
>
>
>
> # opensipsctl fifo is_gflag "1"
> TRUE
>
>
>
> But no matter what i do, the script always sees the flag as not set.
>
>
>
> Did I misunderstand the purpose of the module? I want to be able to set
> the flag dynamically from the CLI to enable/disable a feature at runtime...
> is this not possible?
>
>
>
> thanks guys.
>
>
> Regards,
>
>
>
> David Villasmil
>
> email: david.villasmil.w...@gmail.com
>
> phone: +34669448337
>
>
>
>
>
> On Wed, Jun 9, 2021 at 8:55 PM David Villasmil <
> david.villasmil.w...@gmail.com> wrote:
>
> gflags!
>
>
> Regards,
>
>
>
> David Villasmil
>
> email: david.villasmil.w...@gmail.com
>
> phone: +34669448337
>
>
>
>
>
> On Wed, Jun 9, 2021 at 5:05 PM David Villasmil <
> david.villasmil.w...@gmail.com> wrote:
>
> Hello guys,
>
>
>
> On 2.4 is it possible to set a flag at runtime? I want to set a feature
> toggle based on that.
>
>
> Regards,
>
>
>
> David Villasmil
>
> email: david.villasmil.w...@gmail.com
>
> phone: +34669448337
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-- 
Regards,

David Villasmil
email: david.villasmil.w...@gmail.com
phone: +34669448337
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Set flag at runtime?

2021-06-09 Thread Ben Newlin
Per the documentation [1], the CLI command wants the value as an integer, not 
quoted.

Have you tried

# opensipsctl fifo set_gflag 1

[1] - https://opensips.org/docs/modules/2.4.x/gflags.html#exported_mi_functions

Ben Newlin

From: Users  on behalf of David Villasmil 

Date: Wednesday, June 9, 2021 at 6:34 PM
To: users@lists.opensips.org 
Subject: Re: [OpenSIPS-Users] Set flag at runtime?
So I'm trying to use gflags.so in 2.4.7

I set the module as:

loadmodule "gflags.so"
modparam("gflags", "initial", 0)

then i'm doing:

if (is_gflag("1")) {
xlog("L_ERR", "[$ci][$rm]: gflag(1) is set\n");
} else {
xlog("L_ERR", "[$ci][$rm]: gflag(1) is not set\n");
}

Then, via CLI I'm setting the flag like so:

# opensipsctl fifo is_gflag "1"
FALSE

And is set it with:

# opensipsctl fifo set_gflag "1"

and check it is actually set:

# opensipsctl fifo is_gflag "1"
TRUE

But no matter what i do, the script always sees the flag as not set.

Did I misunderstand the purpose of the module? I want to be able to set the 
flag dynamically from the CLI to enable/disable a feature at runtime... is this 
not possible?

thanks guys.

Regards,

David Villasmil
email: david.villasmil.w...@gmail.com
phone: +34669448337


On Wed, Jun 9, 2021 at 8:55 PM David Villasmil 
mailto:david.villasmil.w...@gmail.com>> wrote:
gflags!

Regards,

David Villasmil
email: david.villasmil.w...@gmail.com
phone: +34669448337


On Wed, Jun 9, 2021 at 5:05 PM David Villasmil 
mailto:david.villasmil.w...@gmail.com>> wrote:
Hello guys,

On 2.4 is it possible to set a flag at runtime? I want to set a feature toggle 
based on that.

Regards,

David Villasmil
email: david.villasmil.w...@gmail.com
phone: +34669448337
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Set flag at runtime?

2021-06-09 Thread David Villasmil
So I'm trying to use gflags.so in 2.4.7

I set the module as:

loadmodule "gflags.so"
modparam("gflags", "initial", 0)

then i'm doing:

if (is_gflag("1")) {
xlog("L_ERR", "[$ci][$rm]: gflag(1) is set\n");
} else {
xlog("L_ERR", "[$ci][$rm]: gflag(1) is not set\n");
}

Then, via CLI I'm setting the flag like so:

# opensipsctl fifo is_gflag "1"
FALSE

And is set it with:

# opensipsctl fifo set_gflag "1"

and check it is actually set:

# opensipsctl fifo is_gflag "1"
TRUE

But no matter what i do, the script always sees the flag as not set.

Did I misunderstand the purpose of the module? I want to be able to set the
flag dynamically from the CLI to enable/disable a feature at runtime... is
this not possible?

thanks guys.

Regards,

David Villasmil
email: david.villasmil.w...@gmail.com
phone: +34669448337


On Wed, Jun 9, 2021 at 8:55 PM David Villasmil <
david.villasmil.w...@gmail.com> wrote:

> gflags!
>
> Regards,
>
> David Villasmil
> email: david.villasmil.w...@gmail.com
> phone: +34669448337
>
>
> On Wed, Jun 9, 2021 at 5:05 PM David Villasmil <
> david.villasmil.w...@gmail.com> wrote:
>
>> Hello guys,
>>
>> On 2.4 is it possible to set a flag at runtime? I want to set a feature
>> toggle based on that.
>>
>> Regards,
>>
>> David Villasmil
>> email: david.villasmil.w...@gmail.com
>> phone: +34669448337
>>
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Contact header in the dispatcher OPTIONS

2021-06-09 Thread Jehanzaib Younis
Thank you ovidiu nd Mark,
I can add the Contact header in the local route.

Regards,
Jehanzaib


On Wed, Jun 9, 2021 at 11:11 PM Mark Farmer  wrote:

> The Contact header is optional in an OPTIONS message so the module
> probably doesn't add it.
>
> The link provided provides you with the solution regardless of carrier.
>
> Mark.
>
>
> On Wed, 9 Jun 2021 at 02:48, Jehanzaib Younis 
> wrote:
>
>> Thank you for sending me the link but I am not trying to integrate with
>> MS teams.
>> The Dispatcher sends the OPTIONS without Contact to my carrier and my
>> carrier does not like it. I just want to add Contact header in the
>> dispatchers OPTIONS.
>>
>>
>> Regards,
>> Jehanzaib
>>
>>
>> On Wed, Jun 9, 2021 at 1:19 PM Ovidiu Sas  wrote:
>>
>>> It seems that you are trying to integrate with MS.
>>> Check this blog, you have your answer there:
>>> https://blog.opensips.org/2019/09/16/opensips-as-ms-teams-sbc/
>>>
>>> -ovidiu
>>>
>>>
>>> On Tue, Jun 8, 2021 at 20:52 Jehanzaib Younis 
>>> wrote:
>>>
 Hi folks,
 I have opensips 2.4.x.
 I am using the dispatcher module. I can not see the Contact header in
 the OPTIONS to the destination, is there any way we can add the contact
 header?

 Thank you

 Regards,
 Jehanzaib
 ___
 Users mailing list
 Users@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/users

>>> --
>>> VoIP Embedded, Inc.
>>> http://www.voipembedded.com
>>> ___
>>> 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
>>
>
>
> --
> Mark Farmer
> farm...@gmail.com
> ___
> 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] Set flag at runtime?

2021-06-09 Thread David Villasmil
gflags!

Regards,

David Villasmil
email: david.villasmil.w...@gmail.com
phone: +34669448337


On Wed, Jun 9, 2021 at 5:05 PM David Villasmil <
david.villasmil.w...@gmail.com> wrote:

> Hello guys,
>
> On 2.4 is it possible to set a flag at runtime? I want to set a feature
> toggle based on that.
>
> Regards,
>
> David Villasmil
> email: david.villasmil.w...@gmail.com
> phone: +34669448337
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Set flag at runtime?

2021-06-09 Thread David Villasmil
Hello guys,

On 2.4 is it possible to set a flag at runtime? I want to set a feature
toggle based on that.

Regards,

David Villasmil
email: david.villasmil.w...@gmail.com
phone: +34669448337
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Incorrect callid in ACK

2021-06-09 Thread Mark Farmer
I have confirmed that the Call-ID header is in fact incorrect regardless of
what sngrep tells me by logging the message buffer for ACK's.
The call flows like this:

Provider -> 1st OpenSIPS -> 2nd OpenSIPS -> Teams

What seems to be happening is that the ACK comes from provider to 1st
OpenSIPS and when routed to 2nd OpenSIPS it is sent with the original
Call-ID created by provider instead of than the one generated by
topology_hiding(UC) for the original INVITE which results in:
WARNING:dialog:dlg_onroute: tight matching failed for ACK with
callid='54303148.etc'

I doubt this is a bug, more likely something I'm doing wrong. Does anyone
have any ideas please?

Many thanks!
Mark.



On Tue, 8 Jun 2021 at 16:56, Mark Farmer  wrote:

> Thanks for the reply John!
>
> Checking things over, the tags look fine.
>
> According to the logs the ACK is being forwarded with the original Call-ID
> header.
> It seems to arrive at the next hop as having been encrypted by
> topology_hiding() but in the log of that next hop I get a match failure
> because the original header doesn't match what's in the existing dialog.
>
> WARNING:dialog:dlg_onroute: tight matching failed for ACK with callid='
> 42284230-3832136123-249469...@sbc-uk-l-far07b.uk.sdin.bt.net'/60,
> ftag='3832136123-1536789624'/21, ttag='2e31e1179f3440fca8aed29db28c4314'/32
> and direction=0
> WARNING:dialog:dlg_onroute: dialog identification elements are
> callid='DLGCH_e0JXVmd7Y2NiQ11dYXhjZX5CVkNhfWlneUlRXWIJIzEsXRAFfiV9NS4CVVkxZyU4YQMBBz1nMidhHgAa'/86,
> caller tag='3832136123-1536789624'/21, callee
> tag='2e31e1179f3440fca8aed29db28c4314'/32
>
> But according to sngrep the ACK arrives with the correct Call-ID header:
>
> Call-ID:
> DLGCH_e0JXVmd7Y2NiQ11dYXhjZX5CVkNhfWlneUlRXWIJIzEsXRAFfiV9NS4CVVkxZyU4YQMBBz1nMidhHgAa
>
> So I don't know which to believe at this point.
>
> Mark.
>
>
> On Tue, 8 Jun 2021 at 13:58, John Quick  wrote:
>
>> Mark,
>>
>> I wasn't using topology hiding, but had a problem similar to this which
>> baffled me for a long time until I noticed that the To-tag value wasn't
>> matching the value in the "200 OK". Looking at the DBG logs, it appears
>> that
>> the dialog matching uses To-tag and From-tag.
>>
>> Another idea - topology hiding puts a unique hash code into the Contact
>> header. Is that getting altered by a downstream server?
>>
>> Compare the "200 OK" elements with the equivalent ACK elements. Hope this
>> helps.
>>
>> John Quick
>> Smartvox Limited
>>
>>
>>
>
> --
> Mark Farmer
> farm...@gmail.com
>


-- 
Mark Farmer
farm...@gmail.com
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Contact header in the dispatcher OPTIONS

2021-06-09 Thread gataka
Hey  Jehanzaib
I did that with "ds_ping_from"
modparam("dispatcher", "ds_ping_from", "sip:my_options_n...@someserver.com")

enjoy.

gataka

On Wed, Jun 9, 2021 at 2:14 PM Mark Farmer  wrote:

> The Contact header is optional in an OPTIONS message so the module
> probably doesn't add it.
>
> The link provided provides you with the solution regardless of carrier.
>
> Mark.
>
>
> On Wed, 9 Jun 2021 at 02:48, Jehanzaib Younis 
> wrote:
>
>> Thank you for sending me the link but I am not trying to integrate with
>> MS teams.
>> The Dispatcher sends the OPTIONS without Contact to my carrier and my
>> carrier does not like it. I just want to add Contact header in the
>> dispatchers OPTIONS.
>>
>>
>> Regards,
>> Jehanzaib
>>
>>
>> On Wed, Jun 9, 2021 at 1:19 PM Ovidiu Sas  wrote:
>>
>>> It seems that you are trying to integrate with MS.
>>> Check this blog, you have your answer there:
>>> https://blog.opensips.org/2019/09/16/opensips-as-ms-teams-sbc/
>>>
>>> -ovidiu
>>>
>>>
>>> On Tue, Jun 8, 2021 at 20:52 Jehanzaib Younis 
>>> wrote:
>>>
 Hi folks,
 I have opensips 2.4.x.
 I am using the dispatcher module. I can not see the Contact header in
 the OPTIONS to the destination, is there any way we can add the contact
 header?

 Thank you

 Regards,
 Jehanzaib
 ___
 Users mailing list
 Users@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/users

>>> --
>>> VoIP Embedded, Inc.
>>> http://www.voipembedded.com
>>> ___
>>> 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
>>
>
>
> --
> Mark Farmer
> farm...@gmail.com
> ___
> 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] [BLOG] Media high availability/re-anchoring using OpenSIPS 3.2

2021-06-09 Thread Răzvan Crainea

Hi, Kevin!

Unfortunately the module currently does not do this automatically. I've 
actually thought about this as well while I was writing the blog 
yesterday :)[1].


[1] https://github.com/OpenSIPS/opensips/issues/2548

Răzvan Crainea
OpenSIPS Core Developer
http://www.opensips-solutions.com

On 6/9/21 2:11 PM, Kevin Vines wrote:

Hi Razvan,

I just read the blog post and have a couple of questions.

Does the re-anchoring require manual intervention (mi command) even in the case 
of a crash or does the new module somehow detect the loss of a relay and 
automatically re-anchor?

If the module detects the loss of a relay and automatically re-anchors the 
media, what is the timing to detect and re-anchor and can the timing be tuned?

Thanks!


Kevin V.




  Original Message  


From: raz...@opensips.org
Sent: June 9, 2021 5:58 a.m.
To: de...@lists.opensips.org; users@lists.opensips.org; 
n...@lists.opensips.org; busin...@lists.opensips.org
Reply to: users@lists.opensips.org
Subject: [OpenSIPS-Users] [BLOG] Media high availability/re-anchoring using 
OpenSIPS 3.2


Hi, all!

Are you using a media relay server (such as RTPProxy and/or RTPEngine)
in your services? Then make sure you are not missing our latest blog
post[1] that shows how you can achieve media high availability in case
one of your media server crashes by re-anchoring ongoing calls' media to
a new available node.

[1]
https://blog.opensips.org/2021/06/09/media-re-anchoring-using-opensips-3-2/

Happy hacking!
--
Răzvan Crainea
OpenSIPS Core Developer
http://www.opensips-solutions.com

___
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



___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Contact header in the dispatcher OPTIONS

2021-06-09 Thread Mark Farmer
The Contact header is optional in an OPTIONS message so the module probably
doesn't add it.

The link provided provides you with the solution regardless of carrier.

Mark.


On Wed, 9 Jun 2021 at 02:48, Jehanzaib Younis 
wrote:

> Thank you for sending me the link but I am not trying to integrate with MS
> teams.
> The Dispatcher sends the OPTIONS without Contact to my carrier and my
> carrier does not like it. I just want to add Contact header in the
> dispatchers OPTIONS.
>
>
> Regards,
> Jehanzaib
>
>
> On Wed, Jun 9, 2021 at 1:19 PM Ovidiu Sas  wrote:
>
>> It seems that you are trying to integrate with MS.
>> Check this blog, you have your answer there:
>> https://blog.opensips.org/2019/09/16/opensips-as-ms-teams-sbc/
>>
>> -ovidiu
>>
>>
>> On Tue, Jun 8, 2021 at 20:52 Jehanzaib Younis 
>> wrote:
>>
>>> Hi folks,
>>> I have opensips 2.4.x.
>>> I am using the dispatcher module. I can not see the Contact header in
>>> the OPTIONS to the destination, is there any way we can add the contact
>>> header?
>>>
>>> Thank you
>>>
>>> Regards,
>>> Jehanzaib
>>> ___
>>> Users mailing list
>>> Users@lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>> --
>> VoIP Embedded, Inc.
>> http://www.voipembedded.com
>> ___
>> 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
>


-- 
Mark Farmer
farm...@gmail.com
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] [BLOG] Media high availability/re-anchoring using OpenSIPS 3.2

2021-06-09 Thread Kevin Vines
Hi Razvan,

I just read the blog post and have a couple of questions. 

Does the re-anchoring require manual intervention (mi command) even in the case 
of a crash or does the new module somehow detect the loss of a relay and 
automatically re-anchor? 

If the module detects the loss of a relay and automatically re-anchors the 
media, what is the timing to detect and re-anchor and can the timing be tuned?

Thanks!


Kevin V.




  Original Message  


From: raz...@opensips.org
Sent: June 9, 2021 5:58 a.m.
To: de...@lists.opensips.org; users@lists.opensips.org; 
n...@lists.opensips.org; busin...@lists.opensips.org
Reply to: users@lists.opensips.org
Subject: [OpenSIPS-Users] [BLOG] Media high availability/re-anchoring using 
OpenSIPS 3.2


Hi, all!

Are you using a media relay server (such as RTPProxy and/or RTPEngine)
in your services? Then make sure you are not missing our latest blog
post[1] that shows how you can achieve media high availability in case
one of your media server crashes by re-anchoring ongoing calls' media to
a new available node.

[1]
https://blog.opensips.org/2021/06/09/media-re-anchoring-using-opensips-3-2/

Happy hacking!
--
Răzvan Crainea
OpenSIPS Core Developer
http://www.opensips-solutions.com

___
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


[OpenSIPS-Users] Opensips generate ring and hangup after x seconds

2021-06-09 Thread Schneur Rosenberg
Hi, I would like to have OpenSIPs generate a ring tone on a incoming
call, and hang up after x seconds, I dont want to the call to ring on
any device, I just want to reply to the client with a 180 and a cancel
after x seconds, is it possible?

S. Rosenberg

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] [BLOG] Media high availability/re-anchoring using OpenSIPS 3.2

2021-06-09 Thread Răzvan Crainea

Hi, all!

Are you using a media relay server (such as RTPProxy and/or RTPEngine) 
in your services? Then make sure you are not missing our latest blog 
post[1] that shows how you can achieve media high availability in case 
one of your media server crashes by re-anchoring ongoing calls' media to 
a new available node.


[1] 
https://blog.opensips.org/2021/06/09/media-re-anchoring-using-opensips-3-2/


Happy hacking!
--
Răzvan Crainea
OpenSIPS Core Developer
http://www.opensips-solutions.com

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users