[SR-Users] Problem with URI transformations

2019-11-15 Thread Duarte Rocha
2 : Parameters = user=phone If the URI has parameters, the User parameters won't be included in the User part. Is this a bug or is it working as intended? I'm running Kamailio 5.2.0 . Thank you for your time. Best Regards, Duarte Rocha ___ Kamailio (SER) - U

[SR-Users] How to access different uris in a header

2019-11-21 Thread Duarte Rocha
Greetings, In order to identify Redirecting Number and Original Called Number on a given request i look for the top( Redirecting Number) and bottom (Original Called) Diversion headers using hdr(Diversion)[0] and hdr(Diversion)[-1]. However, i have a client that sends me all the Diversions URIS

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] 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 =

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 ac

Re: [SR-Users] Error parsing parameter value

2019-10-08 Thread Duarte Rocha
> green, the grammar in SIP specs has to be checked... > > Cheers, > Daniel > On 08.10.19 16:09, Duarte Rocha wrote: > > Hi David. > > I want to ble able to print : yellow = "twelve". > In the green example the "" are printed, but on the yellow

Re: [SR-Users] Error parsing parameter value

2019-10-08 Thread Duarte Rocha
he value with double quotes making troubles somewhere? > > Cheers, > Daniel > On 08.10.19 16:38, Duarte Rocha wrote: > > Thank you for your answer. > The green example was just for testing. My real example is similar to > yellow on a header parameter since i have a clien

[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

[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.

[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)");

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

2020-03-02 Thread Duarte Rocha
; Cheers, > 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 > "sip:111

[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

[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] Parsing exception when "user=phone" is present

2020-01-08 Thread Duarte Rocha
gt; {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=phone" is present? Is there

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://www.ets

[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

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't spec

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] 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

[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

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

2020-04-13 Thread Duarte Rocha
l > 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) - Us

[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

[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

Re: [SR-Users] Solution for Invite retransmission

2020-05-14 Thread Duarte Rocha
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 transaction is still up, Kamailio does its

[SR-Users] Result limitation on sqlops

2020-10-07 Thread Duarte Rocha
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

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

2020-10-15 Thread Duarte Rocha
, 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 (kamailio stopping, etc)

[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
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 > other machine in

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

2020-08-19 Thread Duarte Rocha
st 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] 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] 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] Load balance on HA scenario

2020-10-21 Thread Duarte Rocha
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 replicated DB. For > simp

[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)");

[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] 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

[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)

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

2021-01-08 Thread Duarte Rocha
annot 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/sr-users/2020-D

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

2021-01-08 Thread Duarte Rocha
ot 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 Daniel, > >

[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

[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

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 > it use t

[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] 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] 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

[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

[SR-Users] uac_replace_to() without RR params

2023-09-07 Thread Duarte Rocha
e and only using $avp() ? - Is there a way to make changes on the To and From header on replies? Thanks in advance, Best Regards, Duarte Rocha __ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to s

[SR-Users] Re: uac_replace_to() without RR params

2023-09-07 Thread Duarte Rocha
 I made some more testing and found that calling dlg_manage() before uac_replace() and setting restore_dlg param with value “1” solves my issue and doesn’t add params to Record-Route.   In the event of a restart to Kamailio i would like to keep the state of the call and not lose the values on the

[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

[SR-Users] Repository for modules

2023-04-06 Thread Duarte Rocha
Hello, I'm currently testing Kamailio on a Debian 11 machine. In order to install it I used apt with repositories from Kamailio (https://deb.kamailio.org/). Now I'm trying to add modules and I'm wondering the best way to do it. Using apt install i don't have access to all the modules. Is there

[SR-Users] Re: Repository for modules

2023-04-06 Thread Duarte Rocha
issing dependencies, this > needs to be installed from source, right. > > > > Cheers, > > > > Henning > > > > *From:* Duarte Rocha > *Sent:* Donnerstag, 6. April 2023 13:55 > *To:* Kamailio (SER) - Users Mailing List > *Subject:* [SR-Users] Repository

[SR-Users] RTPENGINE - RTP Proxy

2023-07-26 Thread Duarte Rocha
Hello all, I'm currently doing some experiments with RTPENGINE and I need some help configuring it. First scenario i'm under NAT and Kamailio receives an INVITE with a private address, rewrites (c) line on SDP with it's own IP address and relays the message to the destination endpoint. After

[SR-Users] Re: RTPENGINE - RTP Proxy

2023-07-27 Thread Duarte Rocha
Hello Alex, Thank you for your answer, I still don't have sound but the behaviour is now different. Is it possible to configure this behaviour on a call by call basis with flags on the rtpengine_manage() function? Or in alternative having it consume the "direction=" attribute on the SDP? Cheers

[SR-Users] Re: RTPENGINE - RTP Proxy

2023-07-27 Thread Duarte Rocha
Hello Alex, Thank you for your answer, I still don't have sound but the behaviour is now different. Is it possible to configure this behaviour on a call by call basis with flags on the rtpengine_manage() function? Or in alternative having it consume the "direction=" attribute on the SDP? Cheers

[SR-Users] uac_restore behaviour question

2023-06-22 Thread Duarte Rocha
Hello, I have some questions regarding uac_replace methods. When I receive the first INVITE from someone I change To and From using uac_replace_to() and uac_replace_from(). I do this only on first INVITES. In order to restore them I use the "auto" so the changes are restored automatically in

[SR-Users] Re: uac_restore behaviour question

2023-06-22 Thread Duarte Rocha
Hello, Please ignore my last question. I found my answer in the documentation : "If you set restore_mode to AUTO, the URI will be modified automatically in all subsequent requests and replies in that dialog." Duarte Rocha escreveu no dia quinta, 22/06/2023 à(s) 13:17: > Hello, &g

[SR-Users] uac_replace() and uac_restore debug help

2023-06-23 Thread Duarte Rocha
result of the automatic modifying or only the vsf\vst parameters and password are needed to the auto replace\restore? 2 - How can I decrypt the info on vsf and vst parameters in order to verify the info sent and the encryption? Cheers, Duarte Rocha

[SR-Users] Choose RTP port in routing script

2023-09-26 Thread Duarte Rocha via sr-users
l. Thanks in advance, Cheers, Duarte Rocha __ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to sr-users-le...@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to t

[SR-Users] Re: Choose RTP port in routing script

2023-09-26 Thread Duarte Rocha via sr-users
 Thanks for the reply.  I want to be able to get different port ranges for some costumers since some of them can only their firewall to a small destination port range . __ Kamailio - Users Mailing List - Non Commercial Discussions To

[SR-Users] dialog:event unknown and kemi callback error

2024-02-20 Thread Duarte Rocha via sr-users
Hello all, I'm currently developing some kamailio scripts with app_jsdt by migrating a proxy of mine from Kamailio routing script to Js. I've migrated some parts of my request_route and everything seems to be working fine. I am now trying to migrate my event routes to JS and I started with

[SR-Users] RADIUS - Can't use extra attributes

2023-11-23 Thread Duarte Rocha via sr-users
Hello all, I'm currently implementing a Kamailio with RADIUS. I want to send an Access-Request to my RADIUS server and in order to do that i'm using misc_radius module and radius_does_uri_exist() function without any arguments : "if (radius_does_uri_exist()) {" For my module configuration

[SR-Users] Re: RADIUS - Can't use extra attributes

2023-11-24 Thread Duarte Rocha via sr-users
Hello Daniel, Thanks for the reply. The extra dictionary is already included otherwise an error is thrown and Kamailio doesn't start. However, i realized my mistake now and you were right. I was checking for the extra attributes in a tcpdump and on radius server and i didn't had the

[SR-Users] Re: RADIUS - Can't use extra attributes

2023-11-24 Thread Duarte Rocha via sr-users
Hello Daniel, Thanks for the reply. The extra dictionary is already included otherwise an error is thrown and Kamailio doesn't start. However, i realized my mistake now and you were right. I was checking for the extra attributes in a tcpdump and on radius server and i didn't had the

[SR-Users] RADIUS ACC - Interim Updates

2024-03-04 Thread Duarte Rocha via sr-users
? Cheers, Duarte Rocha __ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to sr-users-le...@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit

[SR-Users] Re: RADIUS ACC - Interim Updates

2024-03-06 Thread Duarte Rocha via sr-users
Thanks for the help. I've ended up creating a route invoked by rtimer module where i check all active dialogs and for each of them sent a radius accounting update. Cheers, Duarte __ Kamailio - Users Mailing List - Non Commercial

<    1   2