Re: [SR-Users] How to delete all values for a certain xavp index

2020-05-11 Thread Federico Cabiddu
Hi Sergiu, yes I didn't test, just made the suggestion based on avps' syntax :) Cheers, Federico On Mon, May 11, 2020 at 6:26 PM Sergiu Pojoga wrote: > @Federico > > Just to clarify, noticed a small diff in your suggested expression: > > $(xavp(tm_contacts)[0]) = $null; # results in error in c

Re: [SR-Users] How to delete all values for a certain xavp index

2020-05-11 Thread Sergiu Pojoga
@Federico Just to clarify, noticed a small diff in your suggested expression: $(xavp(tm_contacts)[0]) = $null; # results in error in cfg "Can't get from cache: $(xavp(tm_contacts)[0])" $xavp(tm_contacts[0]) = $null; # no errors, but still unexpected values Thanks. On Mon, May 11, 2020 at 11:41

Re: [SR-Users] How to delete all values for a certain xavp index

2020-05-11 Thread Sergiu Pojoga
Hi Federico, So I thought too, mentioned in my 1st post. But after assigning $null, the xavp contains the following Contact (reference to only the RUIDs): $xavp(tm_contacts[0]) = $null => ulcx-5e88a468-587c-3 $xavp(tm_contacts[1]) = $null => ulcx-5e88a468-587c-3 & ulcx-5e88a468-587c-2 $xavp(

Re: [SR-Users] How to delete all values for a certain xavp index

2020-05-11 Thread Federico Cabiddu
Hi, shouldn't it be $(xavp(tm_contacts)[0]) = $null; ? Cheers, Federico On Sun, May 3, 2020 at 5:57 AM Sergiu Pojoga wrote: > Hi there, > > For some reason I can't figure this seemingly simple Subj, may be someone > can help. > > In my particular case, trying to delete Contact[0] from the xavp

Re: [SR-Users] How to delete all values for a certain xavp index

2020-05-11 Thread Sergiu Pojoga
Hi Daniel, My bad, I'll try to elaborate further. Here's a real example of the xavp structure, printing it in a loop. # Print Contacts List if(defined $xavp(tm_contacts)) { $var(i) = 0; while($xavp(tm_contacts[$var(i)]) != $null) { xlog("L_INFO", "--- Loaded Co

Re: [SR-Users] How to delete all values for a certain xavp index

2020-05-11 Thread Daniel-Constantin Mierla
Hello, I haven't implemented the t_load_contacts() to be familiar with how it stored data internally, because it should be more fields than the address. That's why I asked if you can provide some example with assignments, so one can reproduce the issue and eventually give a solution or fix the cod

Re: [SR-Users] How to delete all values for a certain xavp index

2020-05-11 Thread Sergiu Pojoga
Hi again, After calling t_load_contacts(), all Contacts are stored in $xavp(tm_contacts). Then, some evaluation of Contacts is done and some of them may need to be dropped so that branches aren't created. modparam("tm", "contacts_avp", "tm_contacts"); Question is: how to delete Contact[x] from $x

Re: [SR-Users] How to get cause from reason header?

2020-05-11 Thread Luis Rojas G.
On 5/8/20 4:21 PM, Denys Pozniak wrote: Try this one: $(hdr(Reason){param.value,cause}) Wonderful!! Thanks a lot, Luis пт, 8 мая 2020 г. в 21:57, Luis Rojas G. >: Hello, That is one of the parts I read, but to transform something first I would

Re: [SR-Users] imc module

2020-05-11 Thread nicola defilippo
Hi, now my imc module catch the creation message, every log message seems ok but when i see the database the rooms table is empty. Seems that the room is created and deleted. :( N. On Mon, 11 May 2020 at 14:05, Daniel-Constantin Mierla wrote: > Hello, > > maybe you can give the relevant

[SR-Users] Incorrect Load Calculation by Dispatcher Module in Kamailio

2020-05-11 Thread harneet singh
Hi All, I have run into an issue with the Dispatcher Module in Kamailio, which apparently seems to be running into issues randomly while calculating the dispatcher load. I have submitted an issue wrt the same at https://github.com/kamailio/kamailio/issues/2322 with all the details and potential f

Re: [SR-Users] How S-CSCF route SIP INVITEs as per iFC ?

2020-05-11 Thread Valentin Christoph
Hi, >> because it says in SAR that USER_DATA_ALREADY_EXISTS This means the user data are not updated in S-CSCF. Please de-register first and then register again. This should help to get the new user data (with the added application server) to the S-CSCF instead of the old ones. Routing acc

Re: [SR-Users] imc module

2020-05-11 Thread Daniel-Constantin Mierla
Hello, maybe you can give the relevant parts of config related to imc to understand what you did and see where you are stuck. Otherwise it is hard to help on a brief explanation. You can also start kamailio with debug=3 in kamailio.cfg and watch the log messages for trying to understand what happe

Re: [SR-Users] How to delete all values for a certain xavp index

2020-05-11 Thread Daniel-Constantin Mierla
Hello, I am not sure I get the issue here, maybe you can give some explicite examples with assignments operations to be able to replicate. Just be aware, that when you delete an xavp, the list is shifted and another xavp can come in the same place (same index). Cheers, Daniel On 03.05.20 05:56,

Re: [SR-Users] Video Call for deaf

2020-05-11 Thread Daniel-Constantin Mierla
Hello, there is nothing you have to do in kamailio to have video sessions. Kamailio itself doesn't handle media streams, so if it is audio, video or something else, should be the same kamailio.cfg file. Cheers, Daniel On 04.05.20 06:37, www . deaf - tv . com wrote: > hello, my Server CentOs 7 wi

Re: [SR-Users] No audio when calling from SIP to WEBRTC

2020-05-11 Thread Daniel-Constantin Mierla
Hello, I see this was discussed further on rtpengine issue tracker. Did using a newer version of rtpengine made it work? The typical hint I have is to look at javascript console in the browser, there should be logs printed when some dtls negotiation fails. Cheers, Daniel On 05.05.20 02:21, Chir

Re: [SR-Users] How Kamailio processes SIP ACK on local 4XX reply?

2020-05-11 Thread Daniel-Constantin Mierla
Hello, the problem here is that the ACK has Route headers and looks like the ACK inside dialog. The 407 is for a re-INVITE, so the To-tag is present, it is not generated by sl module to be able to filter it out. It gets to config where the requests are routed using loose_route() like a request pa

Re: [SR-Users] kamdbctl create - failing create kamailio database on secfilter table action column default value

2020-05-11 Thread Daniel-Constantin Mierla
Hello, for the records, this should be fixed in the repos. I noticed that newer versions of mysql server are more restrictive in what can be the type of default values, in the past numbers could be given in between quotes, no longer with some recent versions. Maybe we will have to do a bit of a r

Re: [SR-Users] DMQ Module Crash

2020-05-11 Thread Daniel-Constantin Mierla
Hello, can you open a bug on the github issue tracker, almost forgot about it and with some things that popped up and the lockdown specific tasks, I can't say if I can look at them today or tomorrow and then I may forget again. Having it on tracker is easier to spot it. You can add a link to maili

Re: [SR-Users] Determine correct port in record-route if kamailio is behind NAT

2020-05-11 Thread Daniel-Constantin Mierla
Hello, the nature of tcp protocol makes local ports on connect (as well accepted connection ports) ephemeral. Kamailio has for that reason "connection aliases", so the matching is also done based on advertised attributes, not only on connection source ip/port. The interconnect provider should do i

Re: [SR-Users] Digest authentication w/ Kamailio & Freeswitch

2020-05-11 Thread Daniel-Constantin Mierla
Hello, if you have this topology: [freeswitch] > [kamailio] > [gateway] and the gateway is sending back 407, the I would still use freeswitch to do the authentication, otherwise you need dialog module in kamailio to track cseq changes. FreeSwitch originates the call and then can incr

Re: [SR-Users] 488 Not Acceptable Here when remove codecs with rtcp-fb

2020-05-11 Thread Daniel-Constantin Mierla
Hello, sure, make a pull request for it. To be easy to merge, here are some guidelines for contributions   * https://github.com/kamailio/kamailio/blob/master/.github/CONTRIBUTING.md#contributing-code-or-content Cheers, Daniel On 11.05.20 12:48, Federico Santulli wrote: > I did a patch over the

Re: [SR-Users] 488 Not Acceptable Here when remove codecs with rtcp-fb

2020-05-11 Thread Federico Santulli
I did a patch over the SDPOPS module to do this. If needed I can push it over git. Kind regards. Federico Santulli NHM - S.R.L. Via Raffaello Sanzio, 88 81031 Aversa (CE) Italy > Il giorno 5 mag 2020, alle ore 15:55, José Lopes > ha scritto: > > Hello, > > I am using KSR.sdpops.keep_codec

Re: [SR-Users] 488 Not Acceptable Here when remove codecs with rtcp-fb

2020-05-11 Thread José Lopes
Hello, I am sending in attach a pcap with a call between two webrtc clients, that reproduces this scenario. I am using as example the configuration at https://github.com/havfo/WEBRTC-to-SIP . I apply this change on the kamailio configuration to reproduce this scenario: @@ -350,6 +350,8 @@ request

Re: [SR-Users] Determine correct port in record-route if kamailio is behind NAT

2020-05-11 Thread Michal Popovic
Hello, so it looks like kamailio used random port for opening connections to our partners but did not updates record-route port properly. AWS has symmetric NAT and that works fine. Is there any way how to identify port and rewrite record-route? Thanks. Bye, Michal > On 7 May 2020, at 17:25,

[SR-Users] Digest authentication w/ Kamailio & Freeswitch

2020-05-11 Thread Edward Romanenco
Hi! I've using a SIP setup that includes both Kamailio & Freeswitch, invites are passed from Freeswitch and relayed by Kamailio to various dispatchers, I would like to have Kamailio authenticating when Proxy Authentication is required. As I understood, this can be achieved with the help of a fa

Re: [SR-Users] 488 Not Acceptable Here when remove codecs with rtcp-fb

2020-05-11 Thread José Lopes
Hello, Sorry, I forgot to mention that, between the call of the two webrtc clients, there is a B2BUA that only supports SIP UDP and RTP, so I need to use rtpengine to translate from DTLS/SRTP to RTP. I will try to make a call between the two webrtc clients and only use kamailio without rtpengine t