[SR-Users] Upgrading from version 5.2 to 5.4 - any unpublished words of wisdom?

2022-03-17 Thread Kevin Greene

Hi:

I have a 5.2 version of Kamailio running and I was thinking to get it 
upgraded to the 5.4 branch. The 5.2 is working well but I have heard the 
5.4 is a bit more stable. Thus the question becomes, is it worth the 
risk to upgrade and what should I look out for.


Thanks.

Kevin

__
Kamailio - Users Mailing List - Non Commercial Discussions
 * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
 * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] enable topology hiding on one side or dynamic ip in topoh module Contact and Via Header

2022-03-17 Thread Patrick Karton
Thanks For the link.

but i dont know exactly how to make the topos module work!

i have enabled it on my kamailio script but i have some issues.


  *in the relayed request, received Via is removed and only kamailio Via is 
left. thats great for topology hiding.

  *   in the relayed request there is no Contact Header. i assume the module 
removes the received one  and must insert a new one .

loadmodule "db_text.so"
loadmodule "topos.so"


modparam("db_text", "db_mode", 0)
modparam("db_text", "emptystring", 0)
modparam("db_text", "file_buffer_size", 8192)
modparam("db_text", "max_result_rows", 1000)

modparam("topos", "storage", "db")
modparam("topos", "db_url", "text:///home/sbc/database")
modparam("topos", "mask_callid", 0)
modparam("topos", "sanity_checks", 0)
modparam("topos", "contact_host", "127.0.0.1")
modparam("topos", "contact_mode", 0)


### topos_t file table
id(int,auto) rectime(int,null) x_context(string,null) s_method(string,null) 
s_cseq(string,null) a_callid(string,null) a_uuid(string,null) 
b_uuid(string,null) direction(int,null) x_via(string,null) 
x_vbranch(string,null) x_rr(string,null) y_rr(string,null) s_rr(string,null) 
x_uri(string,null) a_contact(string,null) b_contact(string,null) 
as_contact(string,null) bs_contact(string,null) x_tag(string,null) 
a_tag(string,null) b_tag(string,null) a_srcaddr(string,null) 
b_srcaddr(string,null) a_socket(string,null) b_socket(string,null)

do i need to insert some records in table or the module does it ?




De : Henning Westerholt 
Envoyé : jeudi 17 mars 2022 17:37
À : Kamailio (SER) - Users Mailing List 
Cc : Patrick Karton 
Objet : RE: enable topology hiding on one side or dynamic ip in topoh module 
Contact and Via Header


Hello,



have a look at this event route: 
https://kamailio.org/docs/modules/5.5.x/modules/topos.html#topos.e.msg_outgoing



Cheers,



Henning



--

Henning Westerholt – https://skalatan.de/blog/

Kamailio services – https://gilawa.com



From: sr-users  On Behalf Of Patrick Karton
Sent: Wednesday, March 16, 2022 7:28 PM
To: sr-users@lists.kamailio.org
Subject: [SR-Users] enable topology hiding on one side or dynamic ip in topoh 
module Contact and Via Header



Hello ,



im using kamailio with two interfaces external and internal.



i need a way either to :



· enable topoh hiding only when outgoing interface is external ( mask 
contact and Via ip only when ougoing interface is external

· or if it is not possible to enable it only in one direction.i want to 
know how to configure dynamic(for example in xavp or avp) ip to put in Contact 
and Via when topoh is enabled.

i see that the 'mask_ip' parameter of topoh module is a string. so we can not 
set a dynamic value here unfortunately.



Thanks




__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] enable topology hiding on one side or dynamic ip in topoh module Contact and Via Header

2022-03-17 Thread Henning Westerholt
Hello,

have a look at this event route: 
https://kamailio.org/docs/modules/5.5.x/modules/topos.html#topos.e.msg_outgoing

Cheers,

Henning

--
Henning Westerholt - https://skalatan.de/blog/
Kamailio services - https://gilawa.com

From: sr-users  On Behalf Of Patrick Karton
Sent: Wednesday, March 16, 2022 7:28 PM
To: sr-users@lists.kamailio.org
Subject: [SR-Users] enable topology hiding on one side or dynamic ip in topoh 
module Contact and Via Header

Hello ,

im using kamailio with two interfaces external and internal.

i need a way either to :

* enable topoh hiding only when outgoing interface is external ( mask 
contact and Via ip only when ougoing interface is external
* or if it is not possible to enable it only in one direction.i want to 
know how to configure dynamic(for example in xavp or avp) ip to put in Contact 
and Via when topoh is enabled.
i see that the 'mask_ip' parameter of topoh module is a string. so we can not 
set a dynamic value here unfortunately.

Thanks


__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] kamctl monitor : statistics not displayed ?

2022-03-17 Thread Daniel-Constantin Mierla
Maybe you didn't install the config file, in the source directory of
kamcli, run:

kamcli config install

You should use/install latest version kamcli.

I tried it on my debian 10 and works.

Daniel

On 17.03.22 10:24, Youssef Boujraf wrote:
> Dear,
>
> Yes all are available.
> When using : "etc$ sudo kamcli moni" I got error.
>
> It's look like jsonrpc issue.
>
> sipsecure@kamailio:/etc$ sudo kamcli moni
> Traceback (most recent call last):
>   File "/usr/bin/kamcli", line 11, in 
>     load_entry_point('kamcli==2.0.0', 'console_scripts', 'kamcli')()
>   File "/usr/lib/python3/dist-packages/click/core.py", line 829,
> in call
>     return self.main(args, kwargs)
>   File "/usr/lib/python3/dist-packages/click/core.py", line 782,
> in main
>     rv = self.invoke(ctx)
>   File "/usr/lib/python3/dist-packages/click/core.py", line 1259,
> in invoke
>     return _process_result(sub_ctx.command.invoke(sub_ctx))
>   File "/usr/lib/python3/dist-packages/click/core.py", line 1066,
> in invoke
>     return ctx.invoke(self.callback, ctx.params)
>   File "/usr/lib/python3/dist-packages/click/core.py", line 610,
> in invoke
>     return callback(args, kwargs)
>   File "/usr/lib/python3/dist-packages/click/decorators.py", line
> 73, in new_func
>     return ctx.invoke(f, obj, *args, kwargs)
>   File "/usr/lib/python3/dist-packages/click/core.py", line 610,
> in invoke
>     return callback(*args, **kwargs)
>   File
> "/usr/lib/python3/dist-packages/kamcli/commands/cmd_moni.py", line
> 36, in cli
>     command_ctl(ctx, 'stats.get_statistics', slist, {"func":
> cmd_moni_result_print})
>   File "/usr/lib/python3/dist-packages/kamcli/iorpc.py", line 387,
> in command_ctl
>     if ctx.gconfig.get('jsonrpc', 'transport') == 'socket':
>   File "/usr/lib/python3.9/configparser.py", line 781, in get
>     d = self._unify_values(section, vars)
>   File "/usr/lib/python3.9/configparser.py", line 1149, in
> _unify_values
>     raise NoSectionError(section) from None
> configparser.NoSectionError: No section: 'jsonrpc'
>
> Best Regards,
>
> On Thursday, March 17, 2022 08:34 CET, Daniel-Constantin Mierla
>  wrote:
>  
>>  
>
> Hello,
>
> be sure the common cli tools are installed: grep, egrep, awk, sed, ...
> Also, it may require to use bash.
>
> The alternative, try to use kamcli.
>
> Cheers,
> Daniel
>
> On 17.03.22 00:40, Youssef Boujraf wrote:
>> Dear,
>>  
>> Kamailio : 5.5.4
>> OS : Debian 11
>> kamailio.cfg
>> loadmodule "kex.so" is included
>>
>> Any idea what is missing in the configuration.
>>
>> Best Regards,
>> Youssef
>>  
>> On Wednesday, March 16, 2022 13:02 CET, "Youssef Boujraf"
>>  wrote:
>>  
>>>  
>>
>> Dear
>>
>> I am tying to monitor the kamailio with "kamctl monitor" and I got
>> this error.
>>
>> -e [cycle #: 1; if constant make sure server lives]
>> -e Kamailio Runtime Details:
>> kamailio 5.5.4 (x86_64/linux)
>>     now:  Wed Mar 16 12:44:43 2022
>>     up_since: Wed Mar 16 12:39:51 2022
>>     uptime: 292
>>
>> -e Transaction Statistics:
>> /usr/sbin/kamctl: 245: column: not found
>>
>> -e Stateless Server Statistics:
>> /usr/sbin/kamctl: 259: column: not found
>>
>> -e UsrLoc Statistics:
>> /usr/sbin/kamctl: 273: column: not found
>>
>> -e Core Statistics:
>> /usr/sbin/kamctl: 287: column: not found
>>
>> -e Shared Memory Statistics:
>> /usr/sbin/kamctl: 301: column: not found
>>
>> Any idea
>>
>> Best Regards
>>
>> --
>> *Youssef*
>>  
>>
>> __
>> Kamailio - Users Mailing List - Non Commercial Discussions
>>   * sr-users@lists.kamailio.org
>> Important: keep the mailing list in the recipients, do not reply only to the 
>> sender!
>> Edit mailing list options or unsubscribe:
>>   * 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 Advanced Training - Online
>   March 28-31, 2022 (Europe Timezone)
>   * https://www.asipto.com/sw/kamailio-advanced-training-online/
>
>
>
> --
> *Youssef* 

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - Online
  March 28-31, 2022 (Europe Timezone)
  * https://www.asipto.com/sw/kamailio-advanced-training-online/
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] kamctl or kamcmd way to enable/disable sections of configs

2022-03-17 Thread Patrick Karton
Hello,Maybe you can use htable to store Dynamic configuration. And change value of htable value from kamcmd.Le 16 mars 2022 15:29, Joshua Young  a écrit :#!define MYSECTION"    route("1");    #!ifdef MYSECTION    route("2");    #!endifI have declarations like this in my kamailio.cfg file, and was curious if there was a way to use kamctl or kamcmd to enable or disable the defined value in a live system. Or if there is another approach/mechanism I'm unaware of the "Serial Forking Based on Q Value" stuff and use it in other parts, but I am looking for a general way to manually manipulate routing on live system using cli commands if possible...Thanks,Joshua
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Kamailio in docker container with TLS enabled using Let's Encrypt

2022-03-17 Thread Giovanni Tommasini
Awesome, thanks a lot Daniel.

I put the github README.md also in an article on my blog:
https://blog.giovannitommasini.info/voip-calls-and-tls-security
The blog article has the same content as the README in the github repo, so
you choose which link to cite.

Cheers,
Giovanni


On Thu, Mar 17, 2022 at 8:56 AM Daniel-Constantin Mierla 
wrote:

> Hello,
>
> thanks for sharing, looks useful! I will publish a news about it on
> kamailio.org, it should increase the visibility for new comers and search
> engines.
>
> Cheers,
> Daniel
> On 16.03.22 19:01, Giovanni Tommasini wrote:
>
> Hi guys,
>
> starting from Fred article
> https://www.fredposner.com/1836/kamailio-tls-and-letsencrypt/
> we move step forward creating this small PoC to deploy Kamailio in docker
> container with TLS enabled using Let's Encrypt
>
> https://github.com/evoseed/kamailio-tls-letsencrypt
>
> What do you think?
> Any feedback?
> Any mistakes to correct or improvements to make?
>
> Thanks a lot
> Have a good evening
> Giovanni Tommasini
>
> *evoseed s.r.l.*
>
>   phone:  +39 340 11 28 800
>  mail:  giovanni.tommas...@evoseed.io
>   site:  evoseed.io
> address:  Via Lucrezio 13, Trieste Italy
>
> __
> Kamailio - Users Mailing List - Non Commercial Discussions
>   * sr-users@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the 
> sender!
> Edit mailing list options or unsubscribe:
>   * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
> --
> Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- 
> www.linkedin.com/in/miconda
> Kamailio Advanced Training - Online
>   March 28-31, 2022 (Europe Timezone)
>   * https://www.asipto.com/sw/kamailio-advanced-training-online/
>
>
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Kamailio in docker container with TLS enabled using Let's Encrypt

2022-03-17 Thread Daniel-Constantin Mierla
Hello,

thanks for sharing, looks useful! I will publish a news about it on
kamailio.org, it should increase the visibility for new comers and
search engines.

Cheers,
Daniel

On 16.03.22 19:01, Giovanni Tommasini wrote:
> Hi guys,
>
> starting from Fred
> article https://www.fredposner.com/1836/kamailio-tls-and-letsencrypt/
> we move step forward creating this small PoC to deploy Kamailio in
> docker container with TLS enabled using Let's Encrypt 
>
> https://github.com/evoseed/kamailio-tls-letsencrypt
>
> What do you think?
> Any feedback?
> Any mistakes to correct or improvements to make?
>
> Thanks a lot
> Have a good evening
>   
>
>
> Giovanni Tommasini
>
> *evoseed s.r.l.*
>
>   
>  
>   
>  **phone:  +39 340 11 28 800
>  mail:  giovanni.tommas...@evoseed.io
>   site:  evoseed.io 
> address:  Via Lucrezio 13, Trieste Italy
>
>
> __
> Kamailio - Users Mailing List - Non Commercial Discussions
>   * sr-users@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the 
> sender!
> Edit mailing list options or unsubscribe:
>   * 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 Advanced Training - Online
  March 28-31, 2022 (Europe Timezone)
  * https://www.asipto.com/sw/kamailio-advanced-training-online/
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] kamctl or kamcmd way to enable/disable sections of configs

2022-03-17 Thread Daniel-Constantin Mierla
The defines are preprocessor directives, therefore they are evaluated at
start-up, before parsing the configuration file. Practically, those
parts not enabled at start up are not seen by kamailio config
interpreter at runtime, they cannot be enabled because they don't exist
in memory.

The solution here is to use shared memory variables, like:

if($shv(enabled)==1) {

   route(2);

}

The value of $shv(enabled) can be changed with rpc commands using
kamcli/kamctl/...

Cheers,
Daniel

On 16.03.22 15:29, Joshua Young wrote:
> #!define MYSECTION"
>     route("1");
>     #!ifdef MYSECTION
>     route("2");
>     #!endif
>
> I have declarations like this in my kamailio.cfg file, and was curious
> if there was a way to use kamctl or kamcmd to enable or disable the
> defined value in a live system. Or if there is another
> approach/mechanism I'm unaware of the "Serial Forking Based on Q
> Value" stuff and use it in other parts, but I am looking for a general
> way to manually manipulate routing on live system using cli commands
> if possible...
>
> Thanks,
> Joshua
>
>
>
> __
> Kamailio - Users Mailing List - Non Commercial Discussions
>   * sr-users@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the 
> sender!
> Edit mailing list options or unsubscribe:
>   * 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 Advanced Training - Online
  March 28-31, 2022 (Europe Timezone)
  * https://www.asipto.com/sw/kamailio-advanced-training-online/


__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] kamctl monitor : statistics not displayed ?

2022-03-17 Thread Daniel-Constantin Mierla
Hello,

be sure the common cli tools are installed: grep, egrep, awk, sed, ...
Also, it may require to use bash.

The alternative, try to use kamcli.

Cheers,
Daniel

On 17.03.22 00:40, Youssef Boujraf wrote:
> Dear,
>  
> Kamailio : 5.5.4
> OS : Debian 11
> kamailio.cfg
> loadmodule "kex.so" is included
>
> Any idea what is missing in the configuration.
>
> Best Regards,
> Youssef
>  
> On Wednesday, March 16, 2022 13:02 CET, "Youssef Boujraf"
>  wrote:
>  
>>  
>
> Dear
>
> I am tying to monitor the kamailio with "kamctl monitor" and I got
> this error.
>
> -e [cycle #: 1; if constant make sure server lives]
> -e Kamailio Runtime Details:
> kamailio 5.5.4 (x86_64/linux)
>     now:  Wed Mar 16 12:44:43 2022
>     up_since: Wed Mar 16 12:39:51 2022
>     uptime: 292
>
> -e Transaction Statistics:
> /usr/sbin/kamctl: 245: column: not found
>
> -e Stateless Server Statistics:
> /usr/sbin/kamctl: 259: column: not found
>
> -e UsrLoc Statistics:
> /usr/sbin/kamctl: 273: column: not found
>
> -e Core Statistics:
> /usr/sbin/kamctl: 287: column: not found
>
> -e Shared Memory Statistics:
> /usr/sbin/kamctl: 301: column: not found
>
> Any idea
>
> Best Regards
>
> --
> *Youssef*
>
> __
> Kamailio - Users Mailing List - Non Commercial Discussions
>   * sr-users@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the 
> sender!
> Edit mailing list options or unsubscribe:
>   * 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 Advanced Training - Online
  March 28-31, 2022 (Europe Timezone)
  * https://www.asipto.com/sw/kamailio-advanced-training-online/
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] kamctl or kamcmd way to enable/disable sections of configs

2022-03-17 Thread Joshua Young
#!define MYSECTION"
route("1");
#!ifdef MYSECTION
route("2");
#!endif

I have declarations like this in my kamailio.cfg file, and was curious if
there was a way to use kamctl or kamcmd to enable or disable the defined
value in a live system. Or if there is another approach/mechanism I'm
unaware of the "Serial Forking Based on Q Value" stuff and use it in other
parts, but I am looking for a general way to manually manipulate routing on
live system using cli commands if possible...

Thanks,
Joshua
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Kamailio in docker container with TLS enabled using Let's Encrypt

2022-03-17 Thread Giovanni Tommasini
Hi guys,

starting from Fred article
https://www.fredposner.com/1836/kamailio-tls-and-letsencrypt/
we move step forward creating this small PoC to deploy Kamailio in docker
container with TLS enabled using Let's Encrypt

https://github.com/evoseed/kamailio-tls-letsencrypt

What do you think?
Any feedback?
Any mistakes to correct or improvements to make?

Thanks a lot
Have a good evening
Giovanni Tommasini

*evoseed s.r.l.*

  phone:  +39 340 11 28 800
 mail:  giovanni.tommas...@evoseed.io
  site:  evoseed.io
address:  Via Lucrezio 13, Trieste Italy
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users