[sr-dev] [kamailio/kamailio] Base58 not decoding correctly (Issue #3907)

2024-07-05 Thread duarterocha91 via sr-dev
### Description When doing base58 encoding and decoding there is some issue with the decoded string. Here is my code to ilustrate the issue : $var(Test) = "test_string"; $var(Test) = $(var(Test){s.encode.base58}); xerr("Test String encoded =

[sr-dev] [kamailio/kamailio] auto uac_restore_from() : Restore with errors (Issue #3500)

2023-06-30 Thread duarterocha91
### Description Kamailio receives call and changes originating number to anonymous using uac_replace_from() with auto restore and password. Info is stored in vsf parameter of Record-Route Original From Uri is sip:123456789@1.1.1.1:5060 New From Uri is

[sr-dev] Re: [kamailio/kamailio] auto uac_restore_from() : Restore with errors (Issue #3498)

2023-06-29 Thread duarterocha91
Hello, I've updated to 5.7 and the behaviour is the same. In order to rule out problems in the rest of my code i've used the base kamailio.cfg with minimum changes as possible and added this code right before PSTN being called : ``` $var(New_From_uri) = "sip:anonymous@anonymous.invalid"

[sr-dev] [kamailio/kamailio] auto uac_restore_from() : Restore with errors (Issue #3498)

2023-06-28 Thread duarterocha91
### Description Kamailio receives call and changes originating number to anonymous using uac_replace_from() with auto restore and password. Info is stored in vsf parameter of Record-Route Original From Uri is sip:123456789@1.1.1.1:5060 New From Uri is "sip:anonymous@anonymous.invalid" When

Re: [sr-dev] [kamailio/kamailio] filter_body() fails when there isn't a space after "Content-Type:" (#2748)

2021-07-07 Thread duarterocha91
Hello Daniel, Any update on this issue? Cheers -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/2748#issuecomment-875530526___

Re: [sr-dev] [kamailio/kamailio] filter_body() fails when there isn't a space after "Content-Type:" (#2748)

2021-06-15 Thread duarterocha91
Hi Daniel, Thanks for the update. Altough there are no errors in the log now, the filtering is still failing. I'm using this code : `request_route { xerr("Before filter_body"); if (filter_body("application/sdp")) { xerr("Filtered with sucess"); } else { xerr("Filtering

Re: [sr-dev] [kamailio/kamailio] filter_body() fails when there isn't a space after "Content-Type:" (#2748)

2021-06-09 Thread duarterocha91
I've sent it to your e-mail with the subject "filter_body issue #2748". -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [sr-dev] [kamailio/kamailio] filter_body() fails when there isn't a space after "Content-Type:" (#2748)

2021-06-08 Thread duarterocha91
Hi Daniel. Sorry for the delay. I did a fresh install from the master branch. My kamailio -v returns this : > version: kamailio 5.6.0-dev0 (x86_64/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,

Re: [sr-dev] [kamailio/kamailio] filter_body() fails when there isn't a space after "Content-Type:" (#2748)

2021-06-07 Thread duarterocha91
For the previous test i downloaded and installed the master branch. For this one i only downloaded the core and re-installed. Should i do a fresh install? kamailio -v output is the following : version: kamailio 5.6.0-dev0 (x86_64/linux) flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS,

Re: [sr-dev] [kamailio/kamailio] filter_body() fails when there isn't a space after "Content-Type:" (#2748)

2021-06-02 Thread duarterocha91
I've tried with the new code and i get the same errors in the log : 2021-06-02T18:43:29.662320+01:00 dev_sbc_a_vts01 /usr/local/kamailio-5.4/sbin/kamailio[21625]: ERROR:

Re: [sr-dev] [kamailio/kamailio] filter_body() fails when there isn't a space after "Content-Type:" (#2748)

2021-06-02 Thread duarterocha91
Sorry. This is my code for filtering : "request_route { xerr("Before filter_body"); if (filter_body("application/sdp")) { xerr("Filtered with sucess"); } else { xerr("Filtering failed");} " The log is the following : "2021-06-02T16:13:53.396443+01:00 dev_sbc_a_vts01

Re: [sr-dev] [kamailio/kamailio] filter_body() fails when there isn't a space after "Content-Type:" (#2748)

2021-06-01 Thread duarterocha91
Hi Daniel, Sorry for taking too long. I've tried the same scenario with master and with 5.4.1. 5.4.1 has the behaviour described previously. On master i got some parsing errors on the packet when invoking filter_body("application/sdp") on a multipart body. I've attached a picture with the

Re: [sr-dev] [kamailio/kamailio] filter_body() fails when there isn't a space after "Content-Type:" (#2748)

2021-05-31 Thread duarterocha91
Hi Daniel, Thanks for the update. I'm using kamailio 5.4 and i've copied the textops files from the link you provided and replaced the textops files. Made make clean and make all on the textops folder and got these warnings : "[root@dev_sbc_a_vts01 textops]# make CC (gcc) [M textops.so]

[sr-dev] [kamailio/kamailio] filter_body() fails when there isn't a space after "Content-Type:" (#2748)

2021-05-27 Thread duarterocha91
I've made some testing and found that filter_body() fails when body is something like "Content-Type:application\/sdp\r\n\r\n". If i use this correction to add a space the filter works correctly : replace_body_all("Content-Type:application\/sdp\r\n\r\n","Content-Type:

Re: [sr-dev] [kamailio/kamailio] Wrong dispatcher behaviour with two destinations with same URI (#2527)

2020-10-29 Thread duarterocha91
Hello Julien and Daniel, Thank you for your clarifications. I will be using this scenario for setting up an HA configuration with two kamailios in different machines, a replicated DB and two IPs that can jump between machines. I think i'll fix this with a script that will periodically check

[sr-dev] [kamailio/kamailio] Wrong dispatcher behaviour with two destinations with same URI (#2527)

2020-10-22 Thread duarterocha91
I’m doing some testing on Dispatcher in order to prepare it for HA setups with floating IPs on Kamailio version 5.4.1. In this scenario my calls must be sent to SET with the ID 2 : > SET: { ID: 2 TARGETS: { DEST: { URI: sip:GW_IP:5061

[sr-dev] [kamailio/kamailio] Param.valueat not returning special chars (#2200)

2020-01-22 Thread duarterocha91
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)");

[sr-dev] [kamailio/kamailio] Allow more options on dispatcher.set_state (#2085)

2019-10-01 Thread duarterocha91
Greetings, Dispatcher RPC command allows to change the runtime state of a GW using its Group ID and the IP. In my implementation i have 2 Kamailio machines in an HA setup and, as such, i have the GW configured twice with same group_id and different sockets (Different HA adressess - one for

Re: [sr-dev] [kamailio/kamailio] Problem Parsing Route Header (#2079)

2019-09-27 Thread duarterocha91
Greetings, Sorry about the confusion, the Routing works perfectly with multiple addresses in one header. I think i have a better scenario now. So, i have this SBC with 2 IPs (212.13.40.205 and 212.13.40.209) where in INVITES i use uac_replace_from() and uac_replace_to(). Kamailio UAC’s

Re: [sr-dev] [kamailio/kamailio] Problem Parsing Route Header (#2079)

2019-09-27 Thread duarterocha91
Sorry, in the previous email i meant to say that the uac_restore fails, and not the replace. A sexta, 27/09/2019, 12:10, Duarte Rocha escreveu: > Hello Daniel, > > Thank you for your answer. > > In both scenarios there is Route headers. You sure you're looking at the > correct Options? > > The

Re: [sr-dev] [kamailio/kamailio] Problem Parsing Route Header (#2079)

2019-09-27 Thread duarterocha91
Hello Daniel, Thank you for your answer. In both scenarios there is Route headers. You sure you're looking at the correct Options? The OPTIONS request is based on the 200 Ok received by the callee, so it has everything that Kamailio added. The capture is taken on the Kamailio. I also have

[sr-dev] [kamailio/kamailio] Problem Parsing Route Header (#2079)

2019-09-27 Thread duarterocha91
Problem : Route header doesn't seem to be behaving correctly when it contains more than one URI. This issue seems to affect uac_restore mechanics and routing mechanics. In order to test this i've created a test call with a in-dialog "OPTIONS" request. In one scenario, the OPTIONS

Re: [sr-dev] [kamailio/kamailio] Dispatcher probes a maximum of 15 Gateways at a time (#2041)

2019-08-23 Thread duarterocha91
Hello Daniel, Thank you for answering. I have a print for each OPTIONS on local-request so Kamailio seems to be working fine. I tried to disable my firewall and the issue disappeared. I have to look into it and find the real issue. Since it's not a Kamailio problem i will be deleting this

[sr-dev] [kamailio/kamailio] Dispatcher probes a maximum of 15 Gateways at a time (#2041)

2019-08-23 Thread duarterocha91
### Description I have a Kamailio with several Gateways configured. It's Probing is done using Dispatcher module and setting the GW state with value "8". If more than 15 Gw's are set as "8" with a probing frequency of 1min, only 15 GW will be probed each minute. I can't find a configuration

Re: [sr-dev] [kamailio/kamailio] Sipt Redirection Number Retrieves old values (#2030)

2019-08-08 Thread duarterocha91
Hello Daniel. Yes, I removed the static and got some garbage values when there wasn't any info. I tested your commit and it seems to be working correctly. I'll apply to production tomorrow and check with live traffic. Thank you for the help -- You are receiving this because you are

Re: [sr-dev] [kamailio/kamailio] Sipt Redirection Number Retrieves old values (#2030)

2019-08-08 Thread duarterocha91
I see that in the file sipt/sipt.c, function sipt_get_redirection_number we have this array where redirection number will be written : static char sb_s_buf[26]; Is there a reason for this to be static and therefore keep its value between function calls ? I've removed the static and the

[sr-dev] [kamailio/kamailio] Sipt Redirection Number Retrieves old values (#2030)

2019-08-08 Thread duarterocha91
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

[sr-dev] [kamailio/kamailio] $sipt(redirection_number) evaluates the value as a numerical value (#1789)

2019-01-07 Thread duarterocha91
Greetings, I'm sorry if this isn't the right place to post this $sipt(redirection_number) from module sipt evaluates the value of redirection number as a numerical value however, it can contain hexadecimal values. Best Regards -- You are receiving this because you are subscribed to this