[SR-Users] Can't add permanent location

2018-10-31 Thread David Villasmil
Hello all, I'm trying to add a permanent location. i’m using db_mode 1, use_domain = 1, i tried that command kamctl rpc ul.add location 361119...@m.domain.com sip:361119997@4.3.2.1 3600 0 sip:4.3.2.1:5060 Response is: { "jsonrpc": "2.0", "error": { "code": -32000, "message": "Execution

Re: [SR-Users] Store TLS handshake date from Kamailio to an external DB

2018-10-31 Thread Toffi Bossol
Hello Joel, manythanks for your reply. Background info: Iam trying to implement Kamailio as stateless as possible and wonder how I cancache and reuse the information from a TLS connection within a database.   And does cachingmake sense? Best regards, Toffi Am Mittwoch, 31.

Re: [SR-Users] Determine destination address family

2018-10-31 Thread Alex Balashov
On Wed, Oct 31, 2018 at 10:16:40AM -0700, Isaac wrote: > How can I determine the address family (IPv6 or IPv4) of a destination? The > destination in this case is a hostname. I'd like to set a flag if the > destination is IPv6 but not sure how to go about it. Hi, You can look up the underlying

Re: [SR-Users] Can't add permanent location

2018-10-31 Thread David Villasmil
Hey thanks!! not working, but i'm finally getting some useful erros: Oct 31 13:22:52 sip2 /usr/sbin/kamailio[1326]: DEBUG: jsonrpcs [jsonrpcs_fifo.c:449]: jsonrpc_fifo_server(): preparing to execute fifo jsonrpc [{"jsonrpc": "2.0", "method": "ul.add", "params": ["location", "

[SR-Users] Crash ims_diameter_server

2018-10-31 Thread Iman Mohammadi
When the below format is sent from rest , kamailio crashes List[{ List[{ List[{ ]} ]} ]} (Json with 3 nested lists), With 2 lists it works properly, When diameter is translated to json with 3 lists by this module it also works properly, Json format is

Re: [SR-Users] Can't add permanent location

2018-10-31 Thread David Villasmil
doesn't say which param, upping the debug! Regards, David Villasmil email: david.villasmil.w...@gmail.com phone: +34669448337 ᐧ On Wed, Oct 31, 2018 at 6:24 PM David Villasmil < david.villasmil.w...@gmail.com> wrote: > Hey thanks!! > > not working, but i'm finally getting some useful erros: >

Re: [SR-Users] Can't add permanent location

2018-10-31 Thread Joel Serrano
In my test it added it correctly. I tried with master. On Wed, Oct 31, 2018 at 10:28 AM David Villasmil < david.villasmil.w...@gmail.com> wrote: > doesn't say which param, upping the debug! > > Regards, > > David Villasmil > email: david.villasmil.w...@gmail.com > phone: +34669448337 > > ᐧ > >

[SR-Users] Determine destination address family

2018-10-31 Thread Isaac
Hello, How can I determine the address family (IPv6 or IPv4) of a destination? The destination in this case is a hostname. I'd like to set a flag if the destination is IPv6 but not sure how to go about it. Thanks, Isaac ___ Kamailio (SER) - Users

Re: [SR-Users] Determine destination address family

2018-10-31 Thread Isaac
That's exactly what I need. Thanks! On 10/31/2018 10:15 AM, Alex Balashov wrote: On Wed, Oct 31, 2018 at 10:16:40AM -0700, Isaac wrote: How can I determine the address family (IPv6 or IPv4) of a destination? The destination in this case is a hostname. I'd like to set a flag if the

Re: [SR-Users] Can't add permanent location

2018-10-31 Thread Joel Serrano
Hi David, Sorry for the delay.. You are missing parameters: root@sbc02:~# kamctl rpc ul.add location 361119...@m.domain.com sip:361119997@4.3.2.1 3600 1 sip:4.3.2.1:5060 { "jsonrpc": "2.0", "error": { "code": 500, "message": "Not enough parameters or wrong format" }, "id":

Re: [SR-Users] Crash ims_diameter_server

2018-10-31 Thread Mojtaba
Hi. There are some reason for this issue. The three nested json is not reason for crash ims_diameter. Let try this senario. Chenge type of the last indoor level of json from List to other type(like int or ...). Then check the lamailio is crashed or not? With Regards.Mojtaba On Wed, 31 Oct 2018

Re: [SR-Users] Crash ims_diameter_server

2018-10-31 Thread Iman Mohammadi
Hi I tried it before,it must be list for our purpose,int or string doesnt meet our purpose thanks On Thu, Nov 1, 2018 at 9:00 AM Mojtaba wrote: > Hi. > There are some reason for this issue. > The three nested json is not reason for crash ims_diameter. > Let try this senario. > Chenge type of

Re: [SR-Users] help with regex extracting from $rb

2018-10-31 Thread Henning Westerholt
Am Mittwoch, 31. Oktober 2018, 02:05:09 CET schrieb Sergiu Pojoga: > May be for a start someone can clarify the general rules of engagement in > this battle with regex transformations. > https://www.kamailio.org/wiki/cookbooks/5.1.x/transformations#resubst_expres > sion > > What kind of regex