Re: [SR-Users] What is the lifecycle of Branch Flag (setbflag)

2020-11-29 Thread me.proje...@yahoo.com
 Thanks a lot for all this :)
On Sunday, November 29, 2020, 11:43:29 PM GMT+5, Alex Balashov 
 wrote:  
 
 The flags only apply to branches created by Kamailio, not incoming 
branches.

Relaying anything creates a new branch; changing the RURI does not 
affect that.

On 11/29/20 1:40 PM, me.proje...@yahoo.com wrote:
> Hi Alex, Thanks for the reply. I think branch is identified by RURI... 
> if we change the RURI and relay it to other hop then would it be new 
> Branch ? If we set BFlag in Request Route would it be available this 
> changed RURI for this transaction ?
> 
> On Sunday, November 29, 2020, 11:21:48 PM GMT+5, Alex Balashov 
>  wrote:
> 
> 
> It will be available within a particular branch, which is a subset of a
> single transaction.
> 
> On 11/29/20 1:20 PM, me.proje...@yahoo.com 
>  wrote:
>  > Hi,
>  >
>  > What is the lifecycle of Branch Flag? If its set in Request Route will
>  > it be available till end of Dialog or It will be available during
>  > Transaction only ?
>  >
>  > Thanks
> 
>  >
>  > ___
>  > Kamailio (SER) - Users Mailing List
>  > sr-users@lists.kamailio.org 
>  > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users 
> 
>  >
> 
> -- 
> Alex Balashov | Principal | Evariste Systems LLC
> 
> Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
> Web: http://www.evaristesys.com/,   >http://www.csrpswitch.com/ 
> 
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org 
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users 
> 
> 
> 
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
> 

-- 
Alex Balashov | Principal | Evariste Systems LLC

Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/

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


Re: [SR-Users] What is the lifecycle of Branch Flag (setbflag)

2020-11-29 Thread me.proje...@yahoo.com
 Hi Alex, Thanks for the reply. I think branch is identified by RURI... if we 
change the RURI and relay it to other hop then would it be new Branch ? If we 
set BFlag in Request Route would it be available this changed RURI for this 
transaction ?
On Sunday, November 29, 2020, 11:21:48 PM GMT+5, Alex Balashov 
 wrote:  
 
 It will be available within a particular branch, which is a subset of a 
single transaction.

On 11/29/20 1:20 PM, me.proje...@yahoo.com wrote:
> Hi,
> 
> What is the lifecycle of Branch Flag? If its set in Request Route will 
> it be available till end of Dialog or It will be available during 
> Transaction only ?
> 
> Thanks
> 
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
> 

-- 
Alex Balashov | Principal | Evariste Systems LLC

Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/

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


[SR-Users] What is the lifecycle of Branch Flag (setbflag)

2020-11-29 Thread me.proje...@yahoo.com
Hi,
What is the lifecycle of Branch Flag? If its set in Request Route will it be 
available till end of Dialog or It will be available during Transaction only ?
Thanks___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] What is the lifecycle of Branch Flag (setbflag)

2020-11-29 Thread Alex Balashov
The flags only apply to branches created by Kamailio, not incoming 
branches.


Relaying anything creates a new branch; changing the RURI does not 
affect that.


On 11/29/20 1:40 PM, me.proje...@yahoo.com wrote:
Hi Alex, Thanks for the reply. I think branch is identified by RURI... 
if we change the RURI and relay it to other hop then would it be new 
Branch ? If we set BFlag in Request Route would it be available this 
changed RURI for this transaction ?


On Sunday, November 29, 2020, 11:21:48 PM GMT+5, Alex Balashov 
 wrote:



It will be available within a particular branch, which is a subset of a
single transaction.

On 11/29/20 1:20 PM, me.proje...@yahoo.com 
 wrote:

 > Hi,
 >
 > What is the lifecycle of Branch Flag? If its set in Request Route will
 > it be available till end of Dialog or It will be available during
 > Transaction only ?
 >
 > Thanks

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


 >

--
Alex Balashov | Principal | Evariste Systems LLC

Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/ 


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




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



--
Alex Balashov | Principal | Evariste Systems LLC

Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/

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


Re: [SR-Users] What is the lifecycle of Branch Flag (setbflag)

2020-11-29 Thread Alex Balashov
It will be available within a particular branch, which is a subset of a 
single transaction.


On 11/29/20 1:20 PM, me.proje...@yahoo.com wrote:

Hi,

What is the lifecycle of Branch Flag? If its set in Request Route will 
it be available till end of Dialog or It will be available during 
Transaction only ?


Thanks

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



--
Alex Balashov | Principal | Evariste Systems LLC

Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/

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


Re: [SR-Users] core dump error when running under docker

2020-11-29 Thread Sergey Safarov
you can change
set args -f /etc/kamailio/kamailio.cfg -D -d -E

To
set args -f /etc/kamailio/kamailio.cfg -DD -d -E

On Sun, Nov 29, 2020 at 4:14 PM Carlos Vicente 
wrote:

> Thank you for your response.
>
> I'm trying to run it under gdb but it's not doing anything:
>
> ```
> (gdb) exec-file /usr/sbin/kamailio
> (gdb) set args -f /etc/kamailio/kamailio.cfg -D -d -E
> (gdb) run
> Starting program: /usr/sbin/kamailio -f /etc/kamailio/kamailio.cfg -D -d -E
> warning: Error disabling address space randomization: Success
> ```
>
> It just stops there. Am I missing something?
>
> cv
>
> On Sat, Nov 28, 2020 at 11:37 AM Sergey Safarov 
> wrote:
>
>> You can start kamailio under GDB debugger.
>> When issue reproduced, then you can get stack trace and variables values
>>
>>
>> сб, 28 нояб. 2020 г., 18:35 Carlos Vicente :
>>
>>> Greetings,
>>>
>>> I'm having a "fun" time trying to run Kamailio inside a Docker
>>> container. It keeps failing with:
>>>
>>>  0(238) DEBUG:  [core/mem/pkg.c:108]: pkg_print_manager(): pkg -
>>> using memory manager: q_malloc
>>>  0(238) DEBUG:  [core/mem/shm.c:300]: shm_print_manager(): shm -
>>> using memory manager: q_malloc
>>> Illegal instruction (core dumped)
>>>
>>> Unfortunately the core dump is nowhere to be found. I have tried to
>>> follow the instructions at:
>>>
>>> https://www.kamailio.org/wiki/tutorials/troubleshooting/coredumpfile
>>>
>>> but that hasn't helped.
>>>
>>> The environment is as follows:
>>>
>>> * Host hardware: Raspberry Pi 4 (4G memory)
>>> * Host OS: Ubuntu 20.04.1 LTS
>>> * Docker version 19.03.13
>>> * Docker base image: arm32v7/ubuntu
>>>
>>> root@2ef8a21534fa:/# kamailio -v
>>> version: kamailio 5.3.2 (arm/linux)
>>> flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS,
>>> DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MMAP, PKG_MALLOC, Q_MALLOC,
>>> F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX,
>>> FAST_LOCK-ADAPTIVE_WAIT-NOSMP, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR,
>>> USE_DST_BLACKLIST, HAVE_RESOLV_RES, TLS_PTHREAD_MUTEX_SHARED
>>> ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144, MAX_URI_SIZE
>>> 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
>>> poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
>>> id: unknown
>>> compiled with gcc 9.2.1
>>>
>>> The config file passes the syntax check:
>>>
>>> kamailio -c -f /etc/kamailio/kamailio.cfg
>>>
>>> and, the most interesting part, if I run Kamailio on the host machine,
>>> _with the exact same config file_, it runs fine.
>>>
>>> I'd appreciate any clues you may have. Thanks.
>>>
>>> cv
>>>
>>>
>>> ___
>>> Kamailio (SER) - Users Mailing List
>>> sr-users@lists.kamailio.org
>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>
>> ___
>> Kamailio (SER) - Users Mailing List
>> sr-users@lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] core dump error when running under docker

2020-11-29 Thread Carlos Vicente
Thank you for your response.

I'm trying to run it under gdb but it's not doing anything:

```
(gdb) exec-file /usr/sbin/kamailio
(gdb) set args -f /etc/kamailio/kamailio.cfg -D -d -E
(gdb) run
Starting program: /usr/sbin/kamailio -f /etc/kamailio/kamailio.cfg -D -d -E
warning: Error disabling address space randomization: Success
```

It just stops there. Am I missing something?

cv

On Sat, Nov 28, 2020 at 11:37 AM Sergey Safarov  wrote:

> You can start kamailio under GDB debugger.
> When issue reproduced, then you can get stack trace and variables values
>
>
> сб, 28 нояб. 2020 г., 18:35 Carlos Vicente :
>
>> Greetings,
>>
>> I'm having a "fun" time trying to run Kamailio inside a Docker container.
>> It keeps failing with:
>>
>>  0(238) DEBUG:  [core/mem/pkg.c:108]: pkg_print_manager(): pkg -
>> using memory manager: q_malloc
>>  0(238) DEBUG:  [core/mem/shm.c:300]: shm_print_manager(): shm -
>> using memory manager: q_malloc
>> Illegal instruction (core dumped)
>>
>> Unfortunately the core dump is nowhere to be found. I have tried to
>> follow the instructions at:
>>
>> https://www.kamailio.org/wiki/tutorials/troubleshooting/coredumpfile
>>
>> but that hasn't helped.
>>
>> The environment is as follows:
>>
>> * Host hardware: Raspberry Pi 4 (4G memory)
>> * Host OS: Ubuntu 20.04.1 LTS
>> * Docker version 19.03.13
>> * Docker base image: arm32v7/ubuntu
>>
>> root@2ef8a21534fa:/# kamailio -v
>> version: kamailio 5.3.2 (arm/linux)
>> flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS,
>> DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MMAP, PKG_MALLOC, Q_MALLOC,
>> F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX,
>> FAST_LOCK-ADAPTIVE_WAIT-NOSMP, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR,
>> USE_DST_BLACKLIST, HAVE_RESOLV_RES, TLS_PTHREAD_MUTEX_SHARED
>> ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144, MAX_URI_SIZE 1024,
>> BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
>> poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
>> id: unknown
>> compiled with gcc 9.2.1
>>
>> The config file passes the syntax check:
>>
>> kamailio -c -f /etc/kamailio/kamailio.cfg
>>
>> and, the most interesting part, if I run Kamailio on the host machine,
>> _with the exact same config file_, it runs fine.
>>
>> I'd appreciate any clues you may have. Thanks.
>>
>> cv
>>
>>
>> ___
>> Kamailio (SER) - Users Mailing List
>> sr-users@lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users