[SR-Users] Mysql to hastable conversion

2019-02-13 Thread Duarte Rocha
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] 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

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 escreveu

[SR-Users] Keep requests order

2019-02-05 Thread Duarte Rocha
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://lists.kamailio.org

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

[SR-Users] Limitation in Dispatcher Probing

2019-01-17 Thread Duarte Rocha
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 https

[SR-Users] Dispatcher Probing

2019-01-17 Thread Duarte Rocha
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 https

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

[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

[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] Best place to change mem settings

2019-01-03 Thread Duarte Rocha
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-bin/mailman

[SR-Users] Dispatcher probing

2018-12-28 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] Dispatcher Probing

2018-12-27 Thread Duarte Rocha
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/2018, 16:02, Du

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 access t

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

[SR-Users] Memory allocation

2018-12-19 Thread Duarte Rocha
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] 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] 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@lists.ka

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] Odd behavior comparing strings

2018-10-25 Thread Duarte Rocha
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

[SR-Users] Dispatcher Return

2018-10-19 Thread Duarte Rocha
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-users

[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

[SR-Users] Dispatcher Questions

2018-09-25 Thread Duarte Rocha
Greetings, I have some questions about Dispatcher0s modules general behaviours. Can Dispatcher use two tables to read values from? If I can't use two tables, is it possible to read them from a Mysql View? I want to be able to have a Gateway belonging to more than one Gateway Set. By doing so,

[SR-Users] Substitution Regex

2018-09-24 Thread Duarte Rocha
uot;a"); It doesn't seem to work. Any ideas why? 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] Include parameters in replies

2018-09-21 Thread Duarte Rocha
this since i can't really be sure that they won't be erased by any client's CPE or endpoint. Any ideas on this ? Thanks Cheers, Duarte Rocha ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailma

Re: [SR-Users] Record-Route Parameters

2018-09-17 Thread Duarte Rocha
Thanks for all your help. With record_route_preset(string[,string2]) i can place the parameters as i want. The only problem is that using record_route_preset, it doesn't add all the parameters that it usually does, like "vst", vsf" and "r2", only the ftag. However, it might be possible get those

Re: [SR-Users] Record-Route Parameters

2018-09-17 Thread Duarte Rocha
I want to add to Kamailio's. This INVITE arrives at Kamailio with no Record-Route. It leaves Kamailio with two Record-Routes since i'm using one IP for receiving and another for sending. ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org

Re: [SR-Users] Record-Route Parameters

2018-09-17 Thread Duarte Rocha
When Kamailio receives the INVITE, it relays it with two Record-Route like this : Record-Route:sip:IP1;ftag=;vst=xxx;vsf=xxx Record-Route:sip:IP2;ftag=;vst=xxx;vsf=xxx What i want is : Record-Route:sip:IP1;ftag=;vst=xxx;vsf=xxx;NEW_PARAMETER=10

Re: [SR-Users] Record-Route Parameters

2018-09-17 Thread Duarte Rocha
Can you show me where? I've tried add_rr_param() but it still adds every parameter to the two record-routes ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

[SR-Users] Record-Route Parameters

2018-09-14 Thread Duarte Rocha
to the two Record-Route Headers. Is there a way to do what i want without me re-writing the headers directly ? Cheers, Duarte Rocha ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr

[SR-Users] Record Route Parameters

2018-09-14 Thread Duarte Rocha
that those parameters won't be deleted or changed? 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] Encoding mechanism in UAC Module

2018-08-21 Thread Duarte Rocha
Greetings, Is there a way to choose the encoding algorithm that builds the vsf and vst parameters in the Record-Route? What is the default method that Kamailio uses for this ? Thanks in advance, Duarte Rocha ___ Kamailio (SER) - Users Mailing List sr

Re: [SR-Users] Method Destination Variable

2018-08-02 Thread Duarte Rocha
That is perfect. Thanks a lot. 2018-08-01 17:09 GMT+01:00 Duarte Rocha : > Greetings, > > I thought about that but i wasn't sure it would be safe. But, in this > case, the Request-URI domain will be the only place where Kamailio will > look to find out the destination right wi

Re: [SR-Users] Method Destination Variable

2018-08-01 Thread Duarte Rocha
Greetings, I thought about that but i wasn't sure it would be safe. But, in this case, the Request-URI domain will be the only place where Kamailio will look to find out the destination right within the dialog right? I'm going the statelless way, so that might be the correct answer. Thanks for

[SR-Users] Method Destination Variable

2018-08-01 Thread Duarte Rocha
Greetings, I have a Kamailio server set up without Registers. I'm using Dispatcher module for balancing and selecting the destinations. I need to do some changes in the message according to the chosen destination. If it's the first INVITE, after Dispatcher operations, i can do it using $dd or $du

Re: [SR-Users] Textops Regex

2018-06-19 Thread Duarte Rocha
You're right, it is application/sdp and the back slash works as escape character. However, a new problem came. I'm using this, since someone upstream is adding \r\n to a part of the body : replace_body_all("application\/sdp\r\n\r\n", "application/sdp\r\n"); The regex finds the application/sdp

[SR-Users] Textops Regex

2018-06-18 Thread Duarte Rocha
Greetings, What kind of regex does textops module uses? I'm trying to find the string "application\sdp" but i can't the escape character for the "\". Thanks in advance ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org

[SR-Users] SDPC on SDP

2018-06-15 Thread Duarte Rocha
Greetings, Please help me understand the reason and source of this behaviour on Kamailio. I receive a 200OK to a RE-INVITE that has : Session Name (s) : MySession Connection Information (c) : IN IP4 xxx.xxx.xxx.xxx Then, Kamailio routes the 200OK to it's destination, and it leaves Kamailio

[SR-Users] Compact Headers

2018-05-25 Thread Duarte Rocha
Greetings, Is there any method on Kamailio that automatically rewrites the headers in its compact form ? I know how i can do it by re-writing each of the eligible headers, but i was wondering if there is any way to do it automatically. Thanks ___

[SR-Users] Core Value : myself

2018-05-23 Thread Duarte Rocha
Greetings, I'm doing some work with the AUTH routes and modules, and sometimes i get a "403 Not relaying" answer when the INVITE has a parameter in the R-URI. That parameter was not included in the REGISTER. I think it's this part of the code that throws this reply : # if caller is not local

[SR-Users] Copy $xavp

2018-05-08 Thread Duarte Rocha
Greetings, I'm getting a query result in a $xavp. I'm trying to copy the entire structure to a new $xavp like this : $xavp(Valid_Acd_Results) = $xavp(ACD_Query_Result[$var(iterator)]); However, i can't retrieve the value with : xnotice(" Mode = $xavp(Valid_Acd_Results=>TBK_AcdMode)"); since it

[SR-Users] Auto 100 Reply

2018-05-02 Thread Duarte Rocha
Greetings, I have set the auto_inv_100() parameter from the TM module so i can get automatic "100" replies to the INVITE. However, in some cases i want to reply to the INVITE with provisional responses (181 for example) and i would like that "100" could be sent before the "181". In order to

[SR-Users] Diversion Headers

2018-04-19 Thread Duarte Rocha
Greetings, Does the function "add_diversion() present in the "Diversion" module allows me to introduce other parameters (privacy, counter, etc) or is it only for the "diversion-reason"? If it doesn't let me do that, how can I add the Diversion with insert_hf() and make sure the headers are added

Re: [SR-Users] Reply Destination

2018-04-11 Thread Duarte Rocha
It works. Thanks a lot!! ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

[SR-Users] Reply Destination

2018-04-11 Thread Duarte Rocha
Hey Is there any variable that retrieves me the destination of a reply? I've used the To header for the domain, but i can't seem to get the destination port. Any help ? Thanks ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org

[SR-Users] Dialog Profile Value Name Limit

2018-04-06 Thread Duarte Rocha
Greetings, I'm using the Dialog module and the profile functions in order to limit the number of channels that a Calling Number can use. I'm using profile with values and the number in E164. However it doesn't work correctly and the value are not correctly updated. I've tried to give a a value

[SR-Users] Regular Expression Syntax

2018-03-27 Thread Duarte Rocha
Greetings, I'm having some trouble with the syntax used in the {re.subst,expression} method. What i want to do is add a prefix to a capture group. I can make it work like that /^[0-9]+/prefix$tU/ but this solution is far from perfect since i may not need the entire $tU. I would like to use it

[SR-Users] NATDETECT Flag 16

2018-03-20 Thread Duarte Rocha
Greetings, I have a doubt about the flag 16 used in nat_uac_test() belonging to the module NATDETECT. In the documentation, the following is stated : *16* - Test if the source port is different from the port in the “Via” header I have some situations that I receive a request from port 5060 and

[SR-Users] UAC Restore Mode

2018-03-15 Thread Duarte Rocha
n event of a failure and i switch to a kamailio in a different machine i will be able to do the To\From restore. Thanks in advance, Duarte Rocha ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

[SR-Users] Choosing a Testing and Validation Tool

2018-03-06 Thread Duarte Rocha
Hey I need to create several testing and validation processes for the deploy of an SBC and i would like to know your opinion on the best tools to use. I need to create an automated group of testing scenarios and validation of the packets sanity and SIP compliance. I also would like to validate

[SR-Users] Create ISUP Body

2018-02-20 Thread Duarte Rocha
Hey Everyone I'm setting up a load testing scenario for my Kamailio. In order to do that i've created another Kamailio to answer "200 OK" to an Invite in order to simulate a call being answered. One of the scenarios I need to test is reading values from the ISUP IAM or ACM body. Here's the

[SR-Users] Kamailio Memory Settings

2018-02-12 Thread Duarte Rocha
CPS, 6k active calls, with Dispatcher, Database, Number Normalizations and other operations. What are good settings for CPU, RAM Memory, PKG_SIZE and SHM_SIZE? Thanks for the help, Best Regards, Duarte Rocha ___ Kamailio (SER) - Users M

[SR-Users] Contact Header need update?

2018-02-02 Thread Duarte Rocha
i can get calls to work with keeping the Contact intact and changing it to the new number. What is the most correct approach? Cheers, Duarte Rocha ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-b

[SR-Users] Session Timers

2018-01-30 Thread Duarte Rocha
Hey guys, I have two issues about Session Timers that need some clarification. 1) I have my Kamailio between my clients CPE's and my GW to the PSTN. I want to configure it in a way that i always try to make the CPE do the refreshing so I can save resources on my kamailio and in the GW. If the

Re: [SR-Users] Modify Reply Created

2018-01-25 Thread Duarte Rocha
Thanks for the reply, that works :) What about if I want to delete or overwrite an header ? I need to change to To Header. If i use append_reply() will it overwrite ? Cheers ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org

[SR-Users] Modify Reply Created

2018-01-24 Thread Duarte Rocha
Hey everyone. Right now i'm doing a redirect server and i'm trying to sinalize the redirection using a 3xx reply. In order to do that, according the RFC I need to add a Contact and Diversion header. How do i do that ? i'm creating the reply with send_reply() but i can't seem to find a way to add

[SR-Users] Dialog KeepAlive

2018-01-18 Thread Duarte Rocha
Hey! I'm trying to use the KeepAlive options avaliable in the Dialog modules. For that I use the function dlg_set_property() like this : dlg_set_property("timeout-noreset"); dlg_set_property("ka-dst"); dlg_set_property("ka-src"); However, kamailio can't seem to get the answers from "ka-src".

Re: [SR-Users] Bind IP to Kamailio without restart

2018-01-02 Thread Duarte Rocha
Greetings Alex, That's exactly what I need, thanks a lot. Cheers ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

[SR-Users] Bind IP to Kamailio without restart

2017-12-29 Thread Duarte Rocha
Greetings, I want to add a new IP to eht0 in my proxy and i want Kamailio to be able to listen to it without me having to restart it. I already have the "listen" parameter set to listen=udp:eth0:5060. Is there any way to reload this parameter it in runtime in order to include the new ip? Is there

[SR-Users] How to change R-URI Username

2017-12-14 Thread Duarte Rocha
Hey everyone. I'm doing some Calling Number and Called Number normalization at the beggining and end of the Kamailio. At the end, i'm doing it in the Dispatch Route. In order to change the numbers, i use uac_replace_to() and uac_replace_from(). However, i don't have a function like this for the

[SR-Users] Change Calling Number

2017-12-11 Thread Duarte Rocha
Hey I'm trying to do some normalization on my Calling Number after Kamailio chooses the Gateway in which it will deliver the request. So, i'm trying to do the operation in the DISPATCH route. However, in this route, msg_apply_changes() doesn't work and returns (-1). I've tried to do this on a

[SR-Users] Kamailio Multi IP

2017-12-05 Thread Duarte Rocha
Greetings, I have a Kamailio that is hosted on multiple IP's. Each client connects to an IP and there is another IP that communicates with the PSTN. The problem is that I don't want any client "seeing" any IP besides his. If the client (connected to kamailio's IP 1.1.1.1) receives an request

[SR-Users] How to use $var as arguments to module functions

2017-11-14 Thread Duarte Rocha
Greetings, Is there a way to use the NATHELPER functions with a variable insted of a string with the value ? For example, I can do "fix_nated_sdp("11");" but Kamailio throws an error if i use "fix_nated_sdp("$(var(nat_fix)");" or any other variations. How should i proceed to be able to do this

[SR-Users] PV Setting Question

2017-05-17 Thread Duarte Rocha
d res->rs.len and both values are fine. I just can't access them in the configuration file. Thanks in advance for your help! Cheers, Duarte Rocha ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mai

<    1   2