[SR-Users] kemi lua routing block as route in standart cfg

2017-08-02 Thread Yuriy Gorlichenko
Hello. I found how to implement lua routimg logic with cfgengine but didn't found how to include cimple route in lua at the cfg file Presume i have routing logic and want to include my_super_custom_route written with Kemo on lua. How i need to set up my config for it work with both engines?

Re: [SR-Users] Fwd: kemi lua routing block as route in standart cfg

2017-08-03 Thread Yuriy Gorlichenko
> > If you are using event_route blocks, let me know which and I can say if > they are available -- many of them are, but some are missing, as I am not > using all the modules available and didn't have the time to dig in all of > them. > > Cheers, > Daniel > > On 02.08.

[SR-Users] Fwd: kemi lua routing block as route in standart cfg

2017-08-02 Thread Yuriy Gorlichenko
to have the native kamailio.cfg with its routing blocks, > but executed some Lua scripts inline, see app_lua exported functions: > > - http://www.kamailio.org/docs/modules/5.1.x/modules/app_lua.h > tml#app_lua.f.lua_run > > Cheers, > Daniel > > On 02.08.17 13:28, Yuriy G

Re: [SR-Users] kemi lua routing block as route in standart cfg

2017-08-02 Thread Yuriy Gorlichenko
MY_SUPER_ROUTE_IN_LUA is a route written with kemi on lua language. 2017-08-02 14:10 GMT+03:00 Daniel-Constantin Mierla <mico...@gmail.com>: > Hello, > > > On 02.08.17 12:02, Yuriy Gorlichenko wrote: > > Hello. I found how to implement lua routimg logic with > > cfgengine but didn

[SR-Users] Kamailio not forces TLS socket

2017-08-16 Thread Yuriy Gorlichenko
Hi! I using uac for send MESSAGE request from kamailio to remote destination endpoint Before sending i setting up $fs seudovariable as $fs = "tls:12.3.4.5:443"; kamailio listeinig this interface and succesfully receives requests and sending responses on it When i call uac_req_send();There is

[SR-Users] Fwd: Re: Fwd: kemi lua routing block as route in standart cfg

2017-08-04 Thread Yuriy Gorlichenko
he one for xhttp module? If yes, it's available. The event_route[websocket:closed] is not available, as I can see in the code, but I will add it. Cheers, Daniel On 03.08.17 08:38, Yuriy Gorlichenko wrote: Thank you for your response! Probably it was at 5.0.x kemi guide. But anyway Domt uderstand ho

[SR-Users] KEMI, Lua external modules and nonblicking operations

2017-05-09 Thread Yuriy Gorlichenko
Hi all. I m trying to use KEMI with lua and want to make call http client lua module (external). I want to ask: is it will block kamailio event loop (or somethig like it in kamailio)? For more understanding what im talking about i will provide example with openresty (nginx + lua) It uses nginx

Re: [SR-Users] SIP -

2017-10-06 Thread Yuriy Gorlichenko
se the "Expires" value of > 200-OK response must be between "Min-Expires" and "Expires" of the PUBLISH > request. If we are talking about SUBSCRIBE, then Expires in the 200-OK may > be the same as in the request or should shorten. > > > > On Fri

Re: [SR-Users] Manipulate From URI username

2017-10-04 Thread Yuriy Gorlichenko
try $U=$(fU{s.substr,3,0}); 2017-10-04 11:34 GMT+03:00 Gertjan Wolzak : > > Hello Kamailions, > > Im trying to manipulate the username from the from uri, but not having any > luck, I must be doing something wrong. > > I receive a from uri username that is prefixed with 888,

Re: [SR-Users] presentce handly_subscribe() protocol/port mismatch to WS endpoint

2017-10-04 Thread Yuriy Gorlichenko
Already tried yesterday evening. Same result with $du On Oct 4, 2017 14:35, "Daniel-Constantin Mierla" <mico...@gmail.com> wrote: > Can you print $du there and see if it set? looks like it is not routed by > r-uri, but dst uri. > > Cheers, > Daniel > > On 03

Re: [SR-Users] presentce handly_subscribe() protocol/port mismatch to WS endpoint

2017-10-04 Thread Yuriy Gorlichenko
May be debug=3 level says more? I will try to collect it. I don't think it is a bug. I think somethig wrong at my side, but can not find anything 2017-10-04 14:58 GMT+03:00 Yuriy Gorlichenko <ovoshl...@gmail.com>: > I mean i tried to change $du and print it. It was changed but notify

Re: [SR-Users] presentce handly_subscribe() protocol/port mismatch to WS endpoint

2017-10-04 Thread Yuriy Gorlichenko
il.com> wrote: > Can you print $du there and see if it set? looks like it is not routed by > r-uri, but dst uri. > > Cheers, > Daniel > > On 03.10.17 22:58, Yuriy Gorlichenko wrote: > > Found that at the tm:local-request $ru modifies but anyway - request sent > t

Re: [SR-Users] presentce handly_subscribe() protocol/port mismatch to WS endpoint

2017-10-03 Thread Yuriy Gorlichenko
Can not find any entry of this device at the active watchers. Suppose after module found sockets mistmatch and didnt got NOTIFY response it removes entry from active watchers... I added handling at the event route as you sugested and tried to do next Firs i tried fix $ru here but it does not

Re: [SR-Users] presentce handly_subscribe() protocol/port mismatch to WS endpoint

2017-10-03 Thread Yuriy Gorlichenko
on behalf of sip:8dc08f881f2105dD3d75@d0c20d13-e5b4-4649-821e-9ab8ec94b141 for event presence : 3biad4n635ugovv7vmjv 2017-10-03 21:31 GMT+03:00 Yuriy Gorlichenko <ovoshl...@gmail.com>: > Can not find any entry of this device at the active watchers. > Suppose after module found socke

Re: [SR-Users] SIP -

2017-10-06 Thread Yuriy Gorlichenko
try onreply_route{ if (is_method("PUBLISH") && t_check_status("200|202")) append_hf("Expires: 360\r\n"); } 2017-10-06 13:30 GMT+03:00 Subba Krishna MG : > Hello, > > > How do i include Expires header for 200 OK message? > > One of the manual says this.. how do i modify

Re: [SR-Users] SIP -

2017-10-06 Thread Yuriy Gorlichenko
> > > > On Fri, Oct 6, 2017 at 4:08 PM, Yuriy Gorlichenko <ovoshl...@gmail.com> > wrote: > >> try >> >> onreply_route{ >> if (is_method("PUBLISH") && t_check_status("200|202")) >> append_hf("Expires: &

Re: [SR-Users] presentce handly_subscribe() protocol/port mismatch to WS endpoint

2017-10-11 Thread Yuriy Gorlichenko
updates without Via to sip msg as i understood it applies changes but not uses it for redirect request throught needed socket. Shoud i use msg_apply_changes() or something ike that? 2017-10-04 16:13 GMT+03:00 Yuriy Gorlichenko <ovoshl...@gmail.com>: > May be debug=3 level says more? I

Re: [SR-Users] presentce handly_subscribe() protocol/port mismatch to WS endpoint

2017-10-12 Thread Yuriy Gorlichenko
iour between the > two, which is relevant in this case. > > Cheers, > Daniel > > On 12.10.17 12:31, Yuriy Gorlichenko wrote: > > I will try to do also add_contact_alias that you recommend. Will look on > result and describe it here > > On Oct 12, 2017 13:29, &quo

Re: [SR-Users] presentce handly_subscribe() protocol/port mismatch to WS endpoint

2017-10-12 Thread Yuriy Gorlichenko
hould not change the contact in the way you do, some > UA may reject it when receiving requests. > > Cheers, > Daniel > > On 11.10.17 23:32, Yuriy Gorlichenko wrote: > > Ok. solved > > I moved record_route for subscribe to other part of the config file and > for now if ms

Re: [SR-Users] presentce handly_subscribe() protocol/port mismatch to WS endpoint

2017-10-12 Thread Yuriy Gorlichenko
I will try to do also add_contact_alias that you recommend. Will look on result and describe it here On Oct 12, 2017 13:29, "Yuriy Gorlichenko" <ovoshl...@gmail.com> wrote: > No. I used fix_nated_contact for it because use just 2 libs for WS where > notify should be se

Re: [SR-Users] presentce handly_subscribe() protocol/port mismatch to WS endpoint

2017-10-12 Thread Yuriy Gorlichenko
Sorry - set_contact_alias() On Oct 12, 2017 14:05, "Yuriy Gorlichenko" <ovoshl...@gmail.com> wrote: > Yep got it. Looks like add_contact_alias should fix my issue > > On Oct 12, 2017 13:37, "Daniel-Constantin Mierla" <mico...@gmail.com> > wrote: >

[SR-Users] rtcp-mux policy for RTPengine module

2017-10-13 Thread Yuriy Gorlichenko
Hi all! Some time ago Chromium browser sets rtcpMuxPolicy: required by default (soon on Chrome 58) It means that webRTC based clients not accepts a=rtcp:31757 And uses for RTP and RTCP multiplexing at one port Main trouble that i found: calls between original SIP client and webRTC client (SIP

Re: [SR-Users] event_route[usrloc:contact-expired] not called after contact expires

2017-10-02 Thread Yuriy Gorlichenko
with debug=3 and see if you can spot some hints in the logs > messages? > > Cheers, > Daniel > > On Fri, Sep 29, 2017 at 11:11 PM, Yuriy Gorlichenko <ovoshl...@gmail.com> > wrote: > >> Hi I added this eventroute for manipulate temprorary entires in my >>

[SR-Users] event_route[usrloc:contact-expired] not called after contact expires

2017-09-29 Thread Yuriy Gorlichenko
Hi I added this eventroute for manipulate temprorary entires in my subscriber table but it is not called in my cfg. May be i didn't setted up in scf but didnf found any special params for this. I use kamailio 5.0.3 version: kamailio 5.0.3 (x86_64/linux) flags: STATS: Off, USE_TCP, USE_TLS,

[SR-Users] presentce handly_subscribe() protocol/port mismatch to WS endpoint

2017-10-03 Thread Yuriy Gorlichenko
Hi. I have presence server and it works fine for UDP/TCP/TLS endpoints. For now i have new one type of endpoints that runs via WebSockets It sends SUBSCRIBE request to the and then after handle_subscribe() NOTIFY not comes to the subscriber because of [core/forward.c:231]: get_send_socket2():

Re: [SR-Users] presentce handly_subscribe() protocol/port mismatch to WS endpoint

2017-10-03 Thread Yuriy Gorlichenko
Also found at the lists some solutions like "accept fix_nated_register() and fix_nated_contact() for REGISTER and SUBSCRIBE" Done it. But still protos mistmatch... kamailio founds tls:myip:myport and forces t to udp... 2017-10-03 10:49 GMT+03:00 Yuriy Gorlichenko <ovoshl...@gmail.c

Re: [SR-Users] Handle SDP ICE candidates

2017-10-09 Thread Yuriy Gorlichenko
You can use rtpengine module for rewriting ICE candidates. понедельник, 9 октября 2017 г. пользователь Thiago Guimarães написал: > Hello, > > I would like to know if there is any specific configuration in > kamailio.conf to enable/disable handle the array of ICE candidates. > > In my tests,

Re: [SR-Users] presentce handly_subscribe() protocol/port mismatch to WS endpoint

2017-10-11 Thread Yuriy Gorlichenko
INTERNALIP+":7443"; } handle_subscribe(); t_release(); This code saves valid contact at the active_watchers table for this SUBSCRIBE request and generates NOTIFY via correct transport. 2017-10-11 22:00 GMT+03:00 Yuriy Gorlichenko <ovoshl...@gmail.com>: > Cont

Re: [SR-Users] presentce handly_subscribe() protocol/port mismatch to WS endpoint

2017-10-11 Thread Yuriy Gorlichenko
transport at the contct field at the active_watchers table. Will be happy to any suggession. 2017-10-11 13:13 GMT+03:00 Yuriy Gorlichenko <ovoshl...@gmail.com>: > Hi. Got debug 3 information and found next (here is pastebin link with > dump > https://pastebin.com/ALHQkM9E) &g

Re: [SR-Users] presentce handly_subscribe() protocol/port mismatch to WS endpoint

2017-10-12 Thread Yuriy Gorlichenko
Hi. I added set_contact_alias() insead process i described previously if(is_method("SUBSCRIBE")) { xlog("L_INFO", "{$rm} . from external sources contact : $ct . proto is {$pr} "); set_contact_alias(); handle_subscribe(); t_release(); } But i got next error: presence engine

Re: [SR-Users] shared dialogs

2017-10-18 Thread Yuriy Gorlichenko
As i remember dialog module has db based interpretation. You can share it via db. On Oct 18, 2017 10:16, ": Paolo Visintin - Time-Net S.r.l." < paolo.visin...@timenet.it> wrote: > Hi kamailio users, I'm wondering if there's something already done with > shared dialog among more kamailio

Re: [SR-Users] using bcrypt passwd hashing

2017-11-13 Thread Yuriy Gorlichenko
-13 11:22 GMT+03:00 Daniel-Constantin Mierla <mico...@gmail.com>: > > > On 12.11.17 10:33, Yuriy Gorlichenko wrote: > > You can realize any of auth methods by yourself and include it via config > file/kemi on lua/by adding module > > forexample I added SSO auth without

Re: [SR-Users] blf in kamailio dmq cluster

2017-11-29 Thread Yuriy Gorlichenko
Hi. Just replicate publish messages to second server. On Nov 29, 2017 19:46, "Aidar Kamalov" wrote: > Hello, > > I have two(or more) kamailio servers with dmq module and dmq_usrloc - > sip1.example.com and sip2.example.com > publish and subcribe replication works too. >

Re: [SR-Users] blf in kamailio dmq cluster

2017-11-29 Thread Yuriy Gorlichenko
I this here is a way to share user for watcher from any domain using rpc.subscribe command after handle_subscribe() It is availible to make simple service that will be triggered by subscribe request and make fake subscribe request with needed data for other domains. Handle this subscribe also by

[SR-Users] Remove all cpecial characters (\n,\t etc)from xml body

2017-10-28 Thread Yuriy Gorlichenko
Hi. I building external presentity service for web based phones Main trouble that i have at the xml body of PUBLISH message \n \t characters and because of it can't set body as string to the redis So I trying to find a way to remove special characters form the xml body for get oneline string

Re: [SR-Users] Remove all cpecial characters (\n, \t etc)from xml body

2017-10-30 Thread Yuriy Gorlichenko
by kamailio (this it is not a best idea), think that logic on kamailio side should be as clear as it posible 2017-10-30 12:29 GMT+03:00 Daniel-Constantin Mierla <mico...@gmail.com>: > Hello, > > > On 28.10.17 20:28, Yuriy Gorlichenko wrote: > > Hi. I building external pr

Re: [SR-Users] WebRTC to SIP gateway

2018-05-09 Thread Yuriy Gorlichenko
Hi! You can to hande it with add_contact_alias but im not sure it will rewrite transport for you also if you will store contact as it is on your backend it is a big chance that it can be unusefull with your SIP service because conract uri is encrypted and most of b2b servers like asterisk for

Re: [SR-Users] Kamailio + FreeSwitch + WebRTC

2018-06-14 Thread Yuriy Gorlichenko
You can watch at the kazoo project examples if you want to avoid rtp proxy On Thu, Jun 14, 2018, 23:26 Daniel Tryba wrote: > On Thu, Jun 14, 2018 at 04:48:40PM -0300, Emanuel Gianico wrote: > > From the logs I see the jssip throw this error: > > > > "Failed to set remote offer sdp: Called with

[SR-Users] jsonrpc http interface cant recognize method

2018-05-29 Thread Yuriy Gorlichenko
Hi i trying to get htable.dump mytable via jsonrpc request {jsonrpc: "2.0", method: "htable.dump mytable"} { "jsonrpc": "2.0", "error":{ "code": 500, "message": "Method Not Found" } } But via kamcmd it wroks perfect

Re: [SR-Users] jsonrpc http interface cant recognize method

2018-05-29 Thread Yuriy Gorlichenko
found my mystake: params : { name : "mytable" } closed 2018-05-29 10:53 GMT+03:00 Yuriy Gorlichenko : > Hi i trying to get > > htable.dump mytable > via jsonrpc request > > {jsonrpc: "2.0", > method: "htable.dump mytable"} >

[SR-Users] Should I ignore Route header in ACK?

2018-07-01 Thread Yuriy Gorlichenko
Hi I know that this is not question too much close to the kamialio users but mostly losed to the RFC specifiacations but this community looks like pretty much close to it that is why I want to ask this question here, that's why sorry and thanks for help in this question: I have a situation when

Re: [SR-Users] Should I ignore Route header in ACK?

2018-07-01 Thread Yuriy Gorlichenko
d correct. Nobody should be ignoring a > Route header. > > -- Alex > > On Sun, Jul 01, 2018 at 10:27:00AM +0300, Yuriy Gorlichenko wrote: > > > Hi > > I know that this is not question too much close to the kamialio users but > > mostly losed to the

Re: [SR-Users] Should I ignore Route header in ACK?

2018-07-01 Thread Yuriy Gorlichenko
> caller knows about it. If any of these things are not happening, that > could be the reason. > > On Sun, Jul 01, 2018 at 10:50:45AM +0300, Yuriy Gorlichenko wrote: > > > Alex thank you for the response > > So all that I found is correct and known looks like correct. >

Re: [SR-Users] Should I ignore Route header in ACK?

2018-07-01 Thread Yuriy Gorlichenko
Hm... Nice guess I will try to check it Thank you so much for clarify these things Alex! 2018-07-01 11:35 GMT+03:00 Alex Balashov : > On Sun, Jul 01, 2018 at 11:27:36AM +0300, Yuriy Gorlichenko wrote: > > > So FS in this case ignores single route header and sends request to the

Re: [SR-Users] Should I ignore Route header in ACK?

2018-07-01 Thread Yuriy Gorlichenko
things are not happening, that > could be the reason. > > On Sun, Jul 01, 2018 at 10:50:45AM +0300, Yuriy Gorlichenko wrote: > > > Alex thank you for the response > > So all that I found is correct and known looks like correct. > > Then last question confusing me - why som

Re: [SR-Users] Should I ignore Route header in ACK?

2018-07-01 Thread Yuriy Gorlichenko
viour. A B2BUA like Freeswitch can > do whatever it wants with the other, logically independent call leg. > > See RFC 3261 § 16 for more details. > > On Sun, Jul 01, 2018 at 10:50:45AM +0300, Yuriy Gorlichenko wrote: > > > Alex thank you for the response > > So all tha

Re: [SR-Users] Should I ignore Route header in ACK?

2018-07-02 Thread Yuriy Gorlichenko
GMT+03:00 Yuriy Gorlichenko : > Jut in update > In kamailio case all goes well > Kamailio sets to UAC Record-Route in the 200 reply and then UAC sends ACK > via Route sent... > > I totally confised... > In both examples from my provider 200 contains Route set but in case of >

Re: [SR-Users] Should I ignore Route header in ACK?

2018-07-02 Thread Yuriy Gorlichenko
der at the ACK that actually exists 2018-07-02 9:02 GMT+03:00 Alex Balashov : > On Mon, Jul 02, 2018 at 09:00:02AM +0300, Yuriy Gorlichenko wrote: > > > yep I understand that. > > I just see that in fact ACK soudl ignore Route header if it... Single? > > What? No. >

Re: [SR-Users] Should I ignore Route header in ACK?

2018-07-02 Thread Yuriy Gorlichenko
Yep this clear for me from the start. For me for now not clear question abot direct connect for now. 2018-07-02 10:00 GMT+03:00 Alex Balashov : > On Mon, Jul 02, 2018 at 09:59:12AM +0300, Yuriy Gorlichenko wrote: > > > That was my point also... > > But they sent me lint

Re: [SR-Users] Should I ignore Route header in ACK?

2018-07-02 Thread Yuriy Gorlichenko
. Not in the contact field offcource 2018-07-02 9:31 GMT+03:00 Yuriy Gorlichenko : > Sorry for noize from my side > I just cant fully understand dependency: > > I understand that actually route header shoud not be ingnored because it > is shows way for the in-dialog packet > That

Re: [SR-Users] Should I ignore Route header in ACK?

2018-07-02 Thread Yuriy Gorlichenko
... both Route heanders contains "lr" Provider based Route header jsut contains only *sip:ip:port;lr *when my testing kamaili regitrar contains *sip:ip:port;lr,ftag=fromtaghere* 2018-07-02 10:45 GMT+03:00 Yuriy Gorlichenko : > Anyway thank you so much for your responses > I really

Re: [SR-Users] Should I ignore Route header in ACK?

2018-07-02 Thread Yuriy Gorlichenko
myProxy should sent ACK to instead of using Contact in thi case In case direct conntect UAC -> Provider I still need to use Contact field as URI to send ACK to that explained on the 12.1.2 of rfc3261? 2018-07-02 9:46 GMT+03:00 Alex Balashov : > On Mon, Jul 02, 2018 at 09:31:02AM +0300,

Re: [SR-Users] Should I ignore Route header in ACK?

2018-07-02 Thread Yuriy Gorlichenko
Anyway thank you so much for your responses I really appreciate your time and your help here 2018-07-02 10:42 GMT+03:00 Yuriy Gorlichenko : > Yep this clear for me from the start. > > For me for now not clear question abot direct connect for now. > > 2018-07-02 10:00 GMT+03:0

Re: [SR-Users] Should I ignore Route header in ACK?

2018-07-02 Thread Yuriy Gorlichenko
yep I understand that. I just see that in fact ACK soudl ignore Route header if it... Single? 2018-07-02 1:45 GMT+03:00 Alex Balashov : > The "remote target" in this case refers to the request URI, > cosmetically. > > On Mon, Jul 02, 2018 at 12:10:26AM +0300, Y

Re: [SR-Users] Should I ignore Route header in ACK?

2018-07-01 Thread Yuriy Gorlichenko
Gorlichenko : > Hm... Nice guess > I will try to check it > Thank you so much for clarify these things Alex! > > 2018-07-01 11:35 GMT+03:00 Alex Balashov : > >> On Sun, Jul 01, 2018 at 11:27:36AM +0300, Yuriy Gorlichenko wrote: >> >> > So FS in this cas

Re: [SR-Users] Should I ignore Route header in ACK?

2018-07-01 Thread Yuriy Gorlichenko
>set, even if empty, overrides any pre-existing route set for future >requests in this dialog. The remote target MUST be set to the URI >from the Contact header field of the response. 2018-07-02 0:05 GMT+03:00 Alex Balashov : > On Mon, Jul 02, 2018 at 12:03:24AM

Re: [SR-Users] Working with users using external server

2018-05-02 Thread Yuriy Gorlichenko
Hi Look at the http_client or http_async_client modules depending on your needs 2018-05-01 11:09 GMT+03:00 Arik Halperin : > Hello, > > > > I have a project for which I need to get user data(username and password) > from an external server with REST APIs. > > > > What is the

Re: [SR-Users] Get value of a custom header param

2017-10-26 Thread Yuriy Gorlichenko
Hi! Maybe shoud to try @authorization[%s] - shuppoe it should get some entry matches to [%s] didn't checked but maybe it would help. 2017-10-26 18:39 GMT+03:00 Arsen : > Sorry, > hf_value2 instead of the hf_value > and I see nothing in the logs, any ideas? > >

Re: [SR-Users] Presence WARNING after publish and no NOTIFY

2017-10-23 Thread Yuriy Gorlichenko
o be done. > > Cheers, > Daniel > > On 17.10.17 17:49, Yuriy Gorlichenko wrote: > > Hi use 5.0.1 with presence > for TCP/UDP endpoints presence works PERFECT > but for WS socket presence i see next (small cleaned log here with all > described bellow https://pastebin.com/8a77ggj0

Re: [SR-Users] Presence WARNING after publish and no NOTIFY

2017-10-23 Thread Yuriy Gorlichenko
gt; On 23.10.17 08:46, Yuriy Gorlichenko wrote: > > Hi > Yes but i suppose the trouble in the > pidf+xml (websockets based endpoint uses it meanwhile hardphones uses > dialog-info+ xml > As i understood it not accepts dialog states. Only presentity. > > am i right? > If yes

Re: [SR-Users] How to avoid automatic string to int conversion?

2018-02-08 Thread Yuriy Gorlichenko
te here the part of the config where you use it? Cheers, Daniel On 08.02.18 04:08, Yuriy Gorlichenko wrote: Hi im using kamailio 5.1 with native cfg file and using json_get_value( method) form jsonso module When i get json string that contains strings and i need to have these strings kamailio tries to

[SR-Users] ACK Cseq incrases after 404 on uac_auth()

2018-07-16 Thread Yuriy Gorlichenko
Hi. I found some additional scenario when kamailio works incorrect with ACK Cseq after succesfull auth with uac_auth but unsuccesfull call: 1.Caller via kamailio as proxy (Cseq 1) 2.Kamailio resends call to provider with Auth method (Cseq 1) 3. Provider answers 401/407 (Cseq 1) 4. Kamailio

Re: [SR-Users] ACK Cseq incrases after 404 on uac_auth()

2018-07-16 Thread Yuriy Gorlichenko
8-07-16 14:42 GMT+03:00 Daniel-Constantin Mierla : > Hello, > > when you re-route to a new destination, can you try resetting the internal > flag with: > > msg_iflag_reset("UAC_AUTH"); > > Cheers, > Daniel > > On 16.07.18 10:31, Yuriy Gorlichenko wrote: &

Re: [SR-Users] ACK Cseq incrases after 404 on uac_auth()

2018-07-17 Thread Yuriy Gorlichenko
Yep that works thx! 2018-07-17 9:14 GMT+03:00 Daniel-Constantin Mierla : > Hello, > > one more thing, do: > > $dlg_var(cseq_diff) = $null; > > when you reset the internal flag for uac auth. > > Cheers, > Daniel > > On 16.07.18 21:13, Yuriy Gorlichenko wrote:

[SR-Users] Remove branch from branch list

2018-09-11 Thread Yuriy Gorlichenko
Hi I'm trying to manipulate with branches at the $branch variable. 8 actually need to remove unneeded branch if not passed some checks. For now I Just rewriting uri and dst_uri with some face address but it looks little bit dirty way. Is here any an other more clear way to do this?

Re: [SR-Users] Remove branch from branch list

2018-09-11 Thread Yuriy Gorlichenko
; Cheers, > Daniel > > On 11.09.18 15:16, Yuriy Gorlichenko wrote: > > Hi I'm trying to manipulate with branches at the $branch variable. 8 > actually need to remove unneeded branch if not passed some checks. > For now I Just rewriting uri and dst_uri with some face address b

[SR-Users] Possibility of kemi lua to keep lua global vars

2018-04-24 Thread Yuriy Gorlichenko
Hi For now as I see: every request that calls lua script reevables my global lua variables For example I trying to connect to DB via luasql driver and checking if connection already existis to avoid new connection I have function init() that calls in ksr_request_route() Inside i have ome

Re: [SR-Users] Strange auth_challenge behaivor on 407

2018-03-26 Thread Yuriy Gorlichenko
Hi thx. Yep. NAT handling was moved to branch. So rport called from this handler and never called fpr the 1-st invite. On Mon, Mar 26, 2018, 16:05 Aqs Younas <aqsyou...@gmail.com> wrote: > Make sure you are calling force_rport. > > Br, Aqs. > > > On 26 March 2018 at

[SR-Users] Strange auth_challenge behaivor on 407

2018-03-26 Thread Yuriy Gorlichenko
Hi I'm using version: kamailio 5.1.2 I have strange issue with auth_challenge kamialio works as NAT handler. When Register comes kamailio handles nat and save original ip:port at the received field in location table I found that when local port in contact is different than external port reply

Re: [SR-Users] Russian meddling in Kamailio project

2018-04-01 Thread Yuriy Gorlichenko
Товарищ подполковник! Алексей Балашов нас выдал 2018-04-01 7:53 GMT+03:00 Eric Viel : > Good one Made me really laugh > > Le dim. 1 avr. 2018 00:44, Alex Balashov a > écrit : > >> (Filed by the Geostrategic Open Source Alliance.) >> >>

Re: [SR-Users] Russian meddling in Kamailio project

2018-04-01 Thread Yuriy Gorlichenko
ups... wrong list 2018-04-01 13:39 GMT+03:00 Yuriy Gorlichenko <ovoshl...@gmail.com>: > Товарищ подполковник! Алексей Балашов нас выдал > > > 2018-04-01 7:53 GMT+03:00 Eric Viel <e...@viel-fr.com>: > >> Good one Made me really laugh >> >

[SR-Users] Forward() not handles Route headers

2018-11-29 Thread Yuriy Gorlichenko
We are building some stateless solution and found that in case of using forward() kamailio sends traffic only via URI or $du variable. It never removes itself from route headers. Is this is the truth? Or I need to add some other module to handle it? (rr already added)

Re: [SR-Users] Forward() not handles Route headers

2018-11-29 Thread Yuriy Gorlichenko
Sorry for disturbing. Found forgotten loose_route functions in my config On Thu, 29 Nov 2018, 15:45 Yuriy Gorlichenko, wrote: > We are building some stateless solution and found that in case of using > forward() kamailio sends traffic only via URI or $du variable. It never > removes it

[SR-Users] rtpengine in stateless kamailio

2019-01-02 Thread Yuriy Gorlichenko
Hi! Happy new year to all!!! Look like I am first in this year wit hthe questions in this list :-). I'm using stateless kamailio and RTPengnine to build some kind of the stateless cluster I found that kamailio keeps some data in the SHMEM in case of using RTPengine module even if it is not a

Re: [SR-Users] rtpengine in stateless kamailio

2019-01-02 Thread Yuriy Gorlichenko
not fully Is there some hidden function maybe to drop hast table o some ticky to do this? (we are using oru ow algorinthm that garanties to use same node in case of transaction) ср, 2 янв. 2019 г. в 16:45, Richard Fuchs : > On 02/01/2019 07.45, Yuriy Gorlichenko wrote: > > Hi! > &

Re: [SR-Users] rtpengine in stateless kamailio

2019-01-02 Thread Yuriy Gorlichenko
gt; The generate the summary via rpc: > > kamcmd corex.shm_summary > > Look in syslog for printed messages related to use of shared memory. > > Cheers, > Daniel > > > On Wed, Jan 2, 2019 at 2:45 PM Richard Fuchs wrote: > >> On 02/01/2019 07.45, Yuriy Gorlichenko wr

Re: [SR-Users] rtpengine in stateless kamailio

2019-01-02 Thread Yuriy Gorlichenko
, 2 янв. 2019 г. в 18:02, Richard Fuchs : > On 02/01/2019 09.32, Yuriy Gorlichenko wrote: > > Thx for the reply > > Yes > > Internal hash table diffenentelly stores info > > But even it case of putting timeout to 0 it still grows in synthetic > > tests. So looks l

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

2018-09-17 Thread Yuriy Gorlichenko
Hi I'm building some system with failover trunk but my providers requires to set their doamin in domain part of To Header so when I rewrite it at the my failure_route $td = FAILOVER_PROVIDER my To filed looks like To: what i tried: Move this change to BRANCH_ROUTE: here tried as $td = as

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

2018-09-17 Thread Yuriy Gorlichenko
No. Tried from branch route. пн, 17 сент. 2018 г., 14:25 Sergiu Pojoga : > From which route are you calling uac_replace_to(), failure_route? > > "This function can be used from REQUEST_ROUTE and from BRANCH_ROUTE" > > On Mon, Sep 17, 2018 at 6:05 AM Yuriy Gorlichen

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

2018-09-17 Thread Yuriy Gorlichenko
To header. for example: > subst('/^To:(.*)sip:[^@]*@[a-zA-Z0-9.]+(.*)$/t:\1$avp(sip_address)\2/ig') > With Regards.Mojtaba > > On Mon, Sep 17, 2018 at 1:19 PM Yuriy Gorlichenko > wrote: > > > > Hi > > I'm building some system with failover trunk > >

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

2018-09-17 Thread Yuriy Gorlichenko
kamialio and replace domain in To header. for example: > subst('/^To:(.*)sip:[^@]*@[a-zA-Z0-9.]+(.*)$/t:\1$avp(sip_address)\2/ig') > With Regards.Mojtaba > > On Mon, Sep 17, 2018 at 1:19 PM Yuriy Gorlichenko > wrote: > > > > Hi > > I'm building some system with failover

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

2018-09-17 Thread Yuriy Gorlichenko
all is default Maybe I need to set up something there? I jsut did not found anything about it at the docs пн, 17 сент. 2018 г. в 14:42, Sergiu Pojoga : > Ok, what are your UAC parameters? > > On Mon, Sep 17, 2018 at 7:34 AM Yuriy Gorlichenko > wrote: > >> No. Tried from b

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

2018-09-17 Thread Yuriy Gorlichenko
st regards, > > Federico > > On Mon, Sep 17, 2018 at 2:32 PM Yuriy Gorlichenko > wrote: > >> all is default >> Maybe I need to set up something there? >> I jsut did not found anything about it at the docs >> >> пн, 17 сент. 2018 г. в 14:42, Sergiu P

[SR-Users] How can I put updated sdp body to message in kemi

2019-02-26 Thread Yuriy Gorlichenko
Hi. On the original config to set body with New data I used set_body() function, exported from sdpops module. But for kamailio 5.1 I can't find something same in case of using kemi Is There is some additional way to do this? ___ Kamailio (SER) - Users

Re: [SR-Users] How can I put updated sdp body to message in kemi

2019-02-26 Thread Yuriy Gorlichenko
Sorry. Searched in a wrong module. Textops offcourse... Question closed On Tue, 26 Feb 2019, 12:10 Yuriy Gorlichenko, wrote: > Hi. On the original config to set body with New data I used > set_body() function, exported from sdpops module. > But for kamailio 5.1 I can't find somet

Re: [SR-Users] Kamailio modules that can be used in Lua

2019-02-08 Thread Yuriy Gorlichenko
Possibly you looking into the old Version. Kamailio since 5.0 has kemi. Since 5.1 it support 99%of modules On Fri, 8 Feb 2019, 19:37 Leonid Fainshtein, wrote: > Hello, > I am checking a possibility to replace the traditional cfg script with a > Lua script. > In the app_lua module documentation

Re: [SR-Users] About STIR/SHAKEN - Caller Identity

2019-08-22 Thread Yuriy Gorlichenko
Hello, Daniel. You disscussed it with Oleg Belousov at Kamailio World 2019. ( I added him in cc as he Just subscribed on list and did not saw this thread) I was a part of his team Who realized this. Yes, we've implemented STIR/SHAKEN platform for mobile operator, using Lua, which interrogates

Re: [SR-Users] app_lua: invalid Lua environment attributes or parameters

2019-09-16 Thread Yuriy Gorlichenko
I found issue: Called KSR.log earlier than it was initiated. Moved part of code previously used in cfgengine "lua" to lua_run(). пн, 16 сент. 2019 г. в 15:25, Yuriy Gorlichenko : > Sorry Just a mistake. Offcourse it is path to kamailio.cfg file which > contains path to main

Re: [SR-Users] app_lua: invalid Lua environment attributes or parameters

2019-09-18 Thread Yuriy Gorlichenko
ted to see Lua error like "KSR not defined" or etc. But this gave me different error that at the start of the topic and that confused me :-) If need more clrification: I will be able to do it later on. Just let me know. On Wed, 18 Sep 2019, 08:44 Daniel-Constantin Mierla, wrote: >

[SR-Users] app_lua: invalid Lua environment attributes or parameters

2019-09-15 Thread Yuriy Gorlichenko
Hi! Im using kamailio 5.1.8 with app_lua and getting this message during startup of kamailio. Looks like I forgot to add something at the module setup, but cant figure out what is wrong. My setup of app_lua is: modparam("app_lua", "load", "/etc/kamailio/extended/main.lua")

Re: [SR-Users] app_lua: invalid Lua environment attributes or parameters

2019-09-16 Thread Yuriy Gorlichenko
> mistake, because the config path provided with -f should still be to the > kamailio.cfg where you set global parameters, load modules and set their > parameters? > > Cheers, > Daniel > > On Mon, Sep 16, 2019 at 7:23 AM Yuriy Gorlichenko > wrote: > >> Hi! Im usi

Re: [SR-Users] Re-use TCP connections on different transactions

2019-10-31 Thread Yuriy Gorlichenko
You have to use tcp_accept_aliases=yes But this is not enough as this param will be triggered by function force_tcp_alias() you need to use in the route for request ( for example record_route or subroutes) It will add param paramname= (I Don't remember specific name) to Via header that will be

Re: [SR-Users] How to reduce re-INVITE time in Kamailio

2019-12-17 Thread Yuriy Gorlichenko
Hi. It is no a kamailio question but sip question itself. You can manage how often te invite will be by using session-timers. It will help you to setup time range between reInvite ir whatever message you will use as keepalive On Tue, 17 Dec 2019, 19:34 Anuran Barman, wrote: > Hi, I am using

Re: [SR-Users] How to reduce re-INVITE time in Kamailio

2019-12-17 Thread Yuriy Gorlichenko
ically will be greatly appreciated. > > On Wed, 18 Dec 2019 at 12:18 AM, Yuriy Gorlichenko > wrote: > >> Session-Expires header ( Just remembered right name) will help you >> See rfc 4028 >> https://tools.ietf.org/html/rfc4028#page-6 >> >> On Tue, 17 Dec 201

Re: [SR-Users] How to reduce re-INVITE time in Kamailio

2019-12-17 Thread Yuriy Gorlichenko
Session-Expires header ( Just remembered right name) will help you See rfc 4028 https://tools.ietf.org/html/rfc4028#page-6 On Tue, 17 Dec 2019, 19:44 Yuriy Gorlichenko, wrote: > Hi. It is no a kamailio question but sip question itself. You can manage > how often te invite will be by

Re: [SR-Users] catching tls errors

2019-10-16 Thread Yuriy Gorlichenko
Looks no, because connection must be established for handling it in the config file. This error fired by ssl library during Negotiation process. But you can try tcpdump, at least you will see Who tries to established connection On Tue, 15 Oct 2019, 15:51 Juha Heinanen, wrote: > Sometimes I see

Re: [SR-Users] catching tls errors

2019-10-16 Thread Yuriy Gorlichenko
small period of time from the same ip. On Wed, 16 Oct 2019, 08:55 Juha Heinanen, wrote: > Yuriy Gorlichenko writes: > > > Looks no, because connection must be established for handling it in the > > config file. This error fired by ssl library during Negotiation process. >

Re: [SR-Users] Access to CANCEL messages sent during parallel forking

2020-02-25 Thread Yuriy Gorlichenko
You can try event_route[tm:local-request] for this. On Tue, 25 Feb 2020, 15:36 Marco Capetta, wrote: > Hi All, > > I have a question regarding call forking and how to access failed > branches: the ones for which kamailio sends out the CANCEL because on > another one a 200OK was received. > This

Re: [SR-Users] Access to CANCEL messages sent during parallel forking

2020-02-26 Thread Yuriy Gorlichenko
> are there. > > Do you have any other suggestion? > > Thanks > Regards > Marco > > On 2/25/20 5:50 PM, Yuriy Gorlichenko wrote: > > You can try event_route[tm:local-request] for this. > > On Tue, 25 Feb 2020, 15:36 Marco Capetta, wrote: > >> Hi Al

Re: [SR-Users] Kamailio - Force UAC to re register

2020-03-02 Thread Yuriy Gorlichenko
I see here scenario that probably will help you: You can use asterisk real time db to share address of record between nodes. In that case any asterisk will be able to know Where to send request if some one calls to client. I coming registration you will need to route based on your dispatcher list

  1   2   >