Re: [SR-Users] is_gflag Always Returns FALSE

2020-03-19 Thread Yufei Tao
Hi Daniel,

Yes it's worked! Thank you very much for the quick response :)

Cheers,
Yufei

On Thu, 19 Mar 2020 at 15:59, Daniel-Constantin Mierla 
wrote:

> Hello,
>
> try with the patch from commit:
>
>   *
> https://github.com/kamailio/kamailio/commit/5411eda4e44a487479d00433583a68a328aca9a3
>
> Cheers,
> Daniel
> On 19.03.20 15:01, Daniel-Constantin Mierla wrote:
>
> Hello,
>
> can you try:
>
> kamcmd cfgutils.is_gflag i:1024
>
> Cheers,
> Daniel
> On 19.03.20 12:12, Yufei Tao wrote:
>
> Hi,
>
> I got some problems with is_gflags:
> 1. Set the gflag:
> # kamcmd cfgutils.set_gflag 1024
> 2. Check the gflags - fine:
> # kamcmd cfgutils.get_gflags
> 0x400 (1024)
> 3. Check using is_gflag - problem:
> # kamcmd cfgutils.is_gflag 1024
> FALSE
>
> Seems is_gflag always returns FALSE somehow. Calling function is_gflag()
> from the cfg file seems to always return FALSE too.
>
> I tried this on Kamailio 5.3.2 and 5.3.3 and the behaviour is the same.
>
> Best regards,
> Yufei
>
> ___
> Kamailio (SER) - Users Mailing 
> Listsr-users@lists.kamailio.orghttps://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
> --
> Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- 
> www.linkedin.com/in/miconda
>
> --
> Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- 
> www.linkedin.com/in/miconda
>
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] is_gflag Always Returns FALSE

2020-03-19 Thread Daniel-Constantin Mierla
Hello,

try with the patch from commit:

  *
https://github.com/kamailio/kamailio/commit/5411eda4e44a487479d00433583a68a328aca9a3

Cheers,
Daniel

On 19.03.20 15:01, Daniel-Constantin Mierla wrote:
>
> Hello,
>
> can you try:
>
> kamcmd cfgutils.is_gflag i:1024
>
> Cheers,
> Daniel
>
> On 19.03.20 12:12, Yufei Tao wrote:
>> Hi,
>>
>> I got some problems with is_gflags:
>> 1. Set the gflag:
>> # kamcmd cfgutils.set_gflag 1024
>> 2. Check the gflags - fine:
>> # kamcmd cfgutils.get_gflags
>> 0x400 (1024)
>> 3. Check using is_gflag - problem:
>> # kamcmd cfgutils.is_gflag 1024
>> FALSE
>>
>> Seems is_gflag always returns FALSE somehow. Calling function
>> is_gflag() from the cfg file seems to always return FALSE too.
>>
>> I tried this on Kamailio 5.3.2 and 5.3.3 and the behaviour is the same.
>>
>> Best regards,
>> Yufei
>>
>> ___
>> Kamailio (SER) - Users Mailing List
>> sr-users@lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
> -- 
> Daniel-Constantin Mierla -- www.asipto.com
> www.twitter.com/miconda -- www.linkedin.com/in/miconda

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] OPTIONS sent from the wrong IP

2020-03-19 Thread David Villasmil
I saw no errors in the log, I suppose there was a timeout, since the
gateway was being disabled by the module.

On Thu, 19 Mar 2020 at 13:59, Daniel-Constantin Mierla 
wrote:

> Hello,
>
> so for better knowing what happened -- the keepalives were not sent out
> before setting the socket field, when using the private socket, were there
> kamailio errors in the logs? Or the OPTIONS ended up in retransmission
> timeout?
>
> Cheers,
> Daniel
> On 18.03.20 19:07, David Villasmil wrote:
>
> Hello Daniel,
>
> No, there’s no routing to public from the private IP. It should go out via
> the public.
>
> I have not tried that, never had the need :)
>
> Using the socket worked nicely, thanks!
>
> David
>
>
>
> On Wed, 18 Mar 2020 at 16:15, Daniel-Constantin Mierla 
> wrote:
>
>> Hello,
>>
>> do you have IP routes from the first IP to the destination? Or the
>> keepalive fails, not being sent out?
>>
>> Also, have you tried setting the socket attribute per destination?
>>
>> Cheers,
>> Daniel
>> On 18.03.20 17:09, David Villasmil wrote:
>>
>> Hello,
>>
>> It seems kamailio is selecting the local ip wrongly when selecting the
>> socket with which to send out OPTIONS.
>>
>> This is 5.2.3, and i have multiple IPs
>>
>> Listen=ip1 (private)
>> Listen=ip2 (public)
>>
>> And when the options goes out, it goes via the first ip instead of the
>> one through which it can reach the OPTIONS destination (public IP). I have
>> mhomed=1 set
>>
>> This is using dispatcher.
>>
>> Has anyone seen this behaviour?
>>
>> Thanks all
>>
>> David
>> --
>> Regards,
>>
>> David Villasmil
>> email: david.villasmil.w...@gmail.com
>> phone: +34669448337
>>
>> ___
>> Kamailio (SER) - Users Mailing 
>> Listsr-users@lists.kamailio.orghttps://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>> --
>> Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- 
>> www.linkedin.com/in/miconda
>>
>> --
> Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- 
> www.linkedin.com/in/miconda
>
> --
Regards,

David Villasmil
email: david.villasmil.w...@gmail.com
phone: +34669448337
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] db_redis and PUA

2020-03-19 Thread Daniel-Constantin Mierla
Hello,

the schema should be auto-generated also for db_redis, check the next
file in the source code:

utils/kamctl/db_redis/kamailio/pua

You have to see what needs to be set for keys parameter.

Cheers,
Daniel

On 19.03.20 13:04, Carsten Bock wrote:
> Hi,
>
> quick question:
> Did anyone ever attempt to use PUA with the new db_redis? If yes,
> could someone share the definition for this?
>
> Thanks,
> Carsten
> --
> Carsten Bock I CTO & Founder
>
> ng-voice GmbH
>
> Trostbrücke 1 I 20457 Hamburg I Germany
> T +49 40 524 75 93-40 | M +49 179 2021244 I www.ng-voice.com
> 
>
> Registry Office at Local Court Hamburg, HRB 120189
> Managing Directors: Dr. David Bachmann, Carsten Bock
>
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] is_gflag Always Returns FALSE

2020-03-19 Thread Daniel-Constantin Mierla
Hello,

can you try:

kamcmd cfgutils.is_gflag i:1024

Cheers,
Daniel

On 19.03.20 12:12, Yufei Tao wrote:
> Hi,
>
> I got some problems with is_gflags:
> 1. Set the gflag:
> # kamcmd cfgutils.set_gflag 1024
> 2. Check the gflags - fine:
> # kamcmd cfgutils.get_gflags
> 0x400 (1024)
> 3. Check using is_gflag - problem:
> # kamcmd cfgutils.is_gflag 1024
> FALSE
>
> Seems is_gflag always returns FALSE somehow. Calling function
> is_gflag() from the cfg file seems to always return FALSE too.
>
> I tried this on Kamailio 5.3.2 and 5.3.3 and the behaviour is the same.
>
> Best regards,
> Yufei
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] OPTIONS sent from the wrong IP

2020-03-19 Thread Daniel-Constantin Mierla
Hello,

so for better knowing what happened -- the keepalives were not sent out
before setting the socket field, when using the private socket, were
there kamailio errors in the logs? Or the OPTIONS ended up in
retransmission timeout?

Cheers,
Daniel

On 18.03.20 19:07, David Villasmil wrote:
> Hello Daniel,
>
> No, there’s no routing to public from the private IP. It should go out
> via the public.
>
> I have not tried that, never had the need :)
>
> Using the socket worked nicely, thanks!
>
> David
>
>
>
> On Wed, 18 Mar 2020 at 16:15, Daniel-Constantin Mierla
> mailto:mico...@gmail.com>> wrote:
>
> Hello,
>
> do you have IP routes from the first IP to the destination? Or the
> keepalive fails, not being sent out?
>
> Also, have you tried setting the socket attribute per destination?
>
> Cheers,
> Daniel
>
> On 18.03.20 17:09, David Villasmil wrote:
>> Hello,
>>
>> It seems kamailio is selecting the local ip wrongly when
>> selecting the socket with which to send out OPTIONS.
>>
>> This is 5.2.3, and i have multiple IPs
>>
>> Listen=ip1 (private)
>> Listen=ip2 (public)
>>
>> And when the options goes out, it goes via the first ip instead
>> of the one through which it can reach the OPTIONS destination
>> (public IP). I have mhomed=1 set
>>
>> This is using dispatcher.
>>
>> Has anyone seen this behaviour?
>>
>> Thanks all
>>
>> David
>> -- 
>> Regards,
>>
>> David Villasmil
>> email: david.villasmil.w...@gmail.com
>> 
>> phone: +34669448337
>>
>> ___
>> Kamailio (SER) - Users Mailing List
>> sr-users@lists.kamailio.org 
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
> -- 
> Daniel-Constantin Mierla -- www.asipto.com 
> www.twitter.com/miconda  -- 
> www.linkedin.com/in/miconda 
>
-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] db_redis and PUA

2020-03-19 Thread Carsten Bock
Hi,

quick question:
Did anyone ever attempt to use PUA with the new db_redis? If yes, could
someone share the definition for this?

Thanks,
Carsten
--
Carsten Bock I CTO & Founder

ng-voice GmbH

Trostbrücke 1 I 20457 Hamburg I Germany
T +49 40 524 75 93-40 | M +49 179 2021244 I www.ng-voice.com

Registry Office at Local Court Hamburg, HRB 120189
Managing Directors: Dr. David Bachmann, Carsten Bock
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] is_gflag Always Returns FALSE

2020-03-19 Thread Yufei Tao
Hi,

I got some problems with is_gflags:
1. Set the gflag:
# kamcmd cfgutils.set_gflag 1024
2. Check the gflags - fine:
# kamcmd cfgutils.get_gflags
0x400 (1024)
3. Check using is_gflag - problem:
# kamcmd cfgutils.is_gflag 1024
FALSE

Seems is_gflag always returns FALSE somehow. Calling function is_gflag()
from the cfg file seems to always return FALSE too.

I tried this on Kamailio 5.3.2 and 5.3.3 and the behaviour is the same.

Best regards,
Yufei
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users