Re: [SR-Users] how to get a value from SIP INVITE Header

2020-10-13 Thread Santanu B
I have tried to configure SIP through SIREMIS. Could you please share some documents for this. I want y SIP endpoint to join in the Jitsi Conference room. Please guide me. Thanks and regards, Santanu On Tue, Oct 13, 2020 at 5:31 PM Henning Westerholt wrote: > Hello, > > > > have a look to the

Re: [SR-Users] Regd : SIP Configuration in Kamailio

2020-10-13 Thread Santanu B
Dear David, In /var/log folder I am unable to see any kamailio log. Only syslog file is available. Please help me to find the Kamailio log. Also please guide me to find out the trace also as I am very new to SIP Server. Thanks a lot. Regards, Santanu On Tue, Oct 13, 2020 at 4:05 PM David

Re: [SR-Users] '302 Moved temporarily' contact parsing error

2020-10-13 Thread Sergiu Pojoga
Hmm, it's a tricky one, not sure actually. https://tools.ietf.org/html/rfc3261#page-167 The answer might be in: Even if the "display-name" is empty, the "name-addr" form MUST be used if the "addr-spec" contains a comma, semicolon, or question mark. On Tue, Oct 13, 2020 at 3:39 PM Sergiu

Re: [SR-Users] '302 Moved temporarily' contact parsing error

2020-10-13 Thread Sergiu Pojoga
Aren't the Contact params supposed to be delimited by semicolon? On Tue, Oct 13, 2020 at 1:06 PM David VILLAUME wrote: > Hello, > > > > I see parsing errors on 302 contact header that seems compliant to RFC : > > > > Contact:;q=0.5,;q=0.25 > > > > [core/parser/parse_addr_spec.c:479]:

Re: [SR-Users] how to get a value from SIP INVITE Header

2020-10-13 Thread sai sudheer
Hi.Thanks for your response. I went through the uri transformation page, tried it but no luck. Is there any other method to slice the string from +34xx...@sub.domain.com to +34?? Regards Sent from Yahoo Mail on Android On Tue, Oct 13, 2020 at 17:30, Henning Westerholt wrote:

[SR-Users] '302 Moved temporarily' contact parsing error

2020-10-13 Thread David VILLAUME
Hello, I see parsing errors on 302 contact header that seems compliant to RFC : Contact:;q=0.5,;q=0.25 [core/parser/parse_addr_spec.c:479]: parse_to_param(): invalid character ',' in status 27: [;q=0.5] Is there an error in my contact or is it truly a parsing error ? Regards, David

Re: [SR-Users] routing calls based on prefix

2020-10-13 Thread Andy Kama
great thanks fred On Tue, Oct 13, 2020 at 4:53 PM Fred Posner wrote: > On Tue, 2020-10-13 at 16:40 +0100, Andy Kama wrote: > > Hi All, > > > > What is the best way to approach this? > > > > example if a call comes into kamailio with a specific number it > > example to:123456789 it must go to

Re: [SR-Users] routing calls based on prefix

2020-10-13 Thread Fred Posner
On Tue, 2020-10-13 at 16:40 +0100, Andy Kama wrote: > Hi All, > > What is the best way to approach this? > > example if a call comes into kamailio with a specific number it > example to:123456789 it must go to the dispatcher module > but if a call comes with any other number it must route to a

Re: [SR-Users] about $sht(htable=>key) htable name

2020-10-13 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > In the code is possible to lookup the hash table at runtime, being also > done by some of the htable cfg functions. It will require some new code > to evaluate the name expression every time at at runtime, then parse and > lookup the hash table structure... A

[SR-Users] routing calls based on prefix

2020-10-13 Thread Andy Kama
Hi All, What is the best way to approach this? example if a call comes into kamailio with a specific number it example to:123456789 it must go to the dispatcher module but if a call comes with any other number it must route to a uac or can you use uac with dispatcher? basically i want to route

[SR-Users] how to get a value from SIP INVITE Header

2020-10-13 Thread sai sudheer
Hii Please help me to get the a value from SIP INVITE header reached to kamailio like INVITE sip:+341930203...@sub.domain.com;myid=+3...@sub.domain.com SIP/2.0 and i want to save the myid value +34 into a variable, without the domain name.      $var(uri) = $sel(ruri);      

Re: [SR-Users] Caseless regex

2020-10-13 Thread Marat Gareev
Daniel, "(?i)^test$" is just an example, actually regex is a little more complicated. In this case, libpcre3 is a good way to use PCRE expressions. Thanks! вт, 13 окт. 2020 г. в 16:48, Daniel-Constantin Mierla : > Hello, > > libpcre3 is known to be very fast, not sure you will notice any >

Re: [SR-Users] Caseless regex

2020-10-13 Thread Daniel-Constantin Mierla
Hello, libpcre3 is known to be very fast, not sure you will notice any performance impact because of runtime regular expression parsing, everything being done in memory and for sure not with simple expressions like "(?i)^test$". This happens because the parameters can have variables, which are

Re: [SR-Users] Caseless regex

2020-10-13 Thread Marat Gareev
Henning, Daniel, thanks for your replies. 1. I don't want to use a Regex module because it might have a performance impact. > Matches the given string parameter against the regular expression > pcre_regex, which is compiled in runtime into a PCRE object. > 2. I was surprised to find that the

Re: [SR-Users] how to get a value from SIP INVITE Header

2020-10-13 Thread Henning Westerholt
Hello, have a look to the transformations for URIs: https://www.kamailio.org/wiki/cookbooks/devel/transformations#uri_transformations There is one to get parameters as well. $shm variables are shared in shared memory, so you can share them in other calls. The $avp/$xavp are shared between

Re: [SR-Users] about $sht(htable=>key) htable name

2020-10-13 Thread Daniel-Constantin Mierla
Hello, having static name for htable there helped to do the lookup of hash table structure at startup and keep pointer to it for faster access as well as parse the part after => to break it in variables and static strings. Having it a dynamic value didn't seem useful at the time of implementation

[SR-Users] about $sht(htable=>key) htable name

2020-10-13 Thread Juha Heinanen
Is there some good reason why htable in $sht(htable=>key) cannot be a dynamic string containing pseudo variables? -- Juha ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Re: [SR-Users] Caseless regex

2020-10-13 Thread Daniel-Constantin Mierla
Hello, adding some more details to mention that regex operations done by the core (the =~ operator) use the libc posix regex functions, which do not support extended syntax. Also, these operations done by core use the case insensitive flag. As mentioned by Henning, regex should be an

Re: [SR-Users] Caseless regex

2020-10-13 Thread Henning Westerholt
Hello, just an idea, have you already tried this module: https://www.kamailio.org/docs/modules/stable/modules/regex.html Cheers, Henning -- Henning Westerholt – https://skalatan.de/blog/ Kamailio services – https://gilawa.com From: sr-users On Behalf Of Marat Gareev

Re: [SR-Users] Load balance on HA scenario

2020-10-13 Thread Sergey Safarov
So issue with the source IP used for dispatcher probing? If Kamailio sends OPTIONS from own IP (not shared VIP), then all will be good? On Tue, Oct 13, 2020 at 1:17 PM Duarte Rocha wrote: > Hey. > > I'm already using ip_free_bind, but that is not my problem. > I cannot use probing on those

Re: [SR-Users] Regd : SIP Configuration in Kamailio

2020-10-13 Thread David Villasmil
Hello, You will need to provide more information. What happens? What errors do you see in kamailio’s log? A trace would also be nice. On Tue, 13 Oct 2020 at 06:24, Santanu B wrote: > Hi, > We are using Jitsi Meet for Video Conference Service. We want our SIP > endpoint to join in the

Re: [SR-Users] Load balance on HA scenario

2020-10-13 Thread Duarte Rocha
Hey. I'm already using ip_free_bind, but that is not my problem. I cannot use probing on those peers and I need to know if Dispatcher can be able to not include those peers in the destination list since their socket doesn't belong to the machine and include the peers in the destination list in

[SR-Users] how to get a value from SIP INVITE Header

2020-10-13 Thread sai sudheer
Hii Please help me to get the a value from SIP INVITE header reached to kamailio like INVITE sip:+341930203...@sub.domain.com;myid=+3...@sub.domain.com SIP/2.0 and i want to save the myid value +34 into a variable, without the domain name.      $var(uri) = $sel(ruri);      

[SR-Users] Caseless regex

2020-10-13 Thread Marat Gareev
Hello, Is it possible write more readable regular expression if ($tU =~ "(?i)^test$") { ... } instead of "^[tT][eE][sS][tT]$"? On the first option, I get the error: 0(47250) ERROR: [core/rvalue.c:3038]: fix_match_rve(): Bad regular expression Regards, Marat

Re: [SR-Users] Local cache registration

2020-10-13 Thread David VILLAUME
Thanks you so much for these helpful guidelines. Regards, David From: Daniel-Constantin Mierla Sent: Monday, October 12, 2020 4:56 PM To: David VILLAUME ; Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Local cache registration Hello, somehow I haven't approached

[SR-Users] TOPOS module and fix_nated_contact

2020-10-13 Thread Minh Phan
Hi List, I am using Topos module to hide network topology. I am having a problem of routing the ACK request for REINVITE. Here is the schema: A KAMAILIO B 1. - INVITE > 2. < 180 RINGING --- 3. < 200 OK---