Re: [SR-Users] access to tls X509v3 Subject Alternative Name

2016-07-12 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > The right format to try for a variable with index would have been > $(tls_my_san_hostname[2]) -- have you tried that, too? $var(san2) = $(tls_my_san_hostname[2]); xlog("L_INFO", "*** $var(san2)\n"); produces: Jul 13 09:51:44 sars sip-pr

Re: [SR-Users] shm_malloc

2016-07-12 Thread Daniel-Constantin Mierla
Hello, Can you be more explicit about what do you expect? Daniel On 13/07/16 07:27, Prakash wrote: > > Hello Daniel, > > > > Many thanks for the response. > > Could you please provide me the behind scenes of shm_malloc()?. > > It will be very helpful for me to segregate without any flaws. > >

Re: [SR-Users] access to tls X509v3 Subject Alternative Name

2016-07-12 Thread Daniel-Constantin Mierla
On 12/07/16 20:03, Juha Heinanen wrote: > Daniel-Constantin Mierla writes: > >> haven't tested nor looked at source code -- have you tried to see if it >> works with index (e.g, $tls_my_san_hostname[2])? > $var(san) = $tls_my_san_hostname[2]; > > results in $var(san) == 0. The right format to t

Re: [SR-Users] shm_malloc

2016-07-12 Thread Prakash
Hello Daniel, Many thanks for the response. Could you please provide me the behind scenes of shm_malloc()?. It will be very helpful for me to segregate without any flaws. Thanks, Prakash From: sr-users [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Daniel-Constantin

Re: [SR-Users] Determining if request is from a local domain

2016-07-12 Thread Shane Harrison
Hi all, Solved! As is often the case, after working all morning on the problem, after posting I discovered my error. I noticed that I hadn't included in my post the "alias=" command. It was indeed in my script but I had used aws-rcsstg.voip.systems instead of aws-rcsstg.vvoip.systems ! I d

[SR-Users] Determining if request is from a local domain

2016-07-12 Thread Shane Harrison
Hi all, From previous posts my understanding is that RURI's are matched against reverse DNS lookup of listen addresses and aliases set via the "alias=" parameter in the config file (assuming the domain module isn't being used). However I am having difficulty in getting this to work. From looki

Re: [SR-Users] access to tls X509v3 Subject Alternative Name

2016-07-12 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > haven't tested nor looked at source code -- have you tried to see if it > works with index (e.g, $tls_my_san_hostname[2])? $var(san) = $tls_my_san_hostname[2]; results in $var(san) == 0. -- Juha ___ SIP Express Rou

[SR-Users] Kamailio know which Interface Packet would route out

2016-07-12 Thread SamyGo
Hi, Question: Is there a function in kamailio to get the interface/listen IP kamailio would use to route a packet out for a domain / ip ? Example: $avp(interface_ip) = find_interface_for_request("192.168.12.123"); And it gives me the Kamailio's Listen address that would be used for sending call

Re: [SR-Users] Detect 200 OK for ReINVITE

2016-07-12 Thread Daniel-Constantin Mierla
To add my 2c, if the performance is a **really big** concern, the solution with transaction flags as mentioned by Alex is one of the best. In request route test for to-tag and then setflag(x). Then in onreply_route[...] or failure_route[...] test if isflagset(x). The other suggestions are also ve

Re: [SR-Users] Detect 200 OK for ReINVITE

2016-07-12 Thread Grant Bagdasarian
Hi Olle, Yes, I knew that :D. I went with the method Alex suggested. In route[WITHINDLG] inside the loose_route block: if(is_method("INVITE")) { $avp(s:is_reinvite) = "1"; } In onreply_ro

Re: [SR-Users] Detect 200 OK for ReINVITE

2016-07-12 Thread Olle E. Johansson
> On 12 Jul 2016, at 15:18, Grant Bagdasarian wrote: > > Hi, > > Is it possible in Kamailio, or SIP in general, to detect if a 200 OK is for a > ReINVITE? > Not from the 200 OK, but the matching INVITE you can check if there’s a to-tag in Kamailio and SIP. In Kamailio, if you are stateful

Re: [SR-Users] Detect 200 OK for ReINVITE

2016-07-12 Thread Grant Bagdasarian
Hi Alex, Here a sample config (not yet tested). Does this make sense and will this work? route[WITHINDLG] { if (!has_totag()) { return; } # Sequential request within a dialog should take the path determined by record-routing if (loose_rou

Re: [SR-Users] Detect 200 OK for ReINVITE

2016-07-12 Thread Alex Balashov
Don't know about detect, but you could set a transaction-persistent flag or AVP when processing the reinvite request. This will also be testable in the onreply_route. -- Alex -- Principal, Evariste Systems LLC (www.evaristesys.com) Sent from my Google Nexus.

[SR-Users] Detect 200 OK for ReINVITE

2016-07-12 Thread Grant Bagdasarian
Hi, Is it possible in Kamailio, or SIP in general, to detect if a 200 OK is for a ReINVITE? Regards, Grant ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/ma

Re: [SR-Users] Video conferencing with Kamailio

2016-07-12 Thread Fred Posner
On 07/11/2016 11:40 AM, Jay Li wrote: > Fred, > > Thanks a lot your detailed explanation. About the media server addition > to Kamailio, do you have any suggestions I should look into besides > Jitsi and FreeSWITCH? Thanks. > > Regards, > Jay You could look into Asterisk as well, but I've not us

Re: [SR-Users] shm_malloc

2016-07-12 Thread Daniel-Constantin Mierla
Hello, I don't expect to be very hard to extract the shm management code from kamailio. It is inside the subfolder mem/ . Then, there should be some dependecies that you need to get out from the core, coming in my mind is locking (mutexes). Maybe atomic operations (not remembering by heart if som

Re: [SR-Users] Video conferencing with Kamailio

2016-07-12 Thread Jay Li
Fred, Thanks a lot your detailed explanation. About the media server addition to Kamailio, do you have any suggestions I should look into besides Jitsi and FreeSWITCH? Thanks. Regards,Jay On Friday, July 8, 2016 7:32 AM, Fred Posner wrote: On 07/08/2016 12:36 AM, Jay Li wrote: > Dear A

Re: [SR-Users] getting the local 408 response

2016-07-12 Thread Jayesh Nambiar
Hi, I didnt cross my mind that I can use t_on_failure before t_suspend. I'll try that right away. Used to writing that before t_relay every time. Thanks, - Jayesh On Tue, Jul 12, 2016 at 4:50 PM Sebastian Damm wrote: > Hello, > > On Tue, Jul 12, 2016 at 12:55 PM, Daniel-Constantin Mierla > wr

[SR-Users] shm_malloc

2016-07-12 Thread Prakash
Hello, Is it possible to take out shared memory code from kamailio? if so ,Will it work without any crash? ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/

Re: [SR-Users] destination ip address

2016-07-12 Thread Péter Barabás
Okay, thanks. Péter From: sr-users [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Daniel-Constantin Mierla Sent: Monday, July 11, 2016 1:14 PM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] destination ip address Hello, if you want to get the ip where the messag

Re: [SR-Users] getting the local 408 response

2016-07-12 Thread Sebastian Damm
Hello, On Tue, Jul 12, 2016 at 12:55 PM, Daniel-Constantin Mierla wrote: > if you set t_on_failure() before t_suspend(), then you should get > failure_route executed when the transaction timed out in suspended state. That's exactly how it works. We set up something like this last week. route{

Re: [SR-Users] getting the local 408 response

2016-07-12 Thread Daniel-Constantin Mierla
Hello, if you set t_on_failure() before t_suspend(), then you should get failure_route executed when the transaction timed out in suspended state. Or are you looking for something else? Cheers, Daniel On 12/07/16 11:38, Jayesh Nambiar wrote: > Hello, > So the question fundamentally is, if I t_

Re: [SR-Users] getting the local 408 response

2016-07-12 Thread Jayesh Nambiar
Hello, So the question fundamentally is, if I t_suspend a transaction and kamailio sends a 408 to that leg because of the fr_timer configured, would I have access to that response? Thanks again. - Jayesh On Mon, Jul 11, 2016 at 6:26 PM Jayesh Nambiar wrote: > Hi Carsten, > Thanks for respondin

[SR-Users] Rate limiting

2016-07-12 Thread NITESH BANSAL
Hello, I plan to add some rate limiting in the Kamailio. I'm already using Pike to rate limit based on the source IP. But in this case, i want to do the rate limiting per customer(regardless of the source IP), I can identify the customer based on a custom header in the INVITE, idea is to limi