Re: [SR-Users] Use AVP as regex in avp_subst

2010-07-08 Thread Daniel-Constantin Mierla
Hello, On 7/7/10 11:06 PM, Uriel Rozenbaum wrote: Hey guys, I'm using Kamailio 1.5.3-notls and need to apply some re operation to an AVP. The problem I have is that my re expression is held in an AVP, so the parser is not recognizing it :( Would it be very hard to change that behavior? Any

Re: [SR-Users] Issue building sip-router (kamailio flavour)

2010-07-08 Thread Santiago Gimeno
Hi, I've been digging into the code and I think this error happens when TM_HASH_STATS is defined which happens when mode=debug. This makes that the code in modules_k/tmx/t_mi.c calls get_tm_table function that is defined in modules/tm/h_table.h as: #define get_tm_table() (_tm_table) where

Re: [SR-Users] How to force snd_port?

2010-07-08 Thread Alex Balashov
On 07/08/2010 06:18 AM, Victor Pascual Avila wrote: How could I force my sip-router to send from a given port number? Given that sip-router listens on the address of the interface (IP:port) that you want to send from, which is a requirement, you can use force_send_socket():

Re: [SR-Users] Issue building sip-router (kamailio flavour)

2010-07-08 Thread Daniel-Constantin Mierla
Hello, thanks for troubleshooting further. I just committed the fix on GIT, try to see if now is working ok, then I will backport in 3.0. Cheers, Daniel On 7/8/10 11:45 AM, Santiago Gimeno wrote: Hi, I've been digging into the code and I think this error happens when TM_HASH_STATS is

Re: [SR-Users] Issue building sip-router (kamailio flavour)

2010-07-08 Thread marius zbihlei
Santiago Gimeno wrote: Hi, I've been digging into the code and I think this error happens when TM_HASH_STATS is defined which happens when mode=debug. This makes that the code in modules_k/tmx/t_mi.c calls get_tm_table function that is defined in modules/tm/h_table.h as: #define

Re: [SR-Users] How to force snd_port?

2010-07-08 Thread Victor Pascual Avila
Thanks Alex On Thu, Jul 8, 2010 at 12:26 PM, Alex Balashov abalas...@evaristesys.com wrote: On 07/08/2010 06:18 AM, Victor Pascual Avila wrote: How could I force my sip-router to send from a given port number? Given that sip-router listens on the address of the interface (IP:port) that you

Re: [SR-Users] How to force snd_port?

2010-07-08 Thread Iñaki Baz Castillo
2010/7/8 Alex Balashov abalas...@evaristesys.com: On 07/08/2010 06:18 AM, Victor Pascual Avila wrote: How could I force my sip-router to send from a given port number? Given that sip-router listens on the address of the interface (IP:port) that you want to send from, which is a requirement,

Re: [SR-Users] Issue building sip-router (kamailio flavour)

2010-07-08 Thread Santiago Gimeno
Hello, 2010/7/8 Daniel-Constantin Mierla mico...@gmail.com Hello, thanks for troubleshooting further. I just committed the fix on GIT, try to see if now is working ok, then I will backport in 3.0. Cheers, Daniel It's working ok. Thanks! Best regards, Santi

Re: [SR-Users] Differentiation between ACK INVITE and ACK CANCEL

2010-07-08 Thread Klaus Darilion
Am 07.07.2010 19:30, schrieb inge: Yes, why not, but in a few moment ;) Does SER 3.0 released ? In the siprouter project ? There is no ser/sip-router 3.0 release. You have to checkout the sip-router 3.0 branch from git if you want ser flavor of sip-router. If you do not care about the

Re: [SR-Users] How to force snd_port?

2010-07-08 Thread Daniel-Constantin Mierla
On 7/8/10 12:57 PM, Iñaki Baz Castillo wrote: 2010/7/8 Alex Balashovabalas...@evaristesys.com: On 07/08/2010 06:18 AM, Victor Pascual Avila wrote: How could I force my sip-router to send from a given port number? Given that sip-router listens on the address of the

Re: [SR-Users] Kamailio, spiral with TM

2010-07-08 Thread Klaus Darilion
Am 08.07.2010 00:53, schrieb David: Hey, I do not do anything IP level forwarding. All my forwarding is done using Kamailio. It looks like what I am doing is called hairpin routing. I think the correct term is spiral - at least the RFC uses this term. How do you forward the request -

Re: [SR-Users] How to force snd_port?

2010-07-08 Thread Alex Balashov
Even if it didn't, just add your own RR header. -- Alex Balashov - Principal Evariste Systems LLC 1170 Peachtree Street 12th Floor, Suite 1200 Atlanta, GA 30309 Tel: +1-678-954-0670 Fax: +1-404-961-1892 Web: http://www.evaristesys.com/ On Jul 8, 2010, at 7:33 AM, Iñaki Baz Castillo

Re: [SR-Users] Kamailio integration - Registration issue

2010-07-08 Thread Klaus Darilion
Am 06.07.2010 20:48, schrieb Lucas Alvarez: Hi, I new with kamailio, I've been able to integrate kamailio 3.02 with asterisk 1.6. The only issue I'm having is if I have to restart asterisk( for some config update) I loose all the sip registration in asterisk, is there any way of fixing this?

Re: [SR-Users] Use AVP as regex in avp_subst

2010-07-08 Thread Alex Balashov
There may be an easier and more elegant and more performant way to accomplish what you are trying to accomplish, but we cannot know without seeing the pattern and the regex. :) -- Alex Balashov - Principal Evariste Systems LLC 1170 Peachtree Street 12th Floor, Suite 1200 Atlanta, GA 30309

Re: [SR-Users] Differentiation between ACK INVITE and ACK CANCEL

2010-07-08 Thread inge
Very clear ! thanks. Le jeudi 08 juillet 2010 à 13:00 +0200, Klaus Darilion a écrit : Am 07.07.2010 19:30, schrieb inge: Yes, why not, but in a few moment ;) Does SER 3.0 released ? In the siprouter project ? There is no ser/sip-router 3.0 release. You have to checkout the

[SR-Users] Kamailio and NAPTR lookup with TLS

2010-07-08 Thread Matteo Campana
Hi all, I'm using kamailio 1.5 with TLS module. I need to make ENUM query and get NAPTR record. From NAPTR lookup, I'd like to relay my SIP Invite with tls protocol. How can I tell Kamailio to use TLS protocol ( instead of udp) after NAPTR lookup ? I've try to set : dns_tls_pref=1

Re: [SR-Users] Kamailio and NAPTR lookup with TLS

2010-07-08 Thread Klaus Darilion
Am 08.07.2010 18:10, schrieb Daniel-Constantin Mierla: Hello, On 7/8/10 5:59 PM, Matteo Campana wrote: Hi all, I'm using kamailio 1.5 with TLS module. I need to make ENUM query and get NAPTR record. From NAPTR lookup, I'd like to relay my SIP Invite with tls protocol. How can I tell

[SR-Users] Fwd: Re: Fwd: Re: Kamailio and NAPTR lookup with TLS

2010-07-08 Thread Matteo Campana
Hi klaus, Suppose I can't access to NAPTR settings. I need to manage SIP URI, so , If I right understand, the only way to use TLS protocol in kamailio 1.5 is to append ;transport=tls in R-URI before relay. In other words I need to rewrite R-URI: $ru = $ru + ;transport=tls ; # and the t_relay

Re: [SR-Users] Use AVP as regex in avp_subst

2010-07-08 Thread Uriel Rozenbaum
Hi Alex, :) I was just trying to keep it simple, but let me explain a little bit. I'm using a Proxy+RTPProxy in mhomed mode. I have a public and a private IP on that Proxy and route calls in and out of a network. As I have many carriers that want different ANI and DNIS patterns I have to deal

Re: [SR-Users] Use AVP as regex in avp_subst

2010-07-08 Thread Alex Balashov
Maybe the database can apply the regex and give you the transformed result? Databases are quite capable these days. I do this in PostgreSQL all the time. On 07/08/2010 01:53 PM, Uriel Rozenbaum wrote: Hi Alex, :) I was just trying to keep it simple, but let me explain a little bit. I'm

Re: [SR-Users] Kamailio and NAPTR lookup with TLS

2010-07-08 Thread Henning Westerholt
How can I tell Kamailio to use TLS protocol ( instead of udp) after NAPTR lookup ? Hello, you can see it by doing some traces, e.g. by ngrep, or increase the debugging level and then check the logs. $du = sip:__ip_or_host__;transport=tls; t_relay(); IIRC we do have NAPTR support in