[SR-Users] Calculate call duration

2019-12-30 Thread Duarte Rocha
Greetings, How sould a call duration be calculated? Let's say the call creation on Kamailio as a proxy has those steps : 1 - Invite is received 2 - Provisional responses 3 - 200 OK is received 4 - ACK to 200 OK is received 5 - BYE is received 6 - 200 OK to BYE is received Should the duration be

[SR-Users] Parsing exception when "user=phone" is present

2020-01-08 Thread Duarte Rocha
t "user=phone" -> {uri.user} is equal to "+49234598765;npdi;rn=+49-D123" With "user=phone" -> {uri.user} is equal to "+49234598765" . I really need to access "rn" and "npdi" parameters in those cases. How can i do it when "user=ph

Re: [SR-Users] Parsing exception when "user=phone" is present

2020-01-08 Thread Duarte Rocha
Yes, thanks Phone2tel seems to do what i need A quarta, 8/01/2020, 15:52, Duarte Rocha escreveu: > Greetings, > > I'm testing some portability scenarios with carriers and i've ran into > some issues. > > Take this example URI from ETSI TR 184 003 ( > https

[SR-Users] Param.valueat not returning special chars

2020-01-21 Thread Duarte Rocha
Hello, I've run into a problem while using parameters parsing tools from Kamailio. When i request the value of a parameter it discards some characters like "" for example. Here is an example : $var(Parameters) = "kamailio=\"version5\";sip=hey"; xerr("String Parameter = $var(Parameters)"); xerr(

[SR-Users] How to make a distinction between sip and tel uri

2020-01-29 Thread Duarte Rocha
Greetings, I have a client that sends me two P-Asserted-Identity headers, one with SIP URI and one with tel URI. The pseudo variable $ai returns the topmost P-Asserted-Identity header and I only need the one with the SIP URI. How should i proceed ? Is there a way to delete the one with tel URI?

[SR-Users] Strange behaviour on $tu

2020-03-02 Thread Duarte Rocha
Greetings, I have a cenario with the following header To = "sip:111234567890;npdi@111.222.333.444" If i print $tu I got "sip:111234567890". If i print $hdr(To) I get "sip:111234567890;npdi@111.222.333.444". If i don't include the "npdi" or any other user parameters, it works fine Is this the in

Re: [SR-Users] Strange behaviour on $tu

2020-03-02 Thread Duarte Rocha
eers, > Daniel > > > On 02.03.20 14:24, Duarte Rocha wrote: > > Greetings, > > I have a cenario with the following header To = > "sip:111234567890;npdi@111.222.333.444" > > If i print $tu I got "sip:111234567890". If i print $hdr(To) I get > "si

[SR-Users] Invite transaction lifetime

2020-04-01 Thread Duarte Rocha
Greetings, I have a strange call with a client in which he sends me an INVITE and i do the usual "100", "183" and "200 - OK" but the client never gets my provisional or final responses and, as such keeps retransmitting the first INVITE. For the first retransmissions Kamailio doesn't relay the INV

[SR-Users] Lifetime of Invite with no Ack

2020-04-13 Thread Duarte Rocha
Greetings, How much time will Kamailio keep a transaction active if the ACK to a INVITE is never received by Kamailio? Best Regards, ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/

Re: [SR-Users] Lifetime of Invite with no Ack

2020-04-13 Thread Duarte Rocha
Daniel > On 13.04.20 13:04, Duarte Rocha wrote: > > Greetings, > > How much time will Kamailio keep a transaction active if the ACK to a > INVITE is never received by Kamailio? > > Best Regards, > > ___ > Kamailio (SER)

Re: [SR-Users] Lifetime of Invite with no Ack

2020-04-13 Thread Duarte Rocha
> transaction. For the ACK after 300+ reply, there should be some > retransmissons of the reply in the INVITE transaction. > > The dialog module is influenced by the missing ACK after 200ok. > > Cheers, > Daniel > On 13.04.20 13:18, Duarte Rocha wrote: > > Sorry i didn&#

Re: [SR-Users] Lifetime of Invite with no Ack

2020-04-13 Thread Duarte Rocha
ate transaction and has no influence on INVITE > transaction. For the ACK after 300+ reply, there should be some > retransmissons of the reply in the INVITE transaction. > > The dialog module is influenced by the missing ACK after 200ok. > > Cheers, > Daniel > On 13.04.20

[SR-Users] Map Diversion to History-Info

2020-05-05 Thread Duarte Rocha
Greetings, Does Kamailio have any method to transform an History-Info with redirecting info into a Diversion or the other way around? Best Regards ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mai

[SR-Users] Solution for Invite retransmission

2020-05-12 Thread Duarte Rocha
Greetings, I have an issue where a client doesn't get the responses to the INVITE sent and as such keeps sending me retransmissions of the INVITE. While the transaction is still up, Kamailio does its job. However, when the transaction is closed Kamailio processes the request again as a first requ

Re: [SR-Users] Solution for Invite retransmission

2020-05-14 Thread Duarte Rocha
to go to hash tables. Thanks for the help. A terça, 12/05/2020, 17:15, Duarte Rocha escreveu: > Greetings, > > I have an issue where a client doesn't get the responses to the INVITE > sent and as such keeps sending me retransmissions of the INVITE. > > While the transact

[SR-Users] Sql_result_free() not cleaning properly

2020-06-24 Thread Duarte Rocha
Greetings, I'm trying to clean a SQL result using "sql_result_free()" but i'm not having success. Can you please verify if i'm doing anything wrong here? This is my code : xerr("Pre clean [0] = Iterator 0 = $xavp(Cli_PICKER_Default_Search_Result[0]=>Code)"); sql_result_f

[SR-Users] PHONENUM Module on Centos7

2020-07-28 Thread Duarte Rocha
Greetings, I've trying to use the module PHONENUM on my Kamailio on CentOS 7. However, getting the required libphonenumber library hasn't been possible. Is there any CentOs7 repository for this ? What's the best way to work with this module on CentOS ? Best Regards, _

[SR-Users] Force registrations on Kamailio save()

2020-08-19 Thread Duarte Rocha
ation behaviour here? Best Regards, Duarte Rocha ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

[SR-Users] Received parameter on Via

2020-09-28 Thread Duarte Rocha
Greetings, When NAT is detected in my Kamailio, the proxy add the parameter "received" to the Via header which includes the source IP. What is the mechanic or function responsible for this behaviour? Does it come from the NATHELPER module? Best Regards, __

Re: [SR-Users] Received parameter on Via

2020-09-29 Thread Duarte Rocha
Thank you for your answers. I have a old SBC with opensips and it always adds received to Via. However, in my Kamailio it only adds in NAT scenarios. I would like to understand why that happens. A segunda, 28/09/2020, 17:35, Duarte Rocha escreveu: > Greetings, > > When NAT is detec

[SR-Users] Result limitation on sqlops

2020-10-07 Thread Duarte Rocha
ve my source code as close as the original as possible. Best Regards, Duarte Rocha ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

[SR-Users] Load balance on HA scenario

2020-10-12 Thread Duarte Rocha
Greetings, I have two machines with Kamailio in a HA setup with replicated DB. For simplicity let's say each machine has one HA IP and that IP can jump to the other machine in case something happens (kamailio stopping, etc). I'm using Dispatcher with load balance configuration. I have Dispatcher

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

2020-10-13 Thread Duarte Rocha
on list in case the IP jumps to that machine. Cheer A segunda, 12/10/2020, 15:34, Duarte Rocha escreveu: > Greetings, > > I have two machines with Kamailio in a HA setup with replicated DB. For > simplicity let's say each machine has one HA IP and that IP can jump to the > o

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

2020-10-15 Thread Duarte Rocha
possible? A segunda, 12/10/2020, 15:34, Duarte Rocha escreveu: > Greetings, > > I have two machines with Kamailio in a HA setup with replicated DB. For > simplicity let's say each machine has one HA IP and that IP can jump to the > other machine in case something happens

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

2020-10-21 Thread Duarte Rocha
rent sockets it all works correctly. I'm currently on Kamailio v5.4.1. What version are you on? Any special parameter to make that work? Best Regards, A segunda, 12/10/2020, 15:34, Duarte Rocha escreveu: > Greetings, > > I have two machines with Kamailio in a HA setup with replicat

[SR-Users] Fix Sdp Error

2020-12-04 Thread Duarte Rocha
Hello, I noticed that when i do calls behind NAT i'm getting this error when i call fix_nated_sdp() : "nathelper [nathelper.c:1659]: replace_sdp_ip(): can't extract 'a=rtcp' IP from the SDP" As far as i can see, all the ips on SDP are correctly replaced to a public IP, so i don't understand

[SR-Users] Losing MySQL connections

2020-12-14 Thread Duarte Rocha
Greetings all, I'm having some dropped MySQL connections in my Kamailio in times of low or no activity in the proxy. These are the errors i'm getting : db_mysql [km_dbase.c:123]: db_mysql_submit_query(): driver error on query: Lost connection to MySQL server during query (2013) [db_quer

[SR-Users] loose_route() - Local Proxy

2021-01-04 Thread Duarte Rocha
Greetings, I'm using loose_route() from the RR module and i'm having troubles making it use the following exception from the code : "There is only one exception: If the request is out-of-dialog (no to-tag) and there is only one Route: header indicating the local proxy, then the Route: header is re

[SR-Users] Pre-loaded routes verification

2021-01-04 Thread Duarte Rocha
Greetings, I'm doing a migration from a opensips system to kamailio one and i'm trying to replicate its functionalities. The system is a Registrar with a pstn gateway. I noticed that on the opensips version, loose_route() is called on initial requests and it seems to be used to protect against pr

Re: [SR-Users] loose_route() - Local Proxy

2021-01-07 Thread Duarte Rocha
Hi, Thank you for your answers. The domain parameter "register_myself" solved this issue immediately. Cheers Duarte Rocha escreveu no dia segunda, 4/01/2021 à(s) 14:46: > Greetings, > > I'm using loose_route() from the RR module and i'm having troubles making >

[SR-Users] Lost MySQL connections - Error 500

2021-01-07 Thread Duarte Rocha
Hi all, I've made a post last month regarding losing MySQL connections - https://lists.kamailio.org/pipermail/sr-users/2020-December/111389.html At the time I thought connections were dying as a consequence of low activity and traffic on the proxy. Meanwhile, I've migrated a great number of equi

Re: [SR-Users] Lost MySQL connections - Error 500

2021-01-08 Thread Duarte Rocha
e record cannot be > made because it is locked for long time by something else. > > Cheers, > Daniel > On 07.01.21 18:23, Duarte Rocha wrote: > > Hi all, > > I've made a post last month regarding losing MySQL connections - > https://lists.kamailio.org/pipermail/

Re: [SR-Users] Lost MySQL connections - Error 500

2021-01-08 Thread Duarte Rocha
e-only mode with a lot of active users, you can also consider > partitioning users on different tables, so you can have rules like users > with id starting a-m go to location1 and n-z go to location2. > > Cheers, > Daniel > On 08.01.21 18:29, Duarte Rocha wrote: > > Hello D

[SR-Users] Best SIP reply for service activation

2021-02-09 Thread Duarte Rocha
Hello, I'm currently developing a service on Kamailio where it's possible to configure redirections for a subscriber using a code. In order to implement that client should send an INVITE with a specific code on the Request URI and the redirection is configured. What should be the best way to ans

[SR-Users] Parse multiple URI

2021-02-25 Thread Duarte Rocha
Greetings, I have a Kamailio proxy where i'm doing some operations over multiple History-Infos and they come in two forms : Scenario 1 -> History-Info : URI1 History Info : URI2 Scenario 2 -> History-Info : URI1 , URI2. On scenario 1 i iterate between headers usi

[SR-Users] To-Tag on Register Refresh method

2021-04-27 Thread Duarte Rocha
Hello all, I'm using Kamailio as a registrar and i have an endpoint that sometimes sends a REGISTER method with a To-Tag when refreshing its regist. My code on this proxy shares many similarities with the default kamailio.cfg configuration file. On that occasion Kamailio answers with a 404 - Not

[SR-Users] Body formats for filter_body()

2021-05-26 Thread Duarte Rocha
Hello all, A couple years ago the function filter_body() from textops would only work with "application/sdp" if the string on the body was "Content-Type: application/sdp\r\n". It would fail if there wasn't a space after ":" and it would fail if there was present "\r\n\r\n" instead of "\r\n". Is

[SR-Users] Pipelimit needs restart to reload values

2022-09-23 Thread Duarte Rocha
Greetings, I've been using the pipelimit module and the pl_check function to control users rates in my proxy. if (!pl_check("$var(UserID)", "TAILDROP", "$var(UserRate)")) { pl_drop(); exit; } In this case $var(UserID) is the pipe and $var(UserRate) is the maximum rate. The value of t

[SR-Users] Dispatcher's Probing

2018-09-26 Thread Duarte Rocha
Hey, I've been using the Dispatcher module with great results. But now, i want to be able to have some gateways to belong to more than one group set. To achieve that, i'm duplicating the Gateway in the Dispatcher's table and give it a different group set. However, if i do this, Dispatcher will do

[SR-Users] Dispatcher Return

2018-10-19 Thread Duarte Rocha
have access to IP and Port. Is it possible to Dispatcher to return another fields from the same table row? Or return any other way to identify the row. Thank you for your help. Best Regards, Duarte Rocha ___ Kamailio (SER) - Users Mailing List sr-

[SR-Users] Odd behavior comparing strings

2018-10-25 Thread Duarte Rocha
r is $null or 0. I'm using the "cmp_str()" now in order to avoid this issue. Best Regards, Duarte Rocha ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Re: [SR-Users] Odd behavior comparing strings

2018-10-25 Thread Duarte Rocha
With "eq" it works as it should. Thanks :) ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

[SR-Users] Number of sql connections

2018-11-19 Thread Duarte Rocha
connections. Why does this happen and can i set a a number of threads and/or sql connections that doesn't change with the number of "listen" parameters that i have ? Best Regards, Duarte Rocha ___ Kamailio (SER) - Users Mailing List sr-users@lis

[SR-Users] Default memory

2018-12-19 Thread Duarte Rocha
Greetings, How can i ibcrease permanently the Kamailio default private and shared memory size? Thanks in advance, Duarte Rocha ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr

[SR-Users] Memory allocation

2018-12-19 Thread Duarte Rocha
according to the desired number of processes and shared\private memory defined? Best Regards, Duarte Rocha ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

[SR-Users] Dispatcher Probing

2018-12-27 Thread Duarte Rocha
Greetings, I have Kamailio with the Dispatcher module and it's probing mechanics set up. I want to be able to access the OPTIONS request generated by Kamailio in the request_route or somewhere else in the configuration file in order to modify it. Is that possible? Best Regards, Duarte

Re: [SR-Users] Dispatcher Probing

2018-12-27 Thread Duarte Rocha
Thanks for your answers, it seems to be just what i needed. Best regards, Duarte Rocha Na(o) quinta, 27/12/2018, 16:02, Duarte Rocha escreveu: > Greetings, > > I have Kamailio with the Dispatcher module and it's probing mechanics set > up. > > I want to be able to acc

Re: [SR-Users] Dispatcher Probing

2018-12-27 Thread Duarte Rocha
ir and if i got more than one result, do forking using the the SAPs in the results, sending multiple OPTIONS through the multiple sockets. In this case, if only one of the OPTIONS is answered, will the gateway still appear as "Active" ? Best Regards, Duarte Rocha Na(o) quinta, 27/12/

[SR-Users] Dispatcher probing

2018-12-28 Thread Duarte Rocha
ive" ? Best Regards, Duarte Rocha ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

[SR-Users] Best place to change mem settings

2019-01-03 Thread Duarte Rocha
er that, i started Kamailio and i could do the changes in /etc/default without any problem. Does this happen for a reason? Best Regards, Duarte Rocha ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-b

[SR-Users] Sipt redirection number

2019-01-04 Thread Duarte Rocha
Thanks, Best Regards, Duarte Rocha ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

[SR-Users] Dispatcher with a view

2019-01-08 Thread Duarte Rocha
Greetings, Is it possible for Dispatcher to use a view for "table_name" instead of a regular table? Best Regards, Duarte Rocha ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/l

Re: [SR-Users] Dispatcher with a view

2019-01-08 Thread Duarte Rocha
Thank you for your answer. Yes, it works. My problem is I wasn't including the view in the table version. You can delete the thread if you want. Best Regards, Duarte Rocha Na(o) terça, 8/01/2019, 12:43, Daniel-Constantin Mierla escreveu: > Hello, > > should be possible

[SR-Users] Dispatcher Probing

2019-01-17 Thread Duarte Rocha
sends OPTIONS at every 60 seconds it only sends to 16 destinations. Is there a configuration that limits this? What can i do to have every gateway probed? Best Regards, Duarte Rocha ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org

[SR-Users] Limitation in Dispatcher Probing

2019-01-17 Thread Duarte Rocha
sends OPTIONS at every 60 seconds it only sends to 16 destinations. Is there a configuration that limits this? What can i do to have every gateway probed? Best Regards, Duarte Rocha ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org

[SR-Users] Maximum Number of Probed Gateways

2019-01-21 Thread Duarte Rocha
Greetings, Is there a limitation to the number of Gateways probed by Dispatcher? I have several gateways configured to be probed, but the OPTIONS is only sent to the first 16? Is there a configuration regarding this? Thanks in advance, Duarte Rocha

Re: [SR-Users] Maximum Number of Probed Gateways

2019-01-23 Thread Duarte Rocha
Greetings, Thank you for your answer. I have my destinations set as a sip uri with ip "sip:xxx.xxx.xxx.xxx:". Is there a way to increase that limit? Best regards, Duarte Rocha Na(o) quarta, 23/01/2019, 08:09, Daniel-Constantin Mierla escreveu: > Hello, > > for keep

[SR-Users] Keep requests order

2019-02-05 Thread Duarte Rocha
NVITE should go roughly through the same processing methods and should take took the same time to be be relayed. What can be the reason for this? Best Regards, Duarte Rocha ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lis

Re: [SR-Users] Keep requests order

2019-02-05 Thread Duarte Rocha
Thank you for your answer Alex. Wheb you say you have dealt with this, do you mean this exact scenario with re-invites and ACK or just with general packets order? I'll look into your solution, thank you. Best Regards, Duarte Rocha Na(o) terça, 5/02/2019, 12:42, Duarte Rocha esc

[SR-Users] Masking Contact Header

2019-02-12 Thread Duarte Rocha
Greetings, Is there an automated way of masking\encoding\encrypting the Contact header once it goes through a Kamailio proxy and have it restored? I'm using uac_replace_from() and uac_replace_to() for changing these values and having them restored automatically. Is there any tool like this for Co

[SR-Users] Mysql to hastable conversion

2019-02-13 Thread Duarte Rocha
the table should be already in "hashtable form". Does kamailio has any way to solve this or should i use external tools? Best Regards, Duarte Rocha ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

[SR-Users] Rows return in sql_xquery()

2019-02-25 Thread Duarte Rocha
Greetings, If I do a query using sql_query() method I can see the number of rows returned with $dbr(ra=>rows). Is there a return with this info using sql_xquery ? Best Regards, Duarte Rocha ___ Kamailio (SER) - Users Mailing List sr-us

[SR-Users] SQlite in memory

2019-02-27 Thread Duarte Rocha
g Kamailio? What's the best way to do this? Best Regards, Duarte Rocha ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Re: [SR-Users] SQlite in memory

2019-02-27 Thread Duarte Rocha
Greetings Alex, At the moment i'm trying to debug some issues with the server and try some solutions to see the impact. With little load i'm getting some percentage of "503 Server Unavaliable" errors from Kamailio. I made some testing without using database for anything but Dispatcher and Accounti

Re: [SR-Users] SQlite in memory

2019-02-27 Thread Duarte Rocha
Ok, i reduced the number of processes and tried a few different values, but the performance hasn't changed a lot. How can i debug this and find the bottleneck in my system? A quarta, 27/02/2019, 17:56, Duarte Rocha escreveu: > Greetings Alex, > > At the moment i'm trying t

Re: [SR-Users] SQlite in memory

2019-02-27 Thread Duarte Rocha
processing times, i don't think they should be the problem at a rate as low as 20CPS. Thank you for your help :) A quarta, 27/02/2019, 18:35, Duarte Rocha escreveu: > Ok, i reduced the number of processes and tried a few different values, > but the performance hasn't changed a lo

[SR-Users] Add default ports to URIs

2019-03-12 Thread Duarte Rocha
Greetings, When i receive a message in Kamailio i want to add "5060" to the URI's port info when it's value is not specified. I can do it with pseudovariables but i was wondering if there's any config or setting that would do this automatically? Be

Re: [SR-Users] Add default ports to URIs

2019-03-13 Thread Duarte Rocha
Greetings Alex, I know about the RFC and i don't think the issue here is with about the Uri Comparison. The reason here is that a client is requiring this feature even though the RFC doesn't requires it. Best regards A terça, 12/03/2019, 19:15, Duarte Rocha escreveu: > Greeting

[SR-Users] User part on contact header

2019-03-25 Thread Duarte Rocha
Greetings, On an INVITE the user part in the Contact header mandatory? Can't seem to find info on this. Best regards, Duarte Rocha ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/lis

[SR-Users] Extract URI from Headers

2019-03-25 Thread Duarte Rocha
ue by hand in order to remove brackets, display infos, etc. Does Kamailio have a method for extracting the URI from those kinds of headers? Best Regards, Duarte Rocha ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org

Re: [SR-Users] Extract URI from Headers

2019-03-27 Thread Duarte Rocha
reveu: > Hello, > > you just need to use tobody transformations: > > * > https://www.kamailio.org/wiki/cookbooks/5.2.x/transformations#to-body_transformations > > Cheers, > Daniel > On 25.03.19 19:13, Duarte Rocha wrote: > > Greetings, > > In my SB

[SR-Users] Uri's user part parameters

2019-03-27 Thread Duarte Rocha
Greetings, Does Kamailio have a way of identifying the user-part parameters of an URI? I have situations where i have sip:user;parameter=yes@host. Best Regards, Duarte Rocha ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https

[SR-Users] Statistics of received replies

2019-04-04 Thread Duarte Rocha
Greetings, Does Kamailio have statistics like the sl.stats but for received replies instead of locally generated ones? I want to be able to look at how many "491" replies i'm receiving, for example. Best Regards, Duarte Rocha __

[SR-Users] Route header

2019-04-17 Thread Duarte Rocha
Greetings, Is there a difference for Kamailio between these 2 situations. 1 - Method with 2 Route Headers, each one with one address and one uri 2 - Method with 1 Route Header that includes 2 Route URI Best Regards, Duarte Rocha ___ Kamailio (SER

[SR-Users] Direction of replies

2019-04-23 Thread Duarte Rocha
Greetings, Is there a way to know in reply_route if a reply has direction downstream or upstream regarding the first INVITE? I know there are vars and methods for finding this out on requests, but i can't find anything for replies. Thanks in advance, Best Regards, Duarte

[SR-Users] Udp errors on High Availability Setup

2019-05-08 Thread Duarte Rocha
this error not to be logged or be disabled without reducing Log Level to suppress CRITICAL errors? I think this is a standard High Availability configuration. Is there some setting that can disable this kind of errors? Best Regards, Duarte Rocha ___ Kam

Re: [SR-Users] Udp errors on High Availability Setup

2019-05-08 Thread Duarte Rocha
Thank you for your answer. I forgot to mention, the Probing is being done by the dispatcher module and this is a Kamailio that works without registration A quarta, 8/05/2019, 13:04, Duarte Rocha escreveu: > Greetings, > > I have two Machines with Kamailio in a High Availabi

Re: [SR-Users] Udp errors on High Availability Setup

2019-05-08 Thread Duarte Rocha
would be something to suppress the error i think. A quarta, 8/05/2019, 13:04, Duarte Rocha escreveu: > Greetings, > > I have two Machines with Kamailio in a High Availability (HA) > configuration. Both machines are active and processing calls and both have > one HA IP that can jump

[SR-Users] Help identifying mem leaks

2019-05-10 Thread Duarte Rocha
N address=0x7ff3c8d28ca8 frag=0x7ff3c8d28c70 size=184 used=1 qm_status: alloc'd from core: core/counters.c: cnt_hash_add(332) qm_status: start check=f0f0f0f0, end check= c0c0c0c0, abcdefed Any help? Best Regards, Duarte Rocha ___ Kam

[SR-Users] Npdi question

2019-05-14 Thread Duarte Rocha
Greetings, Regarding portability issues, is there a difference between "npdi" and "npdi=yes" ? Are there any more possible values besides "yes" and no value? Best Regards, Duarte Rocha ___ Kamailio (SER)

[SR-Users] Statistics help

2019-05-29 Thread Duarte Rocha
nitoring "500" and "6xx" replies? In my experience, when the server has reached a processing or memory limit, the reply is always 500, but i'm not really sure about this. Thank you for your help. Best Regards, Duarte Rocha ___ Kamai

[SR-Users] Relay NAP Probing

2019-06-07 Thread Duarte Rocha
lt of dispatcher.list and if it finds an inactive NAP, set the MG NAP as inactive too. Is there a better/simpler way to do this? I'd rather have everything on Kamailio configuration files instead of doing exatra scripting. Any opinions ? How can i achieve this? Best Regards, Du

[SR-Users] Dispatcher's probing malfunction

2019-06-17 Thread Duarte Rocha
in a pair with DB being replicated and with HA IPs. That being said i configure one NAP twice, each configuration with one HA socket. Is this configuration supported? I get very weird behaviours when i configure it like this. Best Regards, Duarte

[SR-Users] Statistics for locally generated replies

2019-06-26 Thread Duarte Rocha
Greetings, Does the statistics command "kamcmd tm.stats" has an argument or a way to only list locally generated replies? As far as i know, sl.stats only lists local generated replies. Can tm work the same way? Best Regards, Duarte Rocha __

[SR-Users] Two GWs with the same IP

2019-07-22 Thread Duarte Rocha
Greetings, I'm building some testing procedures for my Kamailio proxy. In order to do that i have a SipTester (Acting as Calling Number) from where i want to originate calls to Kamailio. After Kamailio processes the call, i want it to route it to SipTester again so it can act as Called Number. Th

[SR-Users] Malformed Route Header

2019-07-25 Thread Duarte Rocha
the header Router malformatted and creating this error ? Best Regards, Duarte Rocha ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

[SR-Users] Sipt redirection number retrieves old values

2019-08-07 Thread Duarte Rocha
Greetings, I'm doing VoiceMail detection using $sipt(redirection_number) from SIPT module and i've been having some false positives on the detection. I inspected further and noticed that in some cases $sipt(redirection_number) returns old values from previous messages, which makes me think that i

Re: [SR-Users] Sipt redirection number retrieves old values

2019-08-07 Thread Duarte Rocha
Sure, here it is : xerr("VMD2 : Reply Code : $rs ; Sipt Redir = $sipt(redirection_number) and Call ID = $ci and Cseq = $cs"); A quarta, 7/08/2019, 17:02, Duarte Rocha escreveu: > Greetings, > > I'm doing VoiceMail detection using $sipt(redirection_number) from SIP

[SR-Users] Uac_replace for header's parameters

2019-08-14 Thread Duarte Rocha
e Header's parameters too? Best regards, Duarte Rocha ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

[SR-Users] [tm-local-request] usage

2019-08-26 Thread Duarte Rocha
it was already sent? Best Regards, Duarte Rocha ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Re: [SR-Users] [tm-local-request] usage

2019-08-28 Thread Duarte Rocha
not in my Kamailio configuration and it is sending the correct number of packets. Best regards A terça, 27/08/2019, 08:24, Daniel-Constantin Mierla escreveu: > Hello, > On 26.08.19 18:26, Duarte Rocha wrote: > > Greetings, > > Does "event_route[tm:local-request]&

[SR-Users] Disable GW's on runtime

2019-08-28 Thread Duarte Rocha
Greetings, I have two Kamailio's working on a HA scenario. Both Kamailio's have DB replication and each machine has one HA IP. In order to set this up, i have every GW on the DB duplicated, one with Socket IPA and another with socket IPB. I have both GWs in a active state configurated in the repl

Re: [SR-Users] Disable GW's on runtime

2019-08-28 Thread Duarte Rocha
Yes, i only want to disable it on one Kamailio. A quarta, 28/08/2019, 11:32, Duarte Rocha escreveu: > Greetings, > > I have two Kamailio's working on a HA scenario. Both Kamailio's have DB > replication and each machine has one HA IP. In order to set this up, i hav

Re: [SR-Users] Disable GW's on runtime

2019-08-28 Thread Duarte Rocha
hat doesn't exist in the machine A quarta, 28/08/2019, 11:32, Duarte Rocha escreveu: > Greetings, > > I have two Kamailio's working on a HA scenario. Both Kamailio's have DB > replication and each machine has one HA IP. In order to set this up, i have > every

[SR-Users] Problem restoring To and From (uac_replace)

2019-09-24 Thread Duarte Rocha
cause of this issue? Is there anything i can do to avoid this? Best Regards, Duarte Rocha ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

[SR-Users] Record-Route management

2019-10-03 Thread Duarte Rocha
Greetings, I have multiple IPs in my Kamailio. In some scenarios, the caller and the called connect to different IPs and in others, they use the same IP. Currently i'm running with the RR's module "enable_double_rr" parameter set so i can have one Record-Route for each IP used on the call. Howeve

Re: [SR-Users] Record-Route management

2019-10-03 Thread Duarte Rocha
I was using "enable_double_rr" with value 2. With value 1 it works as i want. Perfect. Is there something similar for the via header? A quinta, 3/10/2019, 16:41, Duarte Rocha escreveu: > Greetings, > > I have multiple IPs in my Kamailio. In some scenarios, the caller and t

[SR-Users] Bad BYE request

2019-10-04 Thread Duarte Rocha
Greetings, This is a repeated problem, but i have more info now. Please help understand if there is a problem on my code or if there is any kind of Kamailio bug. On the first INVITE of every call i apply uac_replace_from() and uac_replace_to() in order to normalize numeration. I have the rest

[SR-Users] Error parsing parameter value

2019-10-08 Thread Duarte Rocha
Greetings, I'm testing some parameters actions and i found a weird behaviour This is my code for the test : $var(Parameter_List) = "blue=twelve;green=twe\"lve\";yellow=\"twelve\""; xerr("Parameter List = $var(Parameter_List)"); xerr("Value of Parameter blue = $(var(Parameter_List){param.

Re: [SR-Users] Error parsing parameter value

2019-10-08 Thread Duarte Rocha
Hi David. I want to ble able to print : yellow = "twelve". In the green example the "" are printed, but on the yellow example it is not. Cheers A terça, 8/10/2019, 12:36, Duarte Rocha escreveu: > Greetings, > > > > I'm testing some parameters actions an

  1   2   >