Re: [SR-Users] event for new tcp connection from client

2016-12-13 Thread Andy
found that it is modparam("tls", "connection_timeout", 60) for tls -- View this message in context: http://sip-router.1086192.n5.nabble.com/event-for-new-tcp-connection-from-client-tp154075p154114.html Sent from the Users mailing list archive at Nabble.com. ___

Re: [SR-Users] event for new tcp connection from client

2016-12-13 Thread Andy
tcp_connection_lifetime works with tcp connection (while using tcp port), not when using tls port -- View this message in context: http://sip-router.1086192.n5.nabble.com/event-for-new-tcp-connection-from-client-tp154075p154113.html Sent from the Users mailing list archive at Nabble.com.

[SR-Users] Multi-Domain dispatcher

2016-12-13 Thread Satish Patel
We have currently dispatcher running for single domain, but in future we have more domain coming so i want to do multi domain dispatching for example dispatcher redirect request for foo.com to foo.registar and bar.com to bar.registar SIP server currently we have following code in dispatcher logic.

Re: [SR-Users] regular expression question

2016-12-13 Thread Satish Patel
It works! but it doesn't work when i tried to use with wildcard (*) like if(!($ua =~ "*Foo")){ On Sat, Dec 10, 2016 at 1:24 AM, Brandon Armstead wrote: > if(!($ua =~ "")){ > On Fri, Dec 9, 2016 at 7:04 AM Satish Patel wrote: >> >> I am trying to block SIP scanner so i am trying to use following

Re: [SR-Users] event for new tcp connection from client

2016-12-13 Thread Andy
Hi Camille, thanks for the suggestion, tcp_connection_lifetime works on idle connections, but what if the client sent crlf, I want to kill the connections which have not sent REGISTER request yet. also I did a telnet to kamailio on port 5060, with tcp_connection_lifetime=5, the connection is neve

Re: [SR-Users] event for new tcp connection from client

2016-12-13 Thread camille.oudot
Le Tue, 13 Dec 2016 07:38:06 -0700, Andy a écrit : > I want to track when clients connect to SIP Proxy via TCP, > and do not send Register for certain period of time and finally > cleanup this tcp connection Hi Andy, to achieve this, I'm doing the following: set a short default TCP connection

Re: [SR-Users] Kamailio TM - t_set_fr

2016-12-13 Thread José Seabra
Hi Daniel, It only works as expected when i set the first parameter in function t_set_fr greater than 0. I don't know if it helps to understand the issue but I have a kamailio acting as load balancer in front of my 2 "proxy/register" servers (also built in kamailio), this LB is replying always wit

Re: [SR-Users] Forking with 404 replies

2016-12-13 Thread José Seabra
Hi all, Forget my last email. This happens because the phone is sending the 404 in the wrong format. Thank you and sorry for my last email. Regards José 2016-12-13 14:40 GMT+00:00 José Seabra : > Hello there, > I have a Kamailio server acting as registrar server and when the > subscriber has mo

[SR-Users] Forking with 404 replies

2016-12-13 Thread José Seabra
Hello there, I have a Kamailio server acting as registrar server and when the subscriber has more than 1 AOR, kamailio sends an INVITES to each AOR, if one of them replies 404 what should be the kamailio behavior: 1. should Kamailio reply with an ACK and not pass the 404 to UAC? 2. should

Re: [SR-Users] event for new tcp connection from client

2016-12-13 Thread Andy
Hi Daniel, I want to track when clients connect to SIP Proxy via TCP, and do not send Register for certain period of time and finally cleanup this tcp connection -- View this message in context: http://sip-router.1086192.n5.nabble.com/event-for-new-tcp-connection-from-client-tp154075p154105

Re: [SR-Users] Accessing SDP changes

2016-12-13 Thread Pete Kelly
It was in a branch route. Schoolboy error, apologies! Thanks Pete On 13 December 2016 at 12:52, Daniel-Constantin Mierla wrote: > You have to execute the function in request_route {} (or sub-routes > executed from there) -- don't executed it inside branch_route or > failure_route (or sub-routes

Re: [SR-Users] event for new tcp connection from client

2016-12-13 Thread Daniel-Constantin Mierla
Is this a question or a wish? If it is a question, you have to detail what you need to achieve and maybe there are alternatives. If it is a request for a new feature, add it to the bug tracker in the github project. Cheers, Daniel On 13/12/2016 00:16, Andy wrote: > similar to tcp closed, can thi

Re: [SR-Users] Accessing SDP changes

2016-12-13 Thread Daniel-Constantin Mierla
You have to execute the function in request_route {} (or sub-routes executed from there) -- don't executed it inside branch_route or failure_route (or sub-routes executed from there). Cheers, Daniel On 13/12/2016 13:16, Pete Kelly wrote: > Spoke too soon there - it works for initial requests, bu

Re: [SR-Users] Rewrite From domain

2016-12-13 Thread Daniel-Constantin Mierla
Hello, as alternative to assigning to $fd, you can use uac_replace_from() exported by uac module. The best place to do updates to headers for outgoing traffic is in a branch_route block. Cheers, Daniel On 13/12/2016 12:05, Gonzalo Gasca Meza wrote: > > Hi all, > > I'm using Kamailio to forward

Re: [SR-Users] VERY IMPORTANT: deciding when to remove the MI code

2016-12-13 Thread Daniel-Constantin Mierla
Hello, comparing the list of rpc vs mi commands, also taking in consideration the interest and expressed feedback from the community, there is no reason to keep MI code longer. Also, during the last days it was signaled that mi_xmlrpc code will need an upgrade for next versions of compilers and xm

Re: [SR-Users] Accessing SDP changes

2016-12-13 Thread Pete Kelly
Spoke too soon there - it works for initial requests, but then subsequently does not work for invites. The function complains it is not being called from a request route. Any ideas? On 12 December 2016 at 14:36, Pete Kelly wrote: > Awesome, this looks to have done the trick nicely - thank you.

[SR-Users] Rewrite From domain

2016-12-13 Thread Gonzalo Gasca Meza
Hi all, I'm using Kamailio to forward calls between 2 Service Providers and I need to rewrite the From header "domain" URI. Example: From: "+188" to From: "+188" http://sip.sp2.com>*> *Call flow:* Phone A --- > SP1 ---> sip > (kamailio) SP2 --(LOCATION)-> Phone B When Ph