[SR-Users] http_async_client expected result in $http_rr

2021-02-09 Thread Anthony Joseph Messina
https://www.kamailio.org/docs/modules/stable/modules/http_async_client says $http_rr will be the HTTP reason phrase. I'm understanding this to mean: Code: Reason: 200 OK 404 Not Found In my current 5.4 build, $http_rr returns empty (not or anything else) regardless of what the serve

[SR-Users] master daily build with disabled compiler optimisation

2021-02-09 Thread Sergey Safarov
I want suggested to use "-ggdb3 -O0" gcc options when compiled daily master RPM files. Through? ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Re: [SR-Users] Releasing Kamailio v5.4.4

2021-02-09 Thread Anthony Joseph Messina
I'd like to see the fix for --atexit=yes|no https://github.com/kamailio/ kamailio/issues/2616 implemented in master (https://github.com/kamailio/ kamailio/issues/2616#issuecomment-772512372) be backported, perhaps with a quick look into https://github.com/kamailio/kamailio/issues/2632 I realize p

Re: [SR-Users] Permissions module with Mongodb

2021-02-09 Thread H Yavari
Hi Daniel, It worked with different names like "versions".Please put it in your issue list for future release. Thank you. Regards,Hossein -- On Tuesday, February 9, 2021, 12:34:06 AM PST, Daniel-Constantin Mierla wrote: Hello, hmm, that's interesting, used to be no problem with nam

Re: [SR-Users] Releasing Kamailio v5.4.4

2021-02-09 Thread Sergiu Pojoga
Well, I'd like to see PR https://github.com/kamailio/kamailio/pull/2470 backported into a stable branch. Me myself & I have tested quickly this new feature using the master branch and it's been working fine so far. So yeah, please, if possible. On Tue, Feb 9, 2021 at 8:11 PM Anthony Joseph Messi

Re: [SR-Users] run_trans_callbacks_internal crash

2021-02-09 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > Get also the output for gdb commands in frame 0: > > list > > p *cbp Here, but not much: Program terminated with signal SIGSEGV, Segmentation fault. #0  0x7f601d4b2f32 in run_trans_callbacks_internal (cb_lst=0x7f5ffb53e318, type=512, trans=0x7f5ffb53e2a0,

Re: [SR-Users] Kamailio as MS-Teams SBC

2021-02-09 Thread Pepelux
I've tried the transfers and certainly Teams doesn't manage it correctly. As you said before, if Kamailio allows REFER messages, Teams send all transfers to Kamailio. If Kamailio doesn't allow REFER messages, Teams manage the transfers. But there is a problem with transfers between Teams users: *C

[SR-Users] run_trans_callbacks_internal crash

2021-02-09 Thread Juha Heinanen
We got the crash below with 5.4.2. Before the crash there was db_mysql_async_exec_task(): failed to execute query related error messages in syslog. -- Juha Program terminated with signal SIGSEGV, Segmentation fault. #0  0x7f601d4b2f32 in run_trans_callbacks_internal (cb_lst=0x7f5ffb53e31

[SR-Users] CANCEL transaction

2021-02-09 Thread David Villasmil
Hello, When receiving a reply, there's a logic which if true, i must cancel the outgoing invite (can 480 the origination). I tried using something like t_set_fr(10,10); to have kamailio cancel it immediately, but it's not happening. Is there a way to cancel an INVITE/transaction? Regards, Dav

Re: [SR-Users] run_trans_callbacks_internal crash

2021-02-09 Thread Daniel-Constantin Mierla
Get also the output for gdb commands in frame 0: list p *cbp Cheers, Daniel On 09.02.21 15:09, Juha Heinanen wrote: > We got the crash below with 5.4.2. Before the crash there was > > db_mysql_async_exec_task(): failed to execute query > > related error messages in syslog. > > -- Juha > > Pro

Re: [SR-Users] Time elapsed since previous message.

2021-02-09 Thread David Villasmil
Thanks Alex, Exactly what I was thinking. Just wondering whether there was a better way. Again THANKS! David On Tue, 9 Feb 2021 at 14:56, Alex Balashov wrote: > Hi, > > You can store the timestamp of the last message of interest in a > transaction-persistent variable - that is, an AVP or XAVP

Re: [SR-Users] Time elapsed since previous message.

2021-02-09 Thread Alex Balashov
Hi, You can store the timestamp of the last message of interest in a transaction-persistent variable - that is, an AVP or XAVP - using $TV(): https://www.kamailio.org/wiki/cookbooks/5.4.x/pseudovariables#tv_name Then, you can do some arithmetic like this to turn the difference between two time

Re: [SR-Users] Timeout for provisional response other that 100

2021-02-09 Thread David Villasmil
Worked like a charm, thanks for the tip! On Sat, 6 Feb 2021 at 18:44, Alex Balashov wrote: > Hi David, > > There is a simpler way. The usual parlour trick is to, upon receipt of a > 100 Trying, set a timeout dynamically in the onreply_route, using > t_set_fr(): > > https://kamailio.org/docs/modu

[SR-Users] Time elapsed since previous message.

2021-02-09 Thread David Villasmil
Hello all, Is it possible to know the elapsed time since the previously received message? On outgoing calls, I.e: when i get a 180, how long did the 100 arrived? Or the INVITE... Thanks David -- Regards, David Villasmil email: david.villasmil.w...@gmail.com phone: +34669448337 ___

[SR-Users] Releasing Kamailio v5.4.4

2021-02-09 Thread Daniel-Constantin Mierla
Hello, I am considering to release Kamailio v5.4.4 sometime next week, likely on Monday, February 15, 2020. This is the usual heads up notification to see if anyone is aware of issues not yet reported to bug tracker and if yes, do it as soon as possible to give them a chance to be fixed. Cheers,

Re: [SR-Users] Best SIP reply for service activation

2021-02-09 Thread Henning Westerholt
Hello, maybe I am missing something, but what about just using one of the standard reply codes for re-direction – 3xx? Cheers, Henning -- Henning Westerholt – https://skalatan.de/blog/ Kamailio services – https://gilawa.com From: sr-users On Behalf Of Duarte Rocha Sent:

Re: [SR-Users] Permissions module with Mongodb

2021-02-09 Thread H Yavari
Hi Daniel, I investigated a little and find something: db.version.find() doesn't run. It seems Mongo has a problem with the name of "version" and it says: 2021-02-09T00:16:57.333-0800 E QUERY    [js] TypeError: db.version.find is not a function : I am using: The server version:4.2.12Mongo-C ve

[SR-Users] Best SIP reply for service activation

2021-02-09 Thread Duarte Rocha
Hello, I'm currently developing a service on Kamailio where it's possible to configure redirections for a subscriber using a code. In order to implement that client should send an INVITE with a specific code on the Request URI and the redirection is configured. What should be the best way to ans

Re: [SR-Users] Permissions module with Mongodb

2021-02-09 Thread H Yavari
Dear Daniel, Thanks for reply. Obviously, there is a problem in my collection, is there any how-to for it? kamailio[1206]:  0(1208) DEBUG: db_mongodb [mongodb_dbase.c:973]: db_mongodb_query(): query to collection [version]kamailio[1206]:  0(1208) DEBUG: db_mongodb [mongodb_dbase.c:1007]: db_mong

[SR-Users] Kamailio inbound proxy -> Asterisk

2021-02-09 Thread Mihai
Hi! Don't know if this is a Kamailio Question, maybe someone had deal with it in the past. I use Kamailio with dispatcher to send the request (registration, invites, all) to my asterisk (inbound) and then the asterisk has the outbound trunks, everything works, but this is little thing in asteris

Re: [SR-Users] Permissions module with Mongodb

2021-02-09 Thread Daniel-Constantin Mierla
Hello, hmm, that's interesting, used to be no problem with name "version", afaik, might be something specific to newer versions of mongodb. I think there is a function to retrieve the collection by name, but that requires changes in the c code, not sure when I will get time for it, maybe others ca