[SR-Users] Re: Crash of Kamailio when using module http_async_client - function http_async_query, if module "tm.so" is not loaded (Kamailio 5.7.3)

2024-01-10 Thread Federico Cabiddu via sr-users
Hi Nicolas, you are right, even if the dependency is reported in the doc, kamailio shouldn't crash during the execution. I've created this PR to fix the issue: https://github.com/kamailio/kamailio/pull/3706. Thanks for reporting :) Cheers, Federico On Tue, Jan 9, 2024 at 6:52 PM Chaigneau,

[SR-Users] Re: tsilo dependency on usrloc

2023-12-01 Thread Federico Cabiddu via sr-users
Hi Alex, sorry for the late reply. I had to revisit the tsilo code, long time without looking at it :) When I designed the module I had in mind what I considered a "natural" scenario for the push notifications: the entity acting as a registrar being the one responsible for a call forking. Of

[SR-Users] Re: Performing async_http calls on stateless Loadbalancers

2023-05-09 Thread Federico Cabiddu
Hi Julius, it should be possible to use http_async in a stateless scenario setting $http_req(suspend) to 0 https://www.kamailio.org/docs/modules/5.6.x/modules/http_async_client.html#idm235 . Have you tried this? Cheers, Federico On Tue, Jan 10, 2023 at 7:25 PM Julius Flohr wrote: > Hi

[SR-Users] Re: ACK on RE-Invite is send to UAC NATed Internal port instead of public port

2023-02-15 Thread Federico Cabiddu
Hi, your Kamailio version is very old (4.3) and unsupported, so my first advice would be to upgrade to a recent version (5.6.3 is the latest stable). Anyhow, your problem is not the kamailio version you are using but the fact that the Contact header URI of the re-INVITE 200 OK only contains the

[SR-Users] Re: RTC/Kamailio dinner at Fosdem 2023

2023-01-10 Thread Federico Cabiddu
Hi Daniel, Philippe and I will be there with pleasure. Cheers, Federico On Mon, Jan 9, 2023 at 5:39 PM Daniel-Constantin Mierla wrote: > Hello, > > Fosdem 2023 returns to Brussels, Belgium, for a physical event and I'm > writing to see if there are many people from the community going to the

[SR-Users] Re: Proxy edge

2022-12-26 Thread Federico Cabiddu
Hi, the Contact in a WS request/message has always an invalid URI, so your edge proxy cannot resolve it (hence the 487 error). As suggested you should add, in the edge proxy, an alias to the contact in REGISTER and SUBSCRIBE requests using nathelper module add_contact_alias function (

Re: [SR-Users] tsilo usage more generally

2022-10-13 Thread Federico Cabiddu
Hi Alex, On Thu, Oct 13, 2022 at 3:48 PM Alex Balashov wrote: > Since on the topic of tsilo: > > 1. I watched Federico’s presentation on it from 2015, and his examples > insinuate that it is necessary to store the index and label of a suspended > transaction in some external vehicle, e.g.

Re: [SR-Users] tsilo logging

2022-10-13 Thread Federico Cabiddu
bounds. :-) > > > On Oct 13, 2022, at 8:10 AM, Federico Cabiddu < > federico.cabi...@gmail.com> wrote: > > > > Hi Alex, > > you're right, that's not a pleasant experience. > > Beside your proposal of having a module function to count the > transactions (which could be

Re: [SR-Users] tsilo logging

2022-10-13 Thread Federico Cabiddu
Hi Alex, you're right, that's not a pleasant experience. Beside your proposal of having a module function to count the transactions (which could be useful), we could set the ts_append log to DEBUG and make the function return a specific return code for this case so that it can be intercepted in

Re: [SR-Users] remove_hf() does not remove the complete line

2022-08-11 Thread Federico Cabiddu
Hi Bernd, as I said I am using it to remove Via headers inserted by previous hops since years with no issue. Cheers, Federico On Thu, Aug 11, 2022 at 1:10 PM Bernd Krueger-Knauber wrote: > Hi, > > if I remove only 1 of 2 it is not against the standard, because one Via > header line is still

Re: [SR-Users] remove_hf() does not remove the complete line

2022-08-11 Thread Federico Cabiddu
Hi Bernd, I am using remove_hf{"Via") without any issue to remove Via headers added from previous hops. As explained by Henning you cannot remove the Via that kamailio has to insert as a proxy, also because, by rfc, the Via is used to relay back the replies. If Kamailio would not insert its own

Re: [SR-Users] t_suspend / t_continue & insert_hf

2022-03-28 Thread Federico Cabiddu
Hi Fuad, without going too far in kamailio's internals, a resume route is equivalent to a failure route and, as such, it operates on a "fake" fresh message. One solution is to use msg_apply_changes() but my general advice is that all headers and sdp mangling (aka rtpengine invocations) should be

Re: [SR-Users] REGISTER with http_async_client ?

2022-02-10 Thread Federico Cabiddu
to DELETE the transaction if in failure_route. > > I moved/refactored some logic to trigger rtpengine inside a branch_route, > but I'm wondering if there is a way after my http query is done to revert > back to the request_route instead of the failure_route. > > Cheers, > > C

Re: [SR-Users] REGISTER with http_async_client ?

2022-02-04 Thread Federico Cabiddu
wrote: > Okay, so I have done that, > > Please find here : > https://zerobin.net/?7743b78716b00c72#Jzmdq+5ZlFfZId+M/hP+52Ih0AMAMNUjeUT1cN7jL7Q= > > My full config (I redacted some parts like IPs and domains), with the > minimal routing blocks to reproduce and the logs. > >

Re: [SR-Users] REGISTER with http_async_client ?

2022-02-03 Thread Federico Cabiddu
I have to admit that even looking at the debug logs I cannot understand what's going on in your case. As said I'm running an authentication scenario very similar to yours, being the challenge the only difference. What I can suggest to further digging is to reduce your configuration as much as

Re: [SR-Users] REGISTER with http_async_client ?

2022-01-31 Thread Federico Cabiddu
in "failure" route instead, I don't know if this > is a consequence or a symptom of the issue. > > I triple checked my mock api, it returns a http 200 and sees the request > made by the http client. > > Cheers > > Le jeu. 27 janv. 2022 à 16:17, Federico Cabiddu < > feder

Re: [SR-Users] REGISTER with http_async_client ?

2022-01-27 Thread Federico Cabiddu
Hi, I'm running a scenario very similar to yours with kamailio 5.5.3 and I have no issue. The only difference with your scenario is that I don't do the challenge with the client, I always reply 403 and release the transaction after. I didn't have the time to replicate your exact scenario but it

Re: [SR-Users] Forcing Outbound Socket

2021-11-10 Thread Federico Cabiddu
Hi, to force kamailio to use, for outbound connections, a specific tcp port (define in a "listen" directive), you have to set the reuse_tcp_port parameter (https://www.kamailio.org/wiki/cookbooks/5.5.x/core#tcp_reuse_port ). Cheers, Federico On Wed, Nov 10, 2021 at 4:36 PM Ross McKillop wrote:

Re: [SR-Users] tcp timeout in kamailio

2021-04-01 Thread Federico Cabiddu
Hi, have you looked at tcpops module ( http://kamailio.org/docs/modules/5.4.x/modules/tcpops.html)? It allows to set several tcp keepalive parameters and to run event routes for specific socket events. Also if you want to remove location records when the corresponding socket is closed have a look

Re: [SR-Users] CANCEL transaction

2021-02-10 Thread Federico Cabiddu
Hi, var(s) are kind of static variables per process. You'd rather use an avp (which is bound to the transaction) to be able to use it in a reply route. Cheers, Federico On Wed, Feb 10, 2021 at 1:55 PM David Villasmil < david.villasmil.w...@gmail.com> wrote: > I eneded up adding topos, hiding

Re: [SR-Users] http_async_client expected result in $http_rr

2021-02-10 Thread Federico Cabiddu
Hi, just tested on latest 5.4 (ubuntu 20.04, curl 7.68.0) and http_rr works as expected, returning the reason phrase. Can you give some more detail and maybe run a test with increased debug level? Regards, Federico On Wed, Feb 10, 2021 at 4:14 AM Anthony Joseph Messina < amess...@messinet.com>

Re: [SR-Users] TSILO - transaction is not suspended

2021-01-07 Thread Federico Cabiddu
Hi, the http async callback implicitly resumes the transaction that it's then processed in the routing script callback route. If there is no action in the callback route you'll get the message about the not released transaction. Depending on your routing logic you have two choices: 1) you don't

Re: [SR-Users] [sr-dev] Merry Christmas and Happy Holidays!

2020-12-25 Thread Federico Cabiddu
Merry Christmas to all this beautiful community. And best wishes for 2021! Federico On Thu, 24 Dec 2020, 19:09 Daniel-Constantin Mierla, wrote: > A year that was very tough for the entire world is getting close to its > end, no doubt that was the most challenging in our life so far for many >

Re: [SR-Users] tsilo: ts_append() cannot find the ts_store() data

2020-11-24 Thread Federico Cabiddu
Hi, being $var basically static variables per process , I wanted to be sure to reset its value before processing it, but it's probably not needed there (the example is old :)). Cheers, Federico On Wed, 25 Nov 2020, 07:39 Anthony Alba, wrote: > On Wed, Nov 25, 2020 at 2:23 PM Federico Cabi

Re: [SR-Users] tsilo: ts_append() cannot find the ts_store() data

2020-11-24 Thread Federico Cabiddu
Hi, which kamailio version are you using? Which value the "use_domain" ( http://www.kamailio.org/docs/modules/devel/modules/tsilo.html#tsilo.p.use_domain) parameter has? Could you please do a test at debug level 3? Thanks. Federico On Wed, Nov 25, 2020 at 2:19 AM Anthony Alba wrote: > Hi,

Re: [SR-Users] ACK Relay Issue Transaction Not Found

2020-11-24 Thread Federico Cabiddu
The outgoing (relayed) e2e ACK is not captured by the sipcapture module in "transaction" capture mode (the default), because of tm module internals. You have to explicitly capture it in the onsend_route. onsend_route { if ($rm == 'ACK') { sip_trace(); } } Cheers, Federico On

Re: [SR-Users] tsilo - failure to add branches (-1)

2020-11-05 Thread Federico Cabiddu
needed to update Registrar settings too: > > modparam("registrar", "append_branches", 0) -- this was messing with my > config too. I needed to disable it to make it work. > > Thank you again > > Jurijs > > > On Tue, Nov 3, 2020 at 12:55 PM Federico

Re: [SR-Users] tsilo - failure to add branches (-1)

2020-11-03 Thread Federico Cabiddu
Hi Jurijs, I had a look at the logs but they are confusing: looks like there are two calls (transactions) stored by tsilo and the ts_append is called only for one. In the logs you sent: 1) row 19: an INVITE comes with callid 9741c821-93b2-1239-0599-024233fefdc7 2) row 60: since there is no contact

Re: [SR-Users] tsilo - failure to add branches (-1)

2020-10-28 Thread Federico Cabiddu
Hi Jurijs, I had a look at the logs and there is something strange: I see the ts_append logs before the registrar module ones (the save function). Are you sure you are calling ts_append after calling save()? Cheers, Federico On Tue, Oct 27, 2020 at 10:26 AM Jurijs Ivolga wrote: > Hi

Re: [SR-Users] How to read "duid" from dispatcher.list in kamamilio.cfg

2020-10-21 Thread Federico Cabiddu
Hi, actually you can access it directly from the xvap without transformations. $var(duid) = $xavp(dsdst=>dstid); ( http://www.kamailio.org/docs/modules/devel/modules/dispatcher.html#dispatcher.p.xavp_dst_mode ) Cheers, Federico On Wed, Oct 21, 2020 at 9:28 AM Federico Cabiddu wrote: &

Re: [SR-Users] How to read "duid" from dispatcher.list in kamamilio.cfg

2020-10-21 Thread Federico Cabiddu
Hi, you can access it through the xavp_dst ( http://www.kamailio.org/docs/modules/devel/modules/dispatcher.html#dispatcher.p.xavp_dst) using transformations. E.g. if your xavp is called "dsdst" you can do something like this: $var(duid) = $(xavp(dsdst=>attrs){param.value,duid}); Cheers,

Re: [SR-Users] Setup Push notifications from SIP-PBX to Linphone Android -

2020-08-25 Thread Federico Cabiddu
Hi, you can watch this presentation for an introduction to mobile pushes and a simple way of approaching them. For a more standard approach you can have a look at this recent RFC: https://tools.ietf.org/html/rfc8599 about push notifications with SIP. Best regards, Federico On Sun, Aug 23, 2020

Re: [SR-Users] siptrace: methods blacklist modparam

2020-06-25 Thread Federico Cabiddu
Hi Nuno, I think it's a good and useful addition, I had a quick look on the PR and it looks good, but I'll have a deeper look as soon as possible. Cheers, Federico On Thu, Jun 25, 2020 at 11:30 AM Nuno Ferreira wrote: > Hello, > > We are a heavy Homer/Hepic (tks QXIP team) users and on our

Re: [SR-Users] Prometheus module stat

2020-06-12 Thread Federico Cabiddu
Hi David, in master branch there is the new "stats_name_separator" https://www.kamailio.org/wiki/cookbooks/devel/core#stats_name_separator. Cheers, Federico On Fri, Jun 12, 2020 at 4:08 PM David Villasmil < david.villasmil.w...@gmail.com> wrote: > Hello all, > > Anyone here uses the prometheus

Re: [SR-Users] Kamailio 5.3.0 and HEPv3 oversized traffic

2020-06-04 Thread Federico Cabiddu
does not trace anything, it seems to also > ignore the duplicate_uri. No error messages etc.. in the logs. > > > > Cheers, > > > > Henning > > > > -- > > Henning Westerholt – https://skalatan.de/blog/ > > Kamailio services – https://gilawa.com > > >

Re: [SR-Users] Kamailio 5.3.0 and HEPv3 oversized traffic

2020-06-04 Thread Federico Cabiddu
nction if you wanted to see the full SIP flow in Homer. >> It's not clear from documentation that it's a must function, but it did fix >> the problem in my case. >> >> For example: >> >> sip_trace(); >> sip_trace_mode("t") >> >> O

Re: [SR-Users] Kamailio 5.3.0 and HEPv3 oversized traffic

2020-06-03 Thread Federico Cabiddu
Hi, did you try to capture the traffic going towards homer? Siptrace module has internally changed in release 5.3 and some things that used to work in 5.2 are not working or are not doing it in the expected way. There have been several fixes since 5.3.0, some of them are still only in master

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

2020-05-11 Thread Federico Cabiddu
587c-3 & >> ulcx-5e88a468-587c-2 >> $xavp(tm_contacts[3]) = $null => empty >> >> On Mon, May 11, 2020 at 11:34 AM Federico Cabiddu < >> federico.cabi...@gmail.com> wrote: >> >>> Hi, >>> shouldn't it be >>> $(x

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

Re: [SR-Users] Kamailio, TSILO and "local" calls

2020-04-23 Thread Federico Cabiddu
Hi, to better understand TSILO and when you could use, I suggest the following video: https://www.youtube.com/watch?v=4XIrR9bwUkM and the slides https://www.kamailio.org/events/2015-KamailioWorld/Day2/20-Federico.Cabiddu-Kamailio-In-A-Mobile-World.pdf Cheers, Federico On Wed, Apr 22, 2020 at

Re: [SR-Users] Dealing with mobile client state while using Push Notification and TSILO

2020-04-17 Thread Federico Cabiddu
zyk wrote: > Hello! > > We are trying to setup a call-flow with TSILO and Push Notifications for > solution with a mobile SIP client (Linphone), based on presentation by > Federico > Cabiddu (http://www.kamailio.org/events/2015-KamailioWorld/Day2/20- > Federico.Cabiddu-Kamailio

Re: [SR-Users] [Kamailio-Business] Kamailio/RTC dinner at Fosdem 2020

2020-01-15 Thread Federico Cabiddu
ist. >>> >>> Cheers, >>> >>> Henning >>> >>> Am 09.01.20 um 09:52 schrieb Daniel-Constantin Mierla: >>> > Hello, >>> > >>> > Fosdem 2020 is approaching, there will be a talk from Henning about >>> > Kama

Re: [SR-Users] Disabling weak SSL Cypher suites

2019-12-09 Thread Federico Cabiddu
Hi, for enabling a specific set of ciphers have a look at tls module's cipher_list param: http://www.kamailio.org/docs/modules/5.4.x/modules/tls.html#tls.p.cipher_list . For supporting specific versions of TLS look at tls_method param:

Re: [SR-Users] http_async_client and HTTP2

2019-11-18 Thread Federico Cabiddu
Hi Igor, the PR for HTTP/2 support has been merged. Could you try master branch before backporting to stable branches? Thank you. Regards, Federico On Fri, Nov 15, 2019 at 8:49 PM Henning Westerholt wrote: > Hello Igor, > > > > I think there are some core extensions necessary before this can

Re: [SR-Users] http_async_client and HTTP2

2019-11-15 Thread Federico Cabiddu
Hi Igor, I just opened a PR (https://github.com/kamailio/kamailio/pull/2132) for adding http/2 replies parsing in the core. Cheers, Federico On Thu, Nov 14, 2019 at 7:42 PM Igor Olhovskiy wrote: > HI! > > Seems to be, http_async client is not compatible with http2 servers. > > I'm having like

Re: [SR-Users] Kamailio to capture mirrored traffic

2019-10-26 Thread Federico Cabiddu
Just use heplify or captagent for this: https://github.com/sipcapture/heplify https://github.com/sipcapture/captagent You can run them on the same machines where you're running your sip services and send the captured traffic to a homer instance. Cheers, Federico On Sat, 26 Oct 2019, 20:40 Igor

Re: [SR-Users] q_malloc crash on Kamailio 5.2.3 with http_async_query function

2019-10-04 Thread Federico Cabiddu
Hi, I've seen the github issue, I'll have a look asap. To be clear, are you using http_async_query in dialog's event route also in 4.4.x or is this something new in your routing script? Regards, Federico On Fri, Oct 4, 2019 at 10:42 AM Michal Škuta wrote: > Hello everyone, > I am adding some

Re: [SR-Users] Get destination out of _dsdst_

2019-10-03 Thread Federico Cabiddu
Hi, xavps are structs, not plain strings: https://www.kamailio.org/wiki/cookbooks/5.2.x/pseudovariables#xavp_id_-_xavps . To get the ip of the currently selected destination you should use $xavp(_dsdst_=>uri) (

Re: [SR-Users] RFC: about sl and tm local-response event routes

2019-08-27 Thread Federico Cabiddu
-response to local-response-sent (I don't > remember any discussion about people using it, I checked the commit log and > was added by Peter Dunkley several years ago, I never used it so far). > > Cheers, > Daniel > On 27.08.19 16:04, Federico Cabiddu wrote: > > Hi Daniel, > per

Re: [SR-Users] RFC: about sl and tm local-response event routes

2019-08-27 Thread Federico Cabiddu
Hi Daniel, personally I have just one case of local-request, so it wouldn't hurt too much this change that brings consistency. Cheers, Federico On Tue, Aug 27, 2019 at 1:37 PM Daniel-Constantin Mierla wrote: > Hello, > > just discovered what I consider to be an inconsistency in naming and >

Re: [SR-Users] [sr-dev] Failed to catch some reply message with reply_route block

2019-08-26 Thread Federico Cabiddu
Hi Salah, I got it working (capturing stateless replies in and out) with the following parameter and routing script snippets. onsend_route_reply=1 reply_route { xlog("L_INFO", "Incoming reply: $rm $rs\n"); if (!t_check_trans()) { setflag(25); $var(rc) =

Re: [SR-Users] Append a new branch while the other one is in ringing state

2019-07-04 Thread Federico Cabiddu
d. > > I hope this helps to make it clear. > > > On Thu, Jul 4, 2019 at 10:04 AM Federico Cabiddu < > federico.cabi...@gmail.com> wrote: > >> Hi Koray, >> I'm not sure I understand your use case. >> If you are handling registrations, why having an rtimer

Re: [SR-Users] kamailio as UAC and NAPTR / sendsocket question

2019-07-04 Thread Federico Cabiddu
Actually you can force the TCP socket (e.g. sending from the same socket you are listening on) if the kernel has support for SO_REUSEPORT (linux > 3.9, FreeBSD, OSX) and you enable tcp_reuse_port in kamailio configuration ( https://www.kamailio.org/wiki/cookbooks/5.2.x/core#tcp_reuse_port). Best,

Re: [SR-Users] Append a new branch while the other one is in ringing state

2019-07-04 Thread Federico Cabiddu
Hi Koray, I'm not sure I understand your use case. If you are handling registrations, why having an rtimer process that check if there are new contacts? Regards, Federico On Wed, Jul 3, 2019 at 7:37 AM Koray Vatansever wrote: > Hi Daniel, > > I'm using usrloc with db_mode only. So location

Re: [SR-Users] 403 Forbidden

2019-06-15 Thread Federico Cabiddu
tioned works :) >> Thanks >> Miro >> >> Il giorno ven 14 giu 2019 alle ore 16:14 Federico Cabiddu < >> federico.cabi...@gmail.com> ha scritto: >> >>> Hi, >>> dialog CDR for failed calls can be generated enabling >>> >>> htt

Re: [SR-Users] 403 Forbidden

2019-06-14 Thread Federico Cabiddu
Hi, dialog CDR for failed calls can be generated enabling http://www.kamailio.org/docs/modules/devel/modules/acc.html#acc.p.cdr_on_failed It has been some time since I last tested it, but it still should work :) Cheers, Federico On Fri, Jun 14, 2019 at 3:25 PM Daniel-Constantin Mierla wrote:

Re: [SR-Users] Using DNS in Dispatcher for SRV Clarification

2019-06-06 Thread Federico Cabiddu
Hi, if you want failover support, you need to have a couple of core dns parameters enabled: https://www.kamailio.org/wiki/cookbooks/5.2.x/core#use_dns_cache and https://www.kamailio.org/wiki/cookbooks/5.2.x/core#use_dns_failover The latter defaults to off. Cheers, Federico On Thu, Jun 6,

Re: [SR-Users] Rewrite contact header

2019-05-17 Thread Federico Cabiddu
Hi, you can try https://kamailio.org/docs/modules/5.2.x/modules/textopsx.html#textopsx.f.remove_hf_value Cheers, Federico On Fri, May 17, 2019 at 12:45 PM R, Rajkumar (Raj) wrote: > Hello, > > > > We are using alias routing from NATHelper module and I’ve a case where the > alias part

Re: [SR-Users] GDB debugging Kamailio 5.2.2 IMS authorization failed by the SCSCF

2019-05-08 Thread Federico Cabiddu
Hi, if I'm not wrong you should attach to the udp receiver process (8457). The cdp threads are used to send Diameter messages and process asynchronously the replies. Cheers, Federico On Wed, 8 May 2019, 12:43 Woscek, Martin W., wrote: > Hi, > > > > Looking for some advice running the

Re: [SR-Users] http_client_query module?

2019-05-08 Thread Federico Cabiddu
Hi, the errors are about http_client module not about tls. did you load http_client module in your config? loadmodule "http_client.so" Federico On Tue, May 7, 2019 at 11:48 PM Andrew Chen wrote: > Hey guys, > > Need help here. What module besides tls.so I need to load in order to get >

Re: [SR-Users] remove_record_route - bug?

2019-04-28 Thread Federico Cabiddu
Hi, Have you tried to do the record route manipulations in a branch_route (both for the first branch and for the one after the failure)? Regards, Federico On Sun, 28 Apr 2019, 14:02 Sergiu Pojoga, wrote: > Hi Alex, tried that, remove_hf doesn't produce desired result because the > received

Re: [SR-Users] [sr-dev] Planning next IRC devel meeting

2019-03-11 Thread Federico Cabiddu
I'm sorry I missed the meeting due to an unexpected event. Cheers, Federico On Mon, Mar 11, 2019 at 5:07 PM Daniel-Constantin Mierla wrote: > Hello, > > meeting still going on. Maybe you can succeed to join, I guess the > freenode has stricter policies for new accounts due to the DDoS they

Re: [SR-Users] it's auth module send clear text password?

2019-03-04 Thread Federico Cabiddu
Hi, auth module implement digest authentication (rfc2617) so passwords are not sent in clear from the client to kamailio. Federico On Tue, Mar 5, 2019 at 7:07 AM PICCORO McKAY Lenz wrote: > if kamailio doe snot use TLS all the mechanish in atuh module are send the > pasword nude to the

Re: [SR-Users] TSILO on Kamailio 5.2.0

2019-01-28 Thread Federico Cabiddu
28, 2019 at 6:51 PM Володимир Іванець wrote: > Hello! > > I am trying to repeat awesome configuration provided by Federico Cabiddu > https://www.youtube.com/watch?v=4XIrR9bwUkM but only got it to work > partially. So I'm wondering if someone else has same problem as me on > late

Re: [SR-Users] Kamailio in a mobile world - ts_append issue

2018-10-04 Thread Federico Cabiddu
Hi, the easiest thing you can do is to manually delete the entry in the htable (I suppose that you are referring to the one used in the example) when a CANCEL is received. Cheers, Federico On Thu, Oct 4, 2018 at 12:35 PM Dan Quinney wrote: > Using "Kamailio in a mobile world" as a base, I have

Re: [SR-Users] Dialog timout reset when receiving a re-INVITE

2018-09-29 Thread Federico Cabiddu
Hi, This is the standard behavior of dialog module. If you don't want the timer to be reset when an in-dialog message is received, you have to use the timeout_noreset param http://www.kamailio.org/docs/modules/devel/modules/dialog.html#dialog.p.timeout_noreset . Best regards, Federico On Sat,

Re: [SR-Users] Http_async_client stops script execution

2018-09-28 Thread Federico Cabiddu
d() usage* > > ... > t_newtran(); > http_async_suspend(0); > # the transaction won't be suspended for the next query > http_async_query("http://example.com/test.php;, "HTTP_REPLY"); > xlog("L_INFO", "query sent\n"); > t_reply("200", &q

Re: [SR-Users] Http_async_client stops script execution

2018-09-27 Thread Federico Cabiddu
call routing to >> route[HTTP_REPLY] >> ,correct ? >> >> >> >> 2018-09-27 16:42 GMT+03:00 Federico Cabiddu : >> >>> Hi, >>> if you are in a transactional contest (as you are since you are calling >>> t_newtran()), the script execu

Re: [SR-Users] subst_hf to rewrite a contact header

2018-09-27 Thread Federico Cabiddu
Hi, first of all you definitely do not want to put the contact received in the INVITE in the 200 OK, since you will, in the best case generate a loop of the UAC sending the ACK to itself. About having to call msg_apply_changes this comes probably by the fact that you've already manipulated the

Re: [SR-Users] Http_async_client stops script execution

2018-09-27 Thread Federico Cabiddu
Hi, if you are in a transactional contest (as you are since you are calling t_newtran()), the script execution is suspended, upon calling http_async_query and resumed in the callback route passed as parameter. The instructions after the call to http_async_query are never executed. If you are not

Re: [SR-Users] Await to INVITE after REGISTER for mobile device which get awake via android/iOS notification messages

2018-09-18 Thread Federico Cabiddu
Hi, have a look on the TSILO module: http://www.kamailio.org/docs/modules/5.1.x/modules/tsilo.html. It has been designed exactly for this use case. you can also have a look on the following video and the related presentation to understand how to integrate into kamailio routing logic:

Re: [SR-Users] issue with rewrite to domain in failure route

2018-09-17 Thread Federico Cabiddu
Hi, I didn't understand from your mail if you are calling uac_replace_to() in a branch route also for the first request or only when you hit the failure route. Just in case, you need to call it in a branch route for the initial request too so to have a "clean" message when you run the failure

Re: [SR-Users] dispatcher probe

2018-09-04 Thread Federico Cabiddu
Hi, you can access locally generated packets in the event_route[tm:local-request]. Cheers, Federico On Tue, Sep 4, 2018 at 2:41 AM wrote: > Hello Everyone, > Is possible access OPTIONS packet generated by dispatcher probe ? > I am trying insert something like this. > >

Re: [SR-Users] Delay in 100 Trying response for INVITE when the load is 70 INVITE's per sec

2018-07-09 Thread Federico Cabiddu
Hi, Kamailio doesn't delay sending of 100 trying after calling t_relay(). You probably have something blocking in your script: a SQL operation, a Http query or some long operation. Check your routing script for the presence of such operations. Regards, Federico On Mon, 9 Jul 2018, 13:51

Re: [SR-Users] Dispatcher module ERROR

2018-06-01 Thread Federico Cabiddu
Hi, Can you try to also set the other AVPs, dstid_avp, attrs_avp and sock_avp? http://www.kamailio.org/docs/modules/devel/modules/dispatcher.html#dispatcher.p.dstid_avp Cheers, Federico On Fri, 1 Jun 2018, 08:17 Aleksandar Sosic, wrote: > Hi everyone, > > We have an error using the

Re: [SR-Users] I think I found issue to Kamailio not forwarding ACK sent to it by Asterisk

2018-05-22 Thread Federico Cabiddu
a lot of searching and have not many examples of the situation > I am facing. > > > > I think I am just missing something. > > > > Thanks again! > > > > . > > > > > > > > *From:* sr-users [mailto:sr-users-boun...@lists.kamailio.org] *On

Re: [SR-Users] rtpp_test() in kamailio log

2018-05-22 Thread Federico Cabiddu
Hi, how many Kamailio childrens do you have? Each child, as far as I am aware, will have its own check for rtpengine. Bests, Federico On Tue, May 22, 2018 at 12:34 PM, Giovanni Tommasini - evosip < giovanni.tommasini@evosip.cloud> wrote: > Hi guys, > > I've a question on using rtpengine with

Re: [SR-Users] I think I found issue to Kamailio not forwarding ACK sent to it by Asterisk

2018-05-22 Thread Federico Cabiddu
’ s Public IP, but never makes > it there (because the my firewall will not allow it). > > > > This is why I was wondering if I could change the Record-Route on the > ‘200 OK’ that is sent to Asterisk. I just can’t figure out how to do it. > > > > Thank you for your time!

Re: [SR-Users] I think I found issue to Kamailio not forwarding ACK sent to it by Asterisk

2018-05-21 Thread Federico Cabiddu
e first RR in the ‘200 OK’ to its Private IP, because the Server > Kamailio is on may not be open to public traffic. > > > > Thank you > > > > *From:* sr-users [mailto:sr-users-boun...@lists.kamailio.org] *On Behalf > Of *Federico Cabiddu > *Sent:* Monday, May 21,

Re: [SR-Users] I think I found issue to Kamailio not forwarding ACK sent to it by Asterisk

2018-05-21 Thread Federico Cabiddu
Hi, if you have Kamailio listening on private IP and public IP you need two record-routes. Have a look at this param of the rr module: http://www.kamailio.org/docs/modules/devel/modules/rr.html#rr.p.enable_double_rr Best regards, Federico On Mon, May 21, 2018 at 7:01 PM, Wilkins, Steve

Re: [SR-Users] Transport issue thought

2018-05-18 Thread Federico Cabiddu
> > >- Another very interesting thing is that if I use UDP and Asterisk >14.6, the call works perfect! It stays connected and I have full duplex >Audio and Video > > > > Thank you! > > > > > > *From:* sr-users [mailto:sr-users-boun...@lists.ka

Re: [SR-Users] Transport issue thought

2018-05-18 Thread Federico Cabiddu
eated shouldn’t it be using the listen tcp port since I > have tcp_reuse_port=yes? > > > > Thank you! > > > > *From:* sr-users [mailto:sr-users-boun...@lists.kamailio.org] *On Behalf > Of *Federico Cabiddu > *Sent:* Friday, May 18, 2018 8:49 AM > &g

Re: [SR-Users] Transport issue thought

2018-05-18 Thread Federico Cabiddu
gt; > > Thank you all for sharing your knowledge! > > > > > > *From:* sr-users [mailto:sr-users-boun...@lists.kamailio.org] *On Behalf > Of *Federico Cabiddu > *Sent:* Friday, May 18, 2018 12:57 AM > *To:* Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio

Re: [SR-Users] Transport issue thought

2018-05-17 Thread Federico Cabiddu
You are right Alex, Linux kernel didn't support SO_REUSEPORT, which allows a socket to be used as source for a tcp connection while is already bound, until version 3.9. Kamailio's parameter tcp_reuse_port, if enabled and your OS has support for SO_REUSEPORT (so not only Linux but FreeBSD, OSX and

Re: [SR-Users] Last negative 5XX reply not getting relayed

2018-05-15 Thread Federico Cabiddu
Hi, rfc 3261 (the one and only) states at section16.7 " A proxy which receives a 503 (Service Unavailable) response SHOULD NOT forward it upstream unless it can determine that any subsequent requests it might proxy will also generate a 503. In other words,

Re: [SR-Users] Kamailio with 2 Public and Private IPs- SIP Call flow issues

2018-04-16 Thread Federico Cabiddu
Hi, your INVITE contains a single Record-Route, with Kamailio's Public IP address. Freewitch in the following in0dialog messages, as the BYE is, will have nowhere else to send them than the public IP. If you want FS to send in-dialog messages to the private IP you have to have two Record-Route

Re: [SR-Users] Problem capturing packets from kamailio to homer sip-capture

2018-04-05 Thread Federico Cabiddu
Hi, is your kamailio listening at list on one udp socket? Siptrace module uses kamailio's listening socket to send out hep messages. Regards, Federico On Thu, 5 Apr 2018 08:09 Arik Halperin, wrote: > Hello, > > > > My kamailio is listening to TCP, so when I try to duplicate

Re: [SR-Users] Fosdem dinner

2018-01-16 Thread Federico Cabiddu
Hi Daniel, I will be at Fosdem and I'd like to join the dinner. See you there. Federico On 15 Jan 2018 09:29, "Daniel-Constantin Mierla" wrote: Hello, in the past 10 years or so, many of us met at Fosdem conference in Brussels (the edition this year happens during February

Re: [SR-Users] Doing a quick test with http_async_client module from master branch

2017-12-06 Thread Federico Cabiddu
On Wed, Dec 6, 2017 at 2:18 PM, Daniel-Constantin Mierla <mico...@gmail.com> wrote: > Thanks Federico! > > Daniel > > On 06.12.17 12:58, Federico Cabiddu wrote: > > I'll do some test tonight and report. > > Cheers, > > Federico > > On 6 Dec 2017 10:25 am,

Re: [SR-Users] Doing a quick test with http_async_client module from master branch

2017-12-06 Thread Federico Cabiddu
I'll do some test tonight and report. Cheers, Federico On 6 Dec 2017 10:25 am, "Daniel-Constantin Mierla" wrote: > Hello, > > anyone around here that can do a quick test with http_async_module? I > don't have a testbed for it right now and I would spend the time on > other

Re: [SR-Users] Using dispatcher's algorithm 12

2017-12-02 Thread Federico Cabiddu
Hi, which Kamailio version are you using? Dispatcher's algorithm 12 is available in master/5.1-dev. The default behaviour of the module is to pick the first destination in the set if the selected algorithm is unknown:

Re: [SR-Users] tsilo ts_store() causes segfault if method is not INVITE

2017-10-09 Thread Federico Cabiddu
fications > recipe from Federico Cabiddu and could cause a segfault in kamailio > 5.0.3 if due to misconfiguration an ACK reached ts_store(). > > ## modify https://www.kamailio.org/events/2015-KamailioWorld/ > Day2/20-Federico.Cabiddu-Kamailio-In-A-Mobile-World.pdf > ## various rou

Re: [SR-Users] rtpengine_manage in tsilo INVRESUME sends delete instead of offer

2017-10-06 Thread Federico Cabiddu
Hi, http://www.kamailio.org/docs/modules/devel/modules/rtpengine.html#rtpengine.f.rtpengine_manage . If you are calling it after resuming a transaction you are basically in a FAILURE_ROUTE, so it will call the "delete" command. You have to explicitly call rtpengine_offer for this to work. Cheers,

Re: [SR-Users] Cost deduction in kamailio

2017-09-07 Thread Federico Cabiddu
s, >> Logeshwaran G >> >> On Wed, Aug 30, 2017 at 2:12 PM, Logeshwaran G <logeshwara...@gmail.com> >> wrote: >> >>> Ok let me try it out! >>> >>> Will add the sqlops query module in the event route! >>> >>> Thanks >>> >

Re: [SR-Users] Cost deduction in kamailio

2017-08-30 Thread Federico Cabiddu
e changed the Variables to dialog variables, But I > dont know what to add in event route. > > Thanks & Kind Regards, > Logeshwaran G > > On Wed, Aug 30, 2017 at 2:00 PM, Federico Cabiddu < > federico.cabi...@gmail.com> wrote: > >> Hi, >> did you read thi

Re: [SR-Users] Cost deduction in kamailio

2017-08-30 Thread Federico Cabiddu
ent > 403:Forbidden. required=$var(minbal)\n"); > sl_send_reply("403", "Forbidden: Low balance"); > drop; > > } > } > > > > > Thanks & Kind Regards, > Logeshwaran G > > On Fri, Aug 25, 2017

Re: [SR-Users] TSILO + NAT issues

2017-08-28 Thread Federico Cabiddu
Hi, be sure that the operations for both the nat and the rtpengine functions are called after appending the new branches to the INVITE. Better set a branch route for this. Best regards, Federico On Mon, Aug 28, 2017 at 5:01 PM, Emanuele Gambaro < emanuele.gamb...@pynlab.com> wrote: > Hi to

Re: [SR-Users] Cost deduction in kamailio

2017-08-23 Thread Federico Cabiddu
Hi, cnxcc doesn't provide this feature. Is not aware of any backend, it just controls subscriber's balance, money or time, as instructed. You can calculate the amount to be deducted after the call ends (if you're doing money based accounting) using dlg variables to store the needed information

Re: [SR-Users] load credentials in cnxcc from dburl

2017-08-07 Thread Federico Cabiddu
ious mail, > > But That if($avp(credits) < 30 > $avp(credits) is not reading the credits value from the subscriber table, > > Do i need to implement something for reading that database. > > > On Mon, Aug 7, 2017 at 1:14 PM, Federico Cabiddu < > federico.cabi...@gmail.com> wrote:

Re: [SR-Users] load credentials in cnxcc from dburl

2017-08-07 Thread Federico Cabiddu
("L_ALERT", "ALERT: Credit balance is less"); > sl_send_reply("403", "Forbidden"); > drop; > } > > Correct me if I am wrong!! > > On Mon, Aug 7, 2017 at 12:37 PM, Federico Cabiddu < > federico.ca

  1   2   >