[SR-Users] Change transport=tls within Contact Header

2011-02-11 Thread Bernhard Suttner
Hi, is there a function to change the transport field within the Contact Header? t_relay does relay it to the UDP port of the PBX but the transport within the Contact Header is still set to TLS. Later, the PBX does try to establish a TLS connection. The idea is now, that kamailio does set the

Re: [SR-Users] NAT, TLS and location table

2011-02-11 Thread Bernhard Suttner
:30 An: Bernhard Suttner Cc: sr-users@lists.sip-router.org Betreff: Re: [SR-Users] NAT, TLS and location table Am 11.02.2011 12:15, schrieb Bernhard Suttner: > Hi, > > I am using TLS and recognize the following problem: > > The TLS connection are build up successfully

[SR-Users] NAT, TLS and location table

2011-02-11 Thread Bernhard Suttner
Hi, I am using TLS and recognize the following problem: The TLS connection are build up successfully but the natping (natping_interval = 10) does not send small dummy packets to the phones. The phones are behind a firewall with NAT. Registered phones with NAT but UDP do work correctly. They ar

Re: [SR-Users] TLS Support

2011-02-11 Thread Bernhard Suttner
Thanks a lot :-) -Ursprüngliche Nachricht- Von: Klaus Darilion [mailto:klaus.mailingli...@pernau.at] Gesendet: Donnerstag, 10. Februar 2011 19:19 An: Bernhard Suttner Cc: sr-users@lists.sip-router.org Betreff: Re: [SR-Users] TLS Support Bernhard Suttner wrote: > Hi, > > ho

[SR-Users] TLS Support

2011-02-10 Thread Bernhard Suttner
Hi, how could I compile the TLS module and only the TLS module - not the other sources. BTW: The documentation within the http://www.kamailio.org/docs/tls.html is not up-to-date. Thanks in advance. Best regards, Bernhard ___ SIP Express Router (S

Re: [SR-Users] Redundancy between 2 Kamailio servers

2011-02-02 Thread Bernhard Suttner
Would be possible. Have a look at DRBD! Von: sr-users-boun...@lists.sip-router.org [mailto:sr-users-boun...@lists.sip-router.org] Im Auftrag von Danny Dias Gesendet: Mittwoch, 2. Februar 2011 11:20 An: kamailio Betreff: Re: [SR-Users] Redundancy between 2 Kamailio servers Hello, I was thi

Re: [SR-Users] t_local_replied() ?

2011-02-01 Thread Bernhard Suttner
argh. I just mixed up the true/false return values in the eMail but you still got it :-) Thanks a lot! - Original Message - From: Daniel-Constantin Mierla [mailto:mico...@gmail.com] To: Bernhard Suttner [mailto:bernhard.sutt...@winet.ch] Cc: sr-users@lists.sip-router.org Sent: Tue, 01

Re: [SR-Users] t_local_replied() ?

2011-02-01 Thread Bernhard Suttner
] To: Bernhard Suttner [mailto:bernhard.sutt...@winet.ch] Cc: sr-users@lists.sip-router.org Sent: Tue, 01 Feb 2011 13:30:54 +0100 Subject: Re: [SR-Users] t_local_replied() ? > Hello, > > On 2/1/11 12:08 PM, Bernhard Suttner wrote: > > Hi, > > > > I am using the dispatch

[SR-Users] t_local_replied() ?

2011-02-01 Thread Bernhard Suttner
Hi, I am using the dispatcher module and want to check within the failure_route if the 408 was internally generated from kamailio or it was received from the dispatcher gateway. There was previously a function called t_local_replied() in the TM-module but I could not find this function in the

[SR-Users] xlogl and pseudo variables

2011-01-29 Thread Bernhard Suttner
Hi, I am using xlogl for debugging and logging the most important actions within the kamailio script. Does it take much resources if I use the pseudo variables with the xlogl statements? Example: xlogl("L_NOTICE", "Route $rm to destination! F=$fu T=$tu IP=$si \n"); I´m planning to do this in a

Re: [SR-Users] onreply_route and failure_route

2011-01-29 Thread Bernhard Suttner
...@evaristesys.com] To: Bernhard Suttner [mailto:bernhard.sutt...@winet.ch] Cc: sr-users@lists.sip-router.org [mailto:sr-users@lists.sip-router.org] Sent: Sat, 29 Jan 2011 21:37:34 +0100 Subject: Re: [SR-Users] onreply_route and failure_route > Yes. > > -- > Alex Balashov - Principal > Evari

[SR-Users] onreply_route and failure_route

2011-01-29 Thread Bernhard Suttner
Hi, is it possible to call a route within onreply_ and failure_route? I mean, within the main route { ... } its possible to call the route[NAT]. Is this also possible for this "special" routes? If this is possible, is it also allowed to call a route which will normally called from the main rout

Re: [SR-Users] [sr-dev] planning release of v3.1.2

2011-01-29 Thread Bernhard Suttner
Hi, whats about: http://sip-router.org/tracker/index.php?do=details&task_id=108 I think that some users are trying to register to an asterisk system. Or does somebody have a solution for that? A new release would be nice!!! Thanks in advance. Best regards, Bernhard - Original Message -

Re: [SR-Users] Redundancy between 2 Kamailio servers

2011-01-27 Thread Bernhard Suttner
Try to set this option to bind to an non existing ip: net.ipv4.ip_nonlocal_bind = 1 does work for SSH and thefore should also work with kamailio -Ursprüngliche Nachricht- Von: sr-users-boun...@lists.sip-router.org [mailto:sr-users-boun...@lists.sip-router.org] Im Auftrag von Klaus Dari

Re: [SR-Users] fix_nated_sdp()

2011-01-25 Thread Bernhard Suttner
() in combination with nat_uac_test (RFC1918 private address in SDP). Thanks a lot for this discussion. Best Regards, Bernhard - Original Message - From: Ovidiu Sas [mailto:o...@voipembedded.com] To: Bernhard Suttner [mailto:bernhard.sutt...@winet.ch] Cc: Carsten Bock [mailto:li

Re: [SR-Users] fix_nated_sdp()

2011-01-25 Thread Bernhard Suttner
richt- Von: kaiserbo...@googlemail.com [mailto:kaiserbo...@googlemail.com] Im Auftrag von Carsten Bock Gesendet: Dienstag, 25. Januar 2011 18:56 An: Bernhard Suttner Cc: sr-users@lists.sip-router.org Betreff: Re: [SR-Users] fix_nated_sdp() Hi Bernhard, have you checked the SDP which is goin

Re: [SR-Users] fix_nated_sdp()

2011-01-25 Thread Bernhard Suttner
Hi, someone has an idea? Thanks in advance! Best regards, Bernhard -Ursprüngliche Nachricht- Von: sr-users-boun...@lists.sip-router.org [mailto:sr-users-boun...@lists.sip-router.org] Im Auftrag von Bernhard Suttner Gesendet: Montag, 24. Januar 2011 20:38 An: sr-users@lists.sip

[SR-Users] fix_nated_sdp()

2011-01-24 Thread Bernhard Suttner
status=~(180|183|200) && has_sdp() && nat_uac_test(8)) fix_nated_sdp(3) Somebody has a better idea to handle this? What could go wrong? Thanks in advance. Best regards, Bernhard Suttner ___ SIP Express Router (SER) and Kamailio (Ope

Re: [SR-Users] $ua in on_reply route not set?

2011-01-24 Thread Bernhard Suttner
Mierla [mailto:mico...@gmail.com] To: Bernhard Suttner [mailto:bernhard.sutt...@winet.ch] Cc: sr-users@lists.sip-router.org Sent: Mon, 24 Jan 2011 17:09:12 +0100 Subject: Re: [SR-Users] $ua in on_reply route not set? > Hello, > > On 1/24/11 5:03 PM, Bernhard Suttner wrote: > > Hi, >

[SR-Users] $ua in on_reply route not set?

2011-01-24 Thread Bernhard Suttner
Hi, could it be, that the $ua pseudo variable is not set within in a onreply route? (Version 3.1). What is the best alternative for that? Search()? Thanks in advance! Best regards, Bernhard ___ SIP Express Router (SER) and Kamailio (OpenSER) - s

Re: [SR-Users] IP Address

2011-01-14 Thread Bernhard Suttner
Thank you - that does make sense, of course :-) Best regards, Bernhard -Ursprüngliche Nachricht- Von: Klaus Darilion [mailto:klaus.mailingli...@pernau.at] Gesendet: Freitag, 14. Januar 2011 09:55 An: Bernhard Suttner Cc: sr-users@lists.sip-router.org Betreff: Re: [SR-Users] IP Address

[SR-Users] IP Address

2011-01-13 Thread Bernhard Suttner
Hi, I have a very short question: Kamailio does listen to many IP Addresses and does forward messages to the peer with t_relay. Which IP address will kamailio use for the outgoing traffic as source-ip, if there are many IP addresses on the interface? Is it possible to specify this somehow? Th

Re: [SR-Users] Dispatcher Setting

2011-01-13 Thread Bernhard Suttner
eeswitch server should have the same version and dialplan logic. Best regards, Bernhard -Ursprüngliche Nachricht- Von: kaiserbo...@googlemail.com [mailto:kaiserbo...@googlemail.com] Im Auftrag von Carsten Bock Gesendet: Donnerstag, 13. Januar 2011 11:39 An: Bernhard Suttner Cc: sr-

[SR-Users] Dispatcher Setting

2011-01-12 Thread Bernhard Suttner
and 5XX or 6XX? Thanks in advance. Best regards, Bernhard Suttner ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Re: [SR-Users] Change the SIP-To-User

2011-01-07 Thread Bernhard Suttner
Hi, ah, thanks. Would be good to have a uac_replace_to. Sounds like a "30min" task to someone familiar with kamailio programming :-) BR, Bernhard - Original Message - From: Klaus Darilion [mailto:klaus.mailingli...@pernau.at] To: Bernhard Suttner [mailto:bernhard.sutt...@wi

Re: [SR-Users] Change the SIP-To-User

2011-01-07 Thread Bernhard Suttner
Hi, thanks to all responses. I wonder if there is a function to modify the To/From Header stateful. I mean, change the TO header in the INVITE to A and then the 200 OK (for example) reverse the change back to the previous value to B? but the "magic" $tU is amazing... Best regards, Bernhard --

Re: [SR-Users] [Sipp-users] Use of SIPP along with kamailio - REGISTER followed by INVITE not working

2011-01-04 Thread Bernhard Suttner
Hi, I think, the NAT pin-hole is closed. Normally, kamailio does detect NAT and therefore does send small network pakets, that the firewall would not close the port. If you use sipp and kill it to use a new configuration the NAT port was closed already. Best regards, Bernhard -Ursprüngli

Re: [SR-Users] Change the SIP-To-User

2011-01-03 Thread Bernhard Suttner
Hi, thank you very much for both answers. I did not know the pseudo variable magic, that it is possible to do a $tU = "newvalue" Amazing! Best regards, Bernhard Suttner - Original Message - From: Klaus Darilion [mailto:klaus.mailingli...@pernau.at] To: Bernha

[SR-Users] Change the SIP-To-User

2011-01-03 Thread Bernhard Suttner
Hi, what is the best way to replace the userpart of the SIP-To URI with the content of a pseudo variable? Thanks for every hint. Best regards, Bernhard ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-ro

Re: [SR-Users] Replace number in pseudo variable

2011-01-03 Thread Bernhard Suttner
: Montag, 3. Januar 2011 16:04 An: Bernhard Suttner Cc: sr-users@lists.sip-router.org Betreff: [SR-Users] Replace number in pseudo variable Bernhard Suttner writes: > I try to replace the user-name of the Request URI and save that into a > AVP later. userpart of request uri is $rU. se pv

[SR-Users] Replace number in pseudo variable

2011-01-03 Thread Bernhard Suttner
pvar I am using latest git version of kamailio. Does someone has an idea? Best regards, Bernhard Bernhard Suttner Senior Entwickler Entwicklung ___ Winet Network Solutions AG Täfernstrasse 2a CH-5405 Baden-Dättwil E-Mail Winet: i...@winet.ch E-Mail pers.: bernhard.sutt

Re: [SR-Users] Store Source IP in DB

2010-12-07 Thread Bernhard Suttner
nau.at] To: Bernhard Suttner [mailto:bernhard.sutt...@winet.ch] Cc: sr-users@lists.sip-router.org Sent: Tue, 07 Dec 2010 18:59:36 +0100 Subject: Re: [SR-Users] Store Source IP in DB > > > Am 07.12.2010 15:20, schrieb Bernhard Suttner: > > Hi, > > > > I am using Kamaili

[SR-Users] Store Source IP in DB

2010-12-07 Thread Bernhard Suttner
Hi, I am using Kamailio with usrloc, nathelper and register module (and some other). All the data will be stored within a MySQL database. The contact address will be stored within the database. Is it somehow possible to store the SOURCE-IP of a incoming REGISTER from a phone to Kamailio somewhe

[SR-Users] DoS on Kamailio

2010-11-03 Thread Bernhard Suttner
Hi, is there a Kamailio module to prevent DoS Attacks like SIP Register Scanners? I know, that there is a way to implement that with Fail2Ban and xlog but it would be nice to have a "pure" Kamailio solution for that? Any idea is appreciated. Best regards, Bernha

Re: [SR-Users] loop through variables

2010-11-02 Thread Bernhard Suttner
-Ursprüngliche Nachricht- Von: Daniel-Constantin Mierla [mailto:mico...@gmail.com] Gesendet: Dienstag, 2. November 2010 17:57 An: Bernhard Suttner Cc: sr-users@lists.sip-router.org Betreff: Re: [SR-Users] loop through variables On 11/2/10 5:52 PM, Bernhard Suttner wrote: > Hi, > > thanks

Re: [SR-Users] loop through variables

2010-11-02 Thread Bernhard Suttner
Suttner Cc: sr-users@lists.sip-router.org Betreff: Re: [SR-Users] loop through variables On 11/2/10 5:52 PM, Bernhard Suttner wrote: > Hi, > > thanks @ all. I will try out the AVP method. beware that normally the avps are persistent per transaction. Meaning that when the transaction p

Re: [SR-Users] loop through variables

2010-11-02 Thread Bernhard Suttner
Hi, thanks @ all. I will try out the AVP method. Best regards, Bernhard -Ursprüngliche Nachricht- Von: Daniel-Constantin Mierla [mailto:mico...@gmail.com] Gesendet: Dienstag, 2. November 2010 17:16 An: Alex Balashov Cc: Bernhard Suttner; sr-users@lists.sip-router.org Betreff: Re: [SR

Re: [SR-Users] loop through variables

2010-11-02 Thread Bernhard Suttner
; > On Tuesday 02 November 2010, Bernhard Suttner wrote: >> Hi, >> >> I want something like that: >> >> # define some router to use later in the script (global section) >> Mod_param(router(1), "10.10.10.1") >> mod_param(router(2), "10.10.10.2

[SR-Users] loop through variables

2010-11-02 Thread Bernhard Suttner
outes I want to loop through the routers like that: $var(i) while($(var(i) < $var(router_count)) { if ($var(router($var(i)) == src_ip") { .. do something } } Is that somehow possible? Any hint or idea is appreciated! Best regards, Bernhard Suttner