Re: [SR-Users] Problem with t_relay() and VPN tunnel

2010-08-05 Thread Alex Balashov
On 08/05/2010 08:16 PM, Carlos Ruiz Diaz wrote: The 'mhomed' option set to 1 did the trick Thank you so much! I didn't knew that kamailio uses its own routing table. It's not so much that, it just determines where to route the packet based on more esoteric criteria. :-) No problem, go

Re: [SR-Users] Problem with t_relay() and VPN tunnel

2010-08-05 Thread Carlos Ruiz Diaz
The 'mhomed' option set to 1 did the trick Thank you so much! I didn't knew that kamailio uses its own routing table. Thank you again. Carlos. On Thu, Aug 5, 2010 at 8:02 PM, Alex Balashov wrote: > On 08/05/2010 07:58 PM, Carlos Ruiz Diaz wrote: > > 2) I am sorry, I think I did not unders

Re: [SR-Users] Problem with t_relay() and VPN tunnel

2010-08-05 Thread Alex Balashov
On 08/05/2010 07:58 PM, Carlos Ruiz Diaz wrote: 2) I am sorry, I think I did not understand the question. Did you mean if the messag exists when leaving tun0 in *B* going to tun0 in *A*? My concern is that the packet is going out on eth0 despite being intended to go out of tun0. Try to do a

Re: [SR-Users] Problem with t_relay() and VPN tunnel

2010-08-05 Thread Carlos Ruiz Diaz
The IP: *192.168.2.102 *corresponds to address in LAN *A*, *10.8.0.1* is the VPN address of the same machine in the *A* network. Switching from one to another still results in Perl script working and Kamailio not working. On Thu, Aug 5, 2010 at 7:48 PM, Carlos Ruiz Diaz wrote: > Hi, > > I have tw

Re: [SR-Users] Problem with t_relay() and VPN tunnel

2010-08-05 Thread Alex Balashov
1) Is Kamailio also listening on the VPN tunnel interface? Kamailio cannot send messages out of interfaces on which it is not listening. 2) Is the message existing out of the right interface? http://www.kamailio.org/dokuwiki/doku.php/core-cookbook:3.0.x#force_send_socket On 08/05/2010 07:48 P

[SR-Users] Problem with t_relay() and VPN tunnel

2010-08-05 Thread Carlos Ruiz Diaz
Hi, I have two SIP servers, *A* and *B*, connected each other though a OPENVPN tunnel. The server *B* needs to t_relay() every SIP message containing the method MESSAGE to the server *A* but these messages never reach destination. I have tested the tunnel connectivity and works fine. I wrote a P

Re: [SR-Users] time formats (specifically in db_flatstore)

2010-08-05 Thread SIP Projects
doh! here is the actual variable i'm trying to hack together: $var(reg_time) = $time(year) + "-" + $time(mon) + "-" + $time(mday) + " " + $time(hour) + ":" + $time(min) + ":" + $time(sec); On 8/5/2010 3:29 PM, SIP Projects wrote: Script variable: $var(reg_time) = $time(year); ### + "-" + $

Re: [SR-Users] time formats (specifically in db_flatstore)

2010-08-05 Thread SIP Projects
I'm trying to manually build a time value to send as a db_extra field. This seems like it should work according to the wiki example, but I'm getting a syntax error. Script variable: $var(reg_time) = $time(year); ### + "-" + $time(mon) + "-" + $time(mday) + " " + $time(hour) + ":" + $time(min

[SR-Users] time formats (specifically in db_flatstore)

2010-08-05 Thread SIP Projects
Using version 1.5.2. Trying to migrate acc from db_mysql to db_flatstore to reduce io wait during heavy dialing. However, the default time format changes from normal -MM-DD hh:mm:ss to unixtime (I think) in flatstore. I tried using $TF but its format is even more non-standard. Is there

[SR-Users] time format in db_flatstore

2010-08-05 Thread SIP Projects
Using version 1.5.2. Trying to migrate acc from db_mysql to db_flatstore to reduce io wait during heavy dialing. However, the default time format changes from normal -MM-DD hh:mm:ss to unixtime in flatstore. I tried using $TF but its format is even more non-standard. Is there a way to

[SR-Users] Recommendation

2010-08-05 Thread Carsten Bock
Hi everybody, a former colleague and friend of mine is searching for a new job. He is currently working as NOC-Support-Engeneer and has good knowledge of the SIP-protocol and about running/supporting Kamailio (and supporting systems, e.g. databases). He would prefer to work in northern Germany; bu

Re: [SR-Users] help with configure kamailio authenticate with freeradius server.

2010-08-05 Thread Henning Westerholt
On Wednesday 04 August 2010, thanh.tru...@htklabs.com wrote: > (please ignore my previous mail, i don't read this in time) > > I run command : kamctl start > But : ERROR: PID file /var/run/kamailio.pid does not exist -- Kamailio > start failed > [..] > And I run : tail –f /var/log/message to show

Re: [SR-Users] help with sip client register with freeradius via kamailio.

2010-08-05 Thread Henning Westerholt
On Tuesday 03 August 2010, thanh.tru...@htklabs.com wrote: > I trying to set up kamailio and freeradius. I want sip client authenticate > with freeradius server, but for a long time I can make it work. I have > referenced many reference document but it cannot work. > [..] Hi truong, can you share

Re: [SR-Users] DBI Error on startup

2010-08-05 Thread Nicolas Rüger
Hello Henning, thank you very much! I finally used this one (which is the same as your link): http://lists.cistron.nl/pipermail/freeradius-users/2008-September/msg00378.html The explanation here just fixed the problem after I set the environment variable as follows without adapting anything:

Re: [SR-Users] DBI Error on startup

2010-08-05 Thread Henning Westerholt
On Wednesday 04 August 2010, Nicolas Rüger wrote: > I'm using debian lenny, kamailio_3.0.0 and perl_5.10.0. > > I included the following line in a PERL-script (that I want to be started > from the routing-logic in kamailio.cfg) for interaction of PERL with a > MySQL Database: > > use DBI; > >